curriculum/challenges/english/blocks/review-bash-commands/6724e387ee098d1ef33108ba.md
Control+L (Linux/macOS) or typing cls (Windows): Clear the terminal screen.Control+C: Interrupt a running command (also used for copying in PowerShell if text is selected).Control+Z (Linux/macOS only): Suspend a task to the background; use fg to resume it.!!: Instantly rerun the last executed command.Bash (Bourne Again Shell): Widely used Unix-like shell.
Key commands:
pwd: Show the current directory.cd: Change directories.
.. refers to the parent directory (one level up).. refers to the current directory.ls: List files and folders.
-a: Show all files, including hidden files.-l: Show detailed information about files.less: View file contents one page at a time with navigation options, including scrolling backward and searching.more: Display file contents one screen at a time, with limited backward scrolling and basic navigation.cat: Show the entire file content at once without scrolling or navigation, useful for smaller files.mkdir: Create a new directory.rmdir: Remove an empty directory.touch: Create a new file.mv: Move or rename files.
mv oldname.txt newname.txtmv filename.txt /path/to/target/cp: Copy files.
-r: Recursively copy directories and their contents.rm: Delete files.
-r: Recursively delete directories and their contents.echo: Display a line of text or a variable's value.
> to overwrite the existing content in a file. (e.g., echo "text" > file.txt)>> to append output to a file without overwriting existing content (e.g., echo "text" >> file.txt).exit: Exit the terminal session.clear: Clear the terminal screen.find: Search for files and directories.
-name: Search for files by name pattern (e.g., find . -name "*.txt").man followed by a command (e.g., man ls) to access detailed manual/help pages.--help, --version--width=50.-a, -l-w 50.ls -alh.--help: You can always use a command with this flag to understand the available options for any command.Review the Bash Commands topics and concepts.