Skip to main content
Engineering LibreTexts

Linux commands in the bash environment

  • Page ID
  • \( \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}}\)

    What is bash?





                            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 -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?