Week 2 - Quiz Questions Flashcards
Which command is used to discover additional information about a Linux command or configuration file?
man [command]
Which shell command is used to change the shell’s current directory to another directory?
cd - change directory
What is the correct syntax to use copy a file from one location/directory to another location/directory?
cp source-file destination
Which command is used to rename any file?
mv
In Linux, what is the top-level directory?
root (/)
Which command is used to view the contents of any large file one page at a time by moving back and forth?
less
Which command is used to view the contents of any file?
cat
Which command prints the current working directory?
pwd
Which command deletes a non-empty directory?
rm -r
Which command displays the contents of a directory?
ls
Which command is used to change to the user’s home directory?
cd or cd ~