Bash Basics
Bash Basics
GHOUSSEIN Edouardo
October 23, 2024
1 Introduction
Bash (Bourne Again SHell) is a command language interpreter that is widely
used in many Linux and Unix systems. This document provides a list of basic
Bash commands along with examples.
2 Basic Commands
2.1 1. Displaying Text
Command: echo
Description: Displays a line of text.
1 $ echo " Hello , World ! "
2 Hello , World !
1
2.4 4. Creating Files
Command: touch
Description: Creates an empty file or updates the timestamp of an existing
file.
1 $ touch newfile . txt
2 $ ls
3 newfile . txt file1 . txt file2 . txt directory1 /
2
2.8 8. Viewing File Content
Command: cat
Description: Concatenates and displays file content.
1 $ cat file2 . txt
2 This is the content of file2 .
3 Conclusion
This document provides a basic overview of Bash commands and their us-
age. For more advanced functionalities, consult the manual pages or further
resources.