Saturday, July 3, 2021

Linux standard directories and their contenrs

/bin

Core operating system commands

/boot

Boot loader, kernel, and files needed by the kernel

/compat

On FreeBSD, files and libraries for Linux binary compatibility

/dev

Device entries for disks, printers, pseudo-terminals, etc.

/etc

Critical startup and configuration files

/home

Default home directories for users

/lib

Libraries, shared libraries, and commands used by /bin and /sbin

/media

Mount points for filesystems on removable media

/mnt

Temporary mount points, mounts for removable media

/opt

Optional software packages (rarely used, for compatibility)

/proc

Information about all running processes

/root

Home directory of the superuser (sometimes just /)

/run

Rendezvous points for running programs (PIDs, sockets, etc.)

/sbin

Core operating system commands a

/srv

Files held for distribution through web or other servers

/sys

A plethora of different kernel interfaces (Linux)

/tmp

Temporary files that may disappear between reboots

/usr

Hierarchy of secondary files and commands

/usr/bin

Most commands and executable files

/usr/include

Header files for compiling C programs

/usr/lib

Libraries; also, support files for standard programs

/usr/local

Local software or configuration data; mirrors /usr

/usr/sbin

Less essential commands for administration and repair

/usr/share

Items that might be common to multiple systems

/usr/share/man

On-line manual pages

/usr/src

Source code for nonlocal software (not widely used)

/usr/tmp

More temporary space (preserved between reboots)

/var

System-specific data and a few configuration files

/var/adm

Varies: logs, setup records, strange administrative bits

/var/log

System log files

/var/run

Same function as /run; now often a symlink

/var/spool

Spooling (that is, storage) directories for printers, mail, etc.

/var/tmp

More temporary space (preserved between reboots)

No comments:

Post a Comment