Skip to main content
Engineering LibreTexts

Linux commands in the bash environment

  • Page ID
    23539
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    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.

     


    Linux commands in the bash environment is shared under a GNU General Public License 3.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?