Hoofdstuk 6 meerkeuze Flashcards
Hidden files are files that begin with what character?
A dash (-) A plus (+) A period (.) An asterisk (*)
.
What option for the ls command will display all files, including hidden files?
- L - H - w - a
-a
The top-level directory on a Linux system is represented as:
/ C: /home /root
/
Is the following path absolute or relative?
/etc/ppp
Absolute Relative
absolute
Is the following path absolute or relative?
sysadmin/Documents
Relative Absolute
relative
Is the following path absolute or relative?
../../home/sysadmin
Relative Absolute
relative
The tilde (~) is used to represent:
A user’s home directory Any two single characters The directory above the current working directory Nothing; it has no special meaning
A user’s home directory
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 /home/bob cd ~bob cd && ~bob
cd /home/bob
cd ~bob
The double dot (..) can be used with the cd command to represent:
The directory above the current working directory Nothing; it has no special meaning. Any two single characters A user’s home directory.
The directory above the current working directory
The cd command by itself will take you to what directory?
The system root directory None; it is not a valid command The directory above the current working directory Your home directory
Your home directory
What command will allow you to change your current working directory?
chdir list cd ls
cd
The ls command without options or arguments…
…generates an error as this command requires arguments. …lists the contents of the current directory. …prompts for a directory to list. …lists the contents of a user’s home directory.
…lists the contents of the current directory.
The first character in a long listing (ls -l) indicates:
The permissions If something is a file, directory, or symbolic link The owner The size
If something is a file, directory, or symbolic link
Which option for the ls command, when used in conjunction with the -l option, will display human-readable sizes?
- M - S - H - h
-h
Which of the following commands will prevent any aliased options to the ls command?
/ls %ls %ls ls
\ls