Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Helpful Tips

  • Tab Completion: Press Tab to auto-complete commands and file names.

  • Man Pages: Use man [command] to read the manual for a command (e.g., man ls).

Directory Commands

  • pwd: Print the current working directory.

...

Code Block
rm -r directory_name

File Commands

  • touch [file]: Create an empty file or update the timestamp of an existing file.

...

Code Block
cat file1.txt
cat -E job.sh # #displaydisplay a $ at the end of each line, which can help visualize extra spacing
cat -n file2.txt # -n option cat displays line numbers
cat -v foo.txt # -v: Display non-printing characters, except for tabs and end-of-line characters.
cat -T foo.txt # -T: Show tab characters as ^I.

  • more [file]: View file content one screen at a time.

...