Other Commonly Used Bash Commands

Get to learn some useful and important bash commands that are necessary in order to interact with your machine efficiently and get your day-to-day tasks done.

1. echo

Definition:

echo is the built-in command in bash and C-shells that simply prints its arguments on the console or terminal.

Syntax:

echo [option(s)] [string(s)]

Options:

Options Meanings
-n Do not output a trailing newline.
-e Enable interpretation of backslash escape sequences.
-E Disable interpretation of backslash escape sequences.
–help Display a help message and exit.

Example:

  • To print a statement “I like to code.” on the console
echo I like to code.

Get hands-on with 1400+ tech skills courses.