Skip to content

All about Linux shell

All About linux shell, Types of shell and basic command to use on shell.

A shell is a command line interpreter. Its a special program which takes input from standard input devices, convert it to machine language and send to OS. After processing by OS, send result back to shell. Shell again translate it to human readable format and send results to output devices.

Linux Shells:

  • Bash Shell ( Born Again Shell ) : This is most common shell used by linux now a days. Bash sell is developed by Sir Brian Fox and Chet Ramey.
  • CSH ( C Shell ) : The C shell’s syntax and usage are very similar to the C programming language.
  • KSH ( Korn Shell ): Developed in AT & T Bell Labs.
  • TCSH : TCSH is an enhanced but completely compatible version of the Berkeley UNIX C shell (CSH).
  • To Get all available shells in your linux machine check /etc/shells file.

    # cat /etc/shells
    /bin/sh
    /bin/bash
    /sbin/nologin
    /bin/tcsh
    /bin/csh
    /bin/ksh
    /usr/bin/ksh
    /bin/pdksh
    

    If you want to switch to another shell, Just type the shell path as shown above.

    # /bin/tcsh
    or
    # /usr/bin/ksh
    

    Rahul

    Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

    Leave a Reply

    Your email address will not be published. Required fields are marked *


    Back to top