5.4 Flashcards
Files in UNIX are treated as ______ meaning they can contain any characters.
Byte streams
Linux provides a standard hierarchy for all UNIX-like OSs called the ___________. Under this directory structure, all directories and file fall under a root directory.
Linux File System Hierarchy
In Linux OSs the __ character indicates the root of the file system.
( / ) forward slash
The system administrator’s (root user) home directory.
/root
Directory that contains a subdirectory for each user who has logged on to the system.
/home
Enables each user to save individualized system preferences when logged on.
Profiles
Contains the system wide environment and startup programs in UNIX.
/etc/profile
A ___ character references paths that start with a user’s home directory.
( ~ ) tilde
Directory that contains static files of the boot loader; required to boot the system
/boot
Directory that contains essential command binaries (e.g., cp, mkdir, ls, less).
/bin
Directory that contains essential system binaries. Commands intended for use by privileged users (e.g., init, fdisk, ifconfig, lsmod).
/sbin
Second major hierarchy. User system resources such as user binaries and associated documentation, libraries, and header files.
/usr
Directory that contains shared libraries.
/lib
Directory that contains device files (block and character).
/dev
Directory that contains system administration and configuration files.
/etc
Directory that contains user home directories
/home
Directory that contains optional 3rd party software.
/opt
Directory that contains processes used by the system.
/proc
Directory that contains the root user’s home directory.
/root
Directory that contains temporary files used by the system.
/tmp
Directory that contains variable size data such as log files.
/var
Which command displays the current working directory in UNIX?
/pwd
Display text to standard output. (UNIX)
echo
Syntax: echo (standard output)
Creates a typescript of the terminal session (everything printed on the terminal). CTRL + d ends the script session. View results using less. (UNIX)
script
Syntax:
script (filename)