Linux has a ton of system folders:
/etc,
/opt,
/var,
/usr, and more. Most people poke around blindly and get confused.
Understanding what each folder is for, prevents accidental breakage and makes troubleshooting faster.
Core Folders You Need to Know
- /etc - Configuration files. Almost all system and app configs live here.
- /opt - Optional software, usually third-party or large packages. Don't touch unless you installed it here.
- /usr - Most user-space programs, libraries, and shared files. Usually managed by the package manager.
- /bin - Essential binaries needed for minimal operation and booting.
- /sbin - System binaries, usually for root/admin tasks.
- /var - Variable files: logs, caches, spools, and temporary data that changes.
- /home - User data and settings. Your files, documents, configs.
- /tmp - Temporary files. Safe to clear, usually auto-cleaned on reboot.
Quick Rules of Thumb
- Don't touch anything in /bin, /sbin, or /usr unless you know what you're doing.
- Most app configs are in /etc or your ~/ folder.
- /opt is for software you installed manually, like Docker binaries or third-party apps.
- Use /var if you need logs or to monitor system behavior.
Knowing these folders helps you understand where Linux puts things, how software interacts, and where to look when something breaks. You don't need to memorize every folder - but it's a good idea to remember at least the ones you touch.
Comments (0)
No comments yet. Be the first to comment!
Leave a Comment