A quick reference guide to key directories in a Linux system:
-
/homeLocation for home directories for all users except the root user. Root user's home is/root. -
/optUsed to install third-party applications or software packages. -
/mntDefault mount point for partitions. Typically used for temporary mounting. -
/tmpStores temporary data. Automatically cleaned periodically. -
/mediaMount point for external media like USB drives, CDs, etc. -
/devContains special block and character device files representing hardware. -
/binBasic system binaries likecp,mv,mkdir, etc. -
/etcStores most system configuration files. -
/liband/lib64Contain shared libraries required by programs in/binand/sbin. -
/usrIn modern systems, contains user-land applications and their data. (Note: Not used for user home directories anymore.)