Manage Files from the Command Line Flashcards
What is the root or start of filesystem?
/
What does /etc stand for?
Extended Text Configuration
What directory stores files to start boot process?
/boot
What directory stores special device files that the system uses to access hardware?
/dev
What directory stores System-specific configuration files?
/etc
What directory do regular users store their data and configuration files?
/home
What directory is for administrative superusers, or root?
/root
What directory is a world-writable space for temporary files?
/tmp
What directory contains installed software, shared libraries, files, and readonly program data?
/usr
What are significant subdirectories in the /usr directory?
/usr/bin (Binaries): User commands
/usr/sbin (System Binaries): System administrations commands
/usr/local: Locally customized software
What directory contains system-specific variable data including databases, cache directories, log files, etc?
/var
What path represents the first Virtual Disk?
/dev/vda
What does an INODE contain?
Ownership, permissions, date & time stamps, and paths to data blocks.
Which expansion can generate multiple strings of characters?
Brace Expansion
echo file{1..3}.txt
Which expansion expands a path to a user home directory?
Tilde expansion
echo ~root
Which expansion replaces text with the value that is stored in a shell variable?
Variable expansion
VARIABLENAME=value
Which expansion replaces text with the output of a command?
Command substitution
echo Today is $(date +%A)
Which expansion helps to select one or more files by pattern matching?
Pathname expansion
ls *a
What pattern matching matches file names that aren’t the specified character?
[!x]*