Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 887 Bytes

File metadata and controls

22 lines (18 loc) · 887 Bytes

The-Command-Line

What are Shortcuts?
Easier way to access files and/or documents within a computer program

Shortcuts:

  • pwd: print working directory
  • ls: list
  • cd: change directory (cd[location])
  • **~ (tilde):** shortcut to home directory (~/Documents)
  • . (dot): reference to current directory (./Documents)
  • .. (dotdot): reference to parent directory (/home/liesl --> ../../)

Paths:

  • Absolute: specifies location (file or directory) in relation to root directory. Begins with forward slash " / "
  • Relative: specifies location (file or directory) to current system locaaiton. No slash

Other:

  • /etc: Stores config files for the system
  • /var/log: Stores log files for various system programs
  • /bin: The location of several commonly used programs
  • /usr/bin: Another location for programs on the system