Hoofdstuk 6 Flashcards
The top-level directory on a Linux system is represented as: - 6.3
/
Is the following path absolute or relative?
../../home/sysadmin
relative
The double dot (..) can be used with the cd command to represent: - 6.3.5
The directory above the current working directory
The cd command by itself will take you to what directory?
your home directory
What command will allow you to change your current working directory? -6.3.4
cd
The double dot (..) can be used to represent the directory…- 6.3.5
…above the current directory
The first character in a long listing (ls -l) indicates: - 6.4.3
If something is a file, directory, or symbolic link
The ls command color codes results by default. 6.4.1
False
Which option can be used with the rm command to prompt before deleting? - 6.9
-i
Which of the following commands can be used to rename a file? - 6.7.1
mv
The tilde (~) is used to represent: 6.3.2
A user’s home directory
The ls command without options or arguments… - 6.4
…lists the contents of the current directory
The command ls -S will sort files: - 6.4.5
By size, largest to smallest.
The command rm -r will… - 6.10
remove a directory along with any files or subdirectories.
The rm command can delete multiple files at once. - 6.9
True
The touch command can be used to: - 6.8
create new files
update the time stamp of existing files
Hidden files are files that begin with what character? - 6.4.2
A period (.)
What option for the ls command will display all files, including hidden files? - 6.4.2
-a
Which of the following commands will prevent any aliased options to the ls command? 6.4.1
\ls
When using the cp command, you must provide both a source and a destination. 6.5
False (But in the late it say true with this statement “It requires that you specify a source and a destination. “)
Which of the following commands can be used to access the home directory of the user “bob” while logged in as root?
(choose two)
cd ~bob
cd /home/bob
Which option(s) can be used to prevent cp from overwriting an existing file? (choose two)
- n
- i