Linux Complete Reference Index

Select any item below to open its full syntax specification, parameters, and live example.

Linux Tutorial

filesystem

13 entries
/ — Root directory/
Starting point for absolute path resolution within the process filesystem view. Other mounted filesystems appear beneath it. Not the root user home. Example is read-only and assumes the path exists; layouts vary.
/bin — Traditional command path/bin
Historically essential user commands; on Debian merged-/usr systems this entry points to /usr/bin. Do not remove the compatibility link. Example is read-only and assumes the path exists; layouts vary.
/boot — Boot files/boot
Often stores kernel and bootloader-related files. Mount layout and contents differ by installation; an empty container directory does not indicate host boot failure. Example is read-only and assumes the path exists; layouts vary.
/dev — Device interfaces/dev
Contains device nodes and related entries. Some are not safe to read or write. Inspect only specifically understood interfaces. Example is read-only and assumes the path exists; layouts vary.
/etc — System configuration/etc
Machine-specific configuration, often organized by service. The owning service determines file format and reload behavior. Do not edit files just to explore. Example is read-only and assumes the path exists; layouts vary.
/home — User home directory convention/home
Common parent for ordinary users’ personal directories. Homes may be located elsewhere; do not infer identity or access from a path. Example is read-only and assumes the path exists; layouts vary.
/media — Removable media convention/media
Often used as a parent for removable media mount points. Desktop implementations can choose other locations. Example is read-only and assumes the path exists; layouts vary.
/mnt — Temporary mount convention/mnt
Often used by administrators as a location for a temporary filesystem attachment. Directory presence does not establish a distinct mount. Example is read-only and assumes the path exists; layouts vary.
/opt — Add-on software/opt
Conventional location for additional application packages, often organized by provider or product. Actual package policy varies. Example is read-only and assumes the path exists; layouts vary.
/proc — Process and kernel interface/proc
Common procfs mount presenting process and kernel information. Some attributes are writable; do not recursively read or back up this tree as regular files. Example is read-only and assumes the path exists; layouts vary.
/root — Root account home/root
Conventional home directory of the root account, not the root of the filesystem. Access is usually restricted; inspect only the entry as a normal user. Example is read-only and assumes the path exists; layouts vary.
/run — Runtime state/run
Contains state associated with a running system, such as service sockets. Commonly recreated during boot; not a persistent storage location. Example is read-only and assumes the path exists; layouts vary.
/sbin — Traditional system command path/sbin
Historically administrative executables. On Debian merged-/usr systems it points to /usr/sbin. This location does not itself enforce privileges. Example is read-only and assumes the path exists; layouts vary.

configuration

7 entries
/etc/crontab — System scheduled jobsMIN HOUR DOM MONTH DOW USER COMMAND
System crontabs and /etc/cron.d files add a username after the five time fields; a user crontab omits it. Fields accept implementation-specific lists, ranges and steps; cron commonly runs if either day-of-month or day-of-week matches when both are restricted. Jobs use a limited environment and typically /bin/sh unless SHELL is set; use absolute paths and explicitly chosen time zone where supported. Unescaped percent characters have special meaning in traditional cron command fields. Separate files create separate jobs rather than overriding one another. System crontab permissions must follow the installed cron implementation. Use the installed implementation’s check-only mode if available; do not assume crontab -T exists or accepts system format. The example extracts fields only, not validates scheduling. Cron commonly detects file changes; confirm implementation and logs. Restore previous file, check duplicates and verify a harmless job in a disposable VM.
/etc/fstab — Persistent filesystem declarationsSOURCE TARGET FSTYPE OPTIONS DUMP PASS
The administrator-maintained fstab describes filesystems and swap for mount-related tools and boot integration. Fields use whitespace; encode embedded spaces as \040 and tabs as \011, including inside quoted values. UUID or LABEL can avoid unstable device names. defaults selects filesystem/tool defaults, noauto excludes ordinary mount -a processing; the dump field is conventionally 0 if unused, and pass 0 skips boot fsck ordering. A valid record does not prove the device or mount is usable. On systemd hosts daemon-reload may be needed after authorized changes; it does not mount the filesystem. Test and retain the old file in a disposable VM before applying changes.
/etc/group — Local group recordsGROUP:PASSWORD:GID:MEMBER1,MEMBER2
Local groups have four colon-separated fields. The fourth contains explicit member names separated by commas; a user whose primary GID matches the group need not appear in that list. Group password handling varies; do not put secrets into examples. NSS may consult external group sources. Changes to group membership generally require new credentials in the affected session; verify with id in a new authorized session.
/etc/hosts — Static hostname mappingsIP_ADDRESS CANONICAL_NAME [ALIAS ...]
Maps names to IPv4 or IPv6 addresses. Whitespace separates fields; # begins a comment. The file is consulted according to the system resolver and NSS policy, not necessarily before DNS. It does not configure routes, listening services or TLS certificates. Keep mappings minimal and avoid overriding unrelated names. Some applications cache or bypass system resolution.
/etc/nsswitch.conf — Name-service source selectionDATABASE: SOURCE [ACTION ...] [SOURCE ...]
On glibc systems, NSS selects information sources for databases such as hosts, passwd and group. Sources are evaluated in configured order with result-dependent actions (for example [NOTFOUND=return]). Modules must exist; defaults and ordering vary by distribution and database. NSS identity lookup is distinct from PAM authentication. Changes may affect account lookup or network access; use a recoverable VM, preserve the previous file, and avoid changing production login policy in this exercise.
/etc/os-release — distribution identityKEY=VALUE
Read-only identification data supplied by the operating system vendor. Read /etc/os-release if it exists; otherwise fall back to /usr/lib/os-release. Do not merge the two files. The assignment format does not support variable expansion or arbitrary shell code; parse untrusted files as data rather than sourcing them. ID identifies the OS, VERSION_ID identifies its release when defined, and PRETTY_NAME is a display label. Do not change the file to change the installed release. No reload or restart is needed to read it. Fields may be absent.
/etc/passwd — Local account recordsNAME:PASSWORD:UID:GID:GECOS:HOME:SHELL
Local account database with seven colon-delimited fields. On shadow-password systems x is a placeholder, not a password. UID identifies the account; primary GID refers to a group. GECOS is descriptive text; HOME and SHELL identify intended paths. NSS can obtain users from additional sources, so this file alone does not enumerate all identities. Do not manually edit production account databases; use account-management tools and validate in a VM. Existing processes do not automatically adopt changed credentials.

Showing 20 of 364 entries