Jump to content

CL101:Directories

From NYC Resistor Wiki
Command Line 101 Class Notes
Sections
  1. Home
  2. The Shell
  3. Directories
  4. File Management
  5. Viewing Files
  6. GREP
  7. The Pipe
  8. Chaining
  9. Cool Tricks
  10. Where do I go from here?

/[edit | edit source]

  • The root. Base of everything. Everything is ether in, or mounted in root.

/etc[edit | edit source]

  • Holds most configuration files

/usr[edit | edit source]

  • Holds most static data

/usr/bin[edit | edit source]

/bin[edit | edit source]

  • Story about bin vs /usr/bin

/var[edit | edit source]

  • Holds most variable data
    • Logs in /var/logs

/home (/User)[edit | edit source]

  • Holds User's home data
  • $HOME

/tmp[edit | edit source]

  • Holds temporary data
  • Cleared out on reboot
    • Sometimes there is a job to clean out older entires more regularly.

The story of /bin vs /usr/bin[edit | edit source]

Source