Chapter 3+4 Flashcards
Purpose of /boot
Contains files necessary to start boot process of the system, such as boot loader configurations and kernel images
Purpose of /etc
Stores system.specific configuration files
Files that control behaviour of various system components and applications
Purpose of /home
Home directory for regular users
Stores user-specific data and configuration files
Purpose of /root
Home directory for administrative superuser
Contains configuration files and data specific to the root user
Purpose of /usr
Contains installed software, shared libraries, user commands, system administration commands, locally customized software
Purpose of /var
Stores system-specific variable data that should persist between boots, including dynamically changing files
ls -l
long listing format
ls -a
list all files
ls -R
list recursively
cd -
change to previous directory, where user was before current one
cd ..
change to parent directory
cd
change to home directory
mkdir
make a directory
mkdir -p Files/file
create any missing parent directories for requested destination
cp
copy one or multiple files to a target directory
cp -r
recursively copy a directory
mv
rename or move a file
rm
remove a file
rm -r
remove a directory and its contents
rm -ri
interactively prompt for confirmation before deleting a directory and its contents
rmdir
remove empty directory
ln
create a hard link
another file name that points to an existing file
ln -i file.txt newfile.txt
Determine whether or not two files are linked
If they are, the inode numbers are the same
ln -s file.txt newfile.txt
Create a symbolic link between two files/a file and a directory
USERVAR=john
echo $USERVAR
What is the output?
john
USERVAR=john
echo $USERVAR
What is the output?
$USERVAR
man
get manual page for command
man -k word
search for manual page containing word in titles and descriptions
man -K word
search for manual page contaning word in full-text page, not just title and description