Quiz 3 Flashcards
Under which directory would you expect to find nonessential program files?
/usr
Under which directory would you expect to find log files?
/var
Which of the following directories would typically not be mounted on its own dedicated device?
/etc
Which of the following commands would give the most accurate overview of mounted disk devices (without showing much information about mounted system devices as well)?
df -hT
Which command enables you to show all files in the current directory so that the newest files are listed last?
ls -alrt
Which command enables you to copy hidden files as well as regular files from /home/$USER to the current directory?
cp -a /home/$USER/. .
Which command enables you to rename the file myfile to mynewfile?
mv myfile mynewfile
Which statement about hard links is not true?
a. Hard links cannot be created to directories.
b. Hard links cannot refer to files on other devices.
c. The inode keeps a hard link counter.
d. If the original hard link is removed, all other hard links become invalid
d. If the original hard link is removed, all other hard links become invalid.
Which command creates a symbolic link to the directory /home in the directory /tmp?
ln -s /home /tmp
Which tar option enables you to add one single file to a tar archive?
-r