Skip to content

Instantly share code, notes, and snippets.

@parth721
Last active October 23, 2025 10:11
Show Gist options
  • Select an option

  • Save parth721/17114308404179b180fc7ffd71570f50 to your computer and use it in GitHub Desktop.

Select an option

Save parth721/17114308404179b180fc7ffd71570f50 to your computer and use it in GitHub Desktop.
Screenshot From 2025-10-22 17-31-10
  • Binaries :
    • bin : store the essential user commands even before /usr is mounted for programs or app: ls, cat.
    • sbin : store administrative tools that sudo user will use : mount ,ip.
  • Devices :
    • dev : every hardware devices apperars here as a file. Eg: USB-stick.
  • Snap :
    • snap : where snap packages are stored.
  • Root :
    • root : root-user / admin's home directory.
  • Boot :
    • boot : kernel image and boot config files (bootloader lives here).
  • Runs in RAM :
    • run : store information that runs on RAM & cleared after shutdown. E.g PID or socket files.
  • System :
    • sys : stores kernel & hardware device information.
  • Service :
    • srv : used for server-hosted data are stored.
  • Temporary :
    • tmp : temporary files cleaned after reboot.
  • Process :
    • proc : Contain pseudo-files that store info about Processes and resources, which gives a live-view of the kernel.
  • Userland app & shared data :
    • usr : Holds most binaries, libraries, documentations for all users.
  • Variable :
    • var : files which can grow in size with time. Eg : logs, cache.
  • Mount :
    • media : For auto-mounted devices, like USB / DVD.
    • mnt : where we manually mount extra partitions for maintanence.
  • etc :
    • etc : All the system-wide configure lives here : apt.
  • Libraries :
    • lib , lib64 : Files needed by /bin&/sbin binaries.
  • Optional :
    • opt : usually store manually installed software, your-own software.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment