Skip to main content
Engineering LibreTexts

Linux commands in the bash environment

  • Page ID
    23539
  • What is bash?

    clipboard_e3e3174d8482e7da2ddbd25a9b89957fc.png

     

    clipboard_e5cdded61d8b0c6c1c7558d01b8c2be97.png

     

                            Bash is the default shell on many Linux systems including the RPI.

     

     

                                                        Shell commands

    Shell commands are programs.  Programs often take command line parameters.

    Some command line parameters are called switches.  Switches typically start with a “dash” ‘-‘.

    Other command line parameters can be “strings”, some strings are filenames.

     

    Here are examples of running commands with and without parameters.  

    ls
    ls -l
    ls -lh .bashrc
    

    These commands likely work on any Linux system.  Try them on your RPi.

    What are the choices for command line parameters when using any command?

    Use manual pages to learn about any Linux command.

    man ls
    

    The above command starts the manual page for the command “ls”. Use the arrow keys to scroll up and down, press “q” to quit when you use this command.

     

    • Was this article helpful?