Workbook 2 Flashcards
Is a directory a file?
Yes. [2/5]
What is the name of the graphical tool that you can use to explore the directory tree?
Tree [2/6]
In terms of directories, explain what happens when a process is started.
It is assigned a current working directory. [2/9]
What does bash stand for?
Bourne Again Shell [2/9]
What command outputs your current working directory?
pwd [2/9]
What does the following command line do? cd –
The Previous working directory - not to be confused with the parent (..) [2/10]
Give two command lines that change your current working directory to your home directory.
cd
cd ~ [2/10]
True or false? For user bob, his home directory is always /home/bob
True [2/15]
What is the superuser’s home directory?
/root/ [2/15]
What is the purpose of the /tmp directory?
A temporary folder that anybody can use for tasks that don’t need permanent file access. [2/16]
How are virtually all aspects of a Linux system configured?
By editing a configuration file. [2/16]
True or false? Ordinary users cannot read any files in the /etc directory.
False. Ordinary users can read files, but not write to them. [2/16]
What is the difference between the /bin and /usr/bin directories?
/bin holds core applications like ls, mv, and rm.
/usr/bin holds supplementary applications like your web browser. [2/16]
What is the difference between the /sbin and /usr/sbin directories?
Similar to /bin and /usr/bin but for the Superuser. [2/17]
What is the significance of the following command line’s output? which cp
The which command shows the full path of the program you provide, in this case it would be /bin/cp [2/18]
What does the following command line do? touch me
Creates a file called “me” in the present working directory. [2/19]
Is the following a valid command line? If so, what does it do? pwd > results.txt
Saves your present working directory in results.txt [2/22]
Give a command line that appends the phrase I love Linux to the contents of the file named greetings.txt
echo “I love Linux”»_space; greetings.txt [2/23]
How would you copy the file britney.midi and names the copy backup.midi
cp britney.midi backup.midi [2/24]
How would you copy the file /etc/passwd to your current working directory with the same name?
cp /etc/passwd ~/ [2/24]