Command-Line Interface (CLI):
Bash provides a text-based interface where users can type commands to interact with the operating system.
Scripting Language:
Bash supports writing scripts, which are collections of commands saved in a file. These scripts can automate repetitive tasks.
Compatibility:
Bash is backward-compatible with the Bourne shell (sh), and many commands are also compatible with other Unix shells.
Pipelines:
Bash supports piping, where the output of one command can be passed as input to another command using the pipe (|) operator.
Variables:
Bash supports variables, which can store data such as strings and numbers, and can be used in scripts to create dynamic content.
- To list all files in a directory:
ls
- To print the current working directory:
pwd
- To copy a file from one location to another:
cp source_file destination_file
- To move or rename a file:
mv old_name new_name
- To delete a file:
rm file_name
Feel free to explore and practice different commands. Happy coding!