Commands are case-sensitive. This is true.
When entering a command, do arguments or options typically come first? Options comes first.
Which command will print your current location in the filesystem? present working directory which is the command pwd
Which command will allow you to change your current directory? change directory which is the command cd.
Which of the following is not an example of an absolute path? Documents is not an absolute path.
Which of the following is not an example of a relative path? /home is an example of an absolute path.
The ~ (tilde) character is used to represent:
- ✔ A user's home directory
CORRECT -
The .. (double period) characters are used to represent:
- ✔ The directory above the current directory
CORRECT -
The . (period) character is used to represent:
- ✔ The current directory
CORRECT -
The ls command without options or arguments...
- ✔ ...lists the contents of the current directory.
CORRECT -
Which of the following sets has the group permissions highlighted?
- ✔ rw-rw-r--
CORRECT -
Which of the following sets has the other permissions highlighted?
- ✔ rw-rw-r--
CORRECT -
Which command will allow a user to change the permissions of a file?
- ✔ chmod
CORRECT -
Which of the following permission sets indicates that others have only the read permission?
- ✔ rw-rw-r--
CORRECT -
Changing the user owner of a file requires administrative access.
- ✔ True
-
Which of the following commands can be used to rename a file?
- mv
The mv command requires at least two arguments. This is true.
CORRECT -
Which command can be used to copy a file? This is the command cp.
Which command is used to copy files at the bit level? The command is the dd.
The rm command requires at least two arguments. This is false.
Which of the following commands will return only lines that begin with test?
- ✔ grep '^test' file.txt
CORRECT -
Which of the following commands will return only lines that end with test?
- ✔ grep 'test$' file.txt
-
The ps command requires administrative access.
- false
WRONG - See Section 18
Which of the following commands will update all packages?
- ✗ apt-get update
-
Users can update their own passwords.
- true
CORRECT -
The root user can change the password of any user.
- ✔ True
CORRECT -
Which option can be used to view status information about the current user's password?
- ✔ -S
CORRECT -
Which of the following commands can be used to print output to the terminal?
- ✔ echo
WRONG -
The > character is used for which of the following file descriptors?
- ✗ STDERR
CORRECT -
The ping command uses IP addresses to identify a computer on a network.
- ✔ True
What does CLI stand for?
- ✔ Command Line Interface
CORRECT -
Commands are case-sensitive. This is True
CORRECT -
When entering a command, do arguments or options typically come first?
- ✔ Options
CORRECT -
Which of the following is not a correct way to combine options?
- ✔ -r l
CORRECT -
Which of the following is not an example of an absolute path?
- ✔ Documents
CORRECT -
The ~ (tilde) character is used to represent:
- ✔ A user's home directory
CORRECT -
The .. (double period) characters are used to represent:
- ✔ The directory above the current directory
CORRECT -
The . (period) character is used to represent:
- ✔ The current directory
CORRECT -
The ls command without options or arguments...
- ✔ ...lists the contents of the current directory.
CORRECT -
The first character in a long listing ls -l indicates:
- ✔ File Type
CORRECT -
Which of the following sets has the owner permissions highlighted?
- ✔ rw-rw-r--
CORRECT -
Which of the following sets has the group permissions highlighted?
- ✔ rw-rw-r--
CORRECT -
Which command will allow a user to change the permissions of a file?
- ✔ chmod
CORRECT -
Which of the following permission sets indicates that others have only the read permission?
- ✔ rw-rw-r--
CORRECT -
Changing the user owner of a file requires administrative access.
- ✔ True
WRONG - See Section 12
Which of the following commands can be used to rename a file?
- ✗ cp
CORRECT -
The mv command requires at least two arguments.
- ✔ True
CORRECT -
Which command can be used to copy a file?
- ✔ cp
CORRECT -
The cp command requires at least two arguments.
- ✔ True
CORRECT -
Which command is used to copy files at the bit level?
- ✔ dd
CORRECT -
The rm command requires at least two arguments.
- ✔ False
CORRECT -
Which of the following commands is used to filter text?
- ✔ grep
CORRECT -
Which of the following commands will return only lines that begin with test?
- ✔ grep '^test' file.txt
CORRECT -
Which of the following lines would be not returned by the grep '[^0-9]' file.txt command?
- ✔ 3121991
CORRECT -
The ps command requires administrative access.
- ✔ False
CORRECT -
Which of the following will delete all of a package's files?
- ✔ apt-get purge
CORRECT -
Which of the following commands should be executed before installing a package?
- ✔ apt-get update
CORRECT -
Users can update their own passwords.
- ✔ True
CORRECT -
The root user can change the password of any user.
- ✔ True
WRONG -
Which of the following commands will display the last five lines of a file called file1.txt?
(choose two)
- ✔ tail -n 5 file1.txt
CORRECT -
What does CLI stand for?
- ✔ Command Line Interface
CORRECT -
Commands are case-sensitive.
- ✔ True
CORRECT -
When entering a command, do arguments or options typically come first?
- ✔ Options
CORRECT -
Which of the following is not a correct way to combine options?
- ✔ -r l
CORRECT -
Which command will print your current location in the filesystem?
- ✔ pwd
CORRECT - See Section 4
Which command will allow you to change your current directory?
- ✔ cd
CORRECT -
Which of the following is not an example of an absolute path?
- ✔ Documents
CORRECT -
Which of the following is not an example of a relative path?
- ✔ /home
CORRECT -
The .. (double period) characters are used to represent:
- ✔ The directory above the current directory
CORRECT -
The ls command without options or arguments...
- ✔ ...lists the contents of the current directory.
CORRECT -
Which of these commands will create a new shell logged in as the root user?
- ✔ su
CORRECT -
Which of the following sets has the owner permissions highlighted?
- ✔ rw-rw-r--
CORRECT -
Which of the following sets has the group permissions highlighted?
- ✔ rw-rw-r--
CORRECT -
Which of the following sets has the other permissions highlighted?
- ✔ rw-rw-r--
CORRECT -
Which command will allow a user to change the permissions of a file?
- ✔ chmod
CORRECT -
Which of the following permission sets indicates that others have only the read permission?
- ✔ rw-rw-r--
CORRECT -
Which of the following commands is used to change the ownership of a file?
- ✔ chown
CORRECT -
Changing the user owner of a file requires administrative access.
- ✔ True
CORRECT -
Which of the following commands can be used to rename a file?
- ✔ mv
CORRECT -
Which command can be used to copy a file?
- ✔ cp
WRONG - See Section 13
Which option to the rm command will allow a user to delete directories?
- ✗ -d
CORRECT -
Which of the following commands is used to filter text?
- ✔ grep
CORRECT -
Which of the following commands will return only lines that end with test?
- ✔ grep 'test$' file.txt
CORRECT -
Which of the following lines would be not returned by the grep '[^0-9]' file.txt command?
- ✔ 3121991
CORRECT -
Which of the following commands will not shutdown the system immediately?
- ✔ shutdown
CORRECT -
Which of the following commands will display every process?
- ✔ ps -e
CORRECT -
Users can update their own passwords.
- ✔ True
CORRECT -
Which option can be used to view status information about the current user's password?
- ✔ -S
CORRECT -
Which of the following commands can be used to print output to the terminal?
- ✔ echo
CORRECT -
The ping command uses IP addresses to identify a computer on a network.
- ✔ True
Comments