Bash Introduction
Purpose
Bash provides a text-based interface in a terminal where
users can type commands to directly control the computer's operating system (OS),
manage files, run programs, and configure settings
For more info on Bash
Directory Commands
- ls: Lists the contents of the current or specified directory.
Use ls -a to see hidden files and ls -l for a long-format list showing permissions and ownership.
- cd: Change directory. For example, cd Documents moves you into the "Documents" folder.
Use cd .. to move to the parent directory and cd ~ to go to your home directory.
- pwd: Print working directory. Displays the full path of your current location in the file system.
- mkdir: Make directory. Creates a new folder.
- touch: Creates a new empty file or updates the timestamp of an existing one.
- cp: Copy files or directories. Use cp -R to copy directories recursively.
- mv: Move or rename files and directories.
- rm: Remove (delete) files or directories. Use rm -r to delete non-empty directories and rm -f to
force deletion without prompt.
- cat: Concatenate and display the contents of a file to the terminal.