Linux Unhatched Assignments Assessment Exam Answers 2023 and 2024
This is NDG Linux Unhateced Final Exam Answers for Cisco NetAcad in 2023.
-
What does CLI stand for?
- Core Line Interface
- Core Learning Interface
- Command Learning Interface
- Command Line Interface
-
Commands are case-sensitive.
True or False?
- True
- False
-
When entering a command, do arguments or options typically come first?
- Options
- Arguments
-
Which of the following is NOT a correct way to combine options?
-rl
-r l
-lr
-l -r
-
Which command will print your current location in the filesystem?
pcl
cd
pd
pwd
-
Which command will allow you to change your current directory?
chdir
cd
ls
ch
-
Which of the following is NOT an example of an absolute path?
Documents
/
/home/sysadmin
-
Which of the following is NOT an example of a relative path?
/home
home/sysadmin/Documents/School/Art
Documents/Work
Documents
-
The ~ (tilde) character is used to represent:
- The current directory
- Nothing, it doesn’t have a special meaning
- A user’s home directory
- The directory above the current directory
-
The .. (double period) characters are used to represent:
- The directory above the current directory
- A user’s home directory
- The current directory
- Nothing, it doesn’t have a special
-
The . (period) character is used to represent:
- Nothing, it doesn’t have a special meaning
- The current directory
- The directory above the current directory
- A user’s home directory
-
The ls command without options or arguments…
- …lists the contents of the current directory.
- …generates an error as this command.
- …lists the contents of a user’s home.
- …prompts for a directory to list.
-
The first character in a long listing ls -l indicates:
- File Type
- Permissions
- File Size
- Hard Link Count
-
Which option to the ls will sort the output by file size?
-r
-s
-z
-S
-
Which of these commands will create a new shell logged in as the root user?
sudo
su
-
Which of the following sets has the owner permissions highlighted?
rw-rw-r--
rw-rw-r--
rw-rw-r--
rw-rw-r--
-
Which of the following sets has the group permissions highlighted?
rw-rw-r--
rw-rw-r--
rw-rw-r--
rw-rw-r--
-
Which of the following sets has the other permissions highlighted?
rw-rw-r--
rw-rw-r--
rw-rw-r--
rw-rw-r--
-
Which command will allow a user to change the permissions of a file?
perm
chmod
chown
chperm
-
Which of the following permission sets indicates that others have only the read permission?
- rwxrw-r-x
- rw-rw-r–
- r–r–r-x
- rw-r–rwx
-
Which of the following commands is used to change the ownership of a file?
chperm
chown
chow
chmod
-
Changing the user owner of a file requires administrative access.
True or False?
- True
- False
-
Which of the following commands can be used to rename a file?
mv
rn
name
cp
-
The mv command requires at least two arguments.
True or False?
- True
- False
-
Which command can be used to copy a file?
cy
rm
cp
mv
-
The cp command requires at least two arguments.
True or False?
- True
- False
-
Which command is used to copy files at the bit level?
cp
dd
-
The rm command requires at least two arguments.
True or False?
- True
- False
-
Which option to the rm command will allow a user to delete directories?
-d
-r
-l
-a
-
Which of the following commands is used to filter text?
grep
text
dd
regex
-
Which of the following commands will return only lines that begin with test?
grep '*test' file.txt
grep '[test]' file.txt
grep '$test' file.txt
grep '^test' file.txt
-
Which of the following commands will return only lines that end with test?
grep '$test' file.txt
grep 'test$' file.txt
grep '^test' file.txt
grep 'test^' file.txt
-
Which of the following lines would be NOT returned by the grep ‘[^0-9]’ file.txt command?
My favorite food is avocados.
Hello my name is Joe.
3121991
I am 37 years old.
-
Which of the following lines would be returned by the
grep 'b[oe]t' file.txt
command?boet
bet
boot
beet
-
Which of the following commands will NOT shutdown the system immediately?
shutdown now 'Goodbye World!'
shutdown now
shutdown +0
shutdown
-
Which of the following commands can be used to display network configuration information?
net
pwd
ifconfig
netconfig
-
Which of the following commands will display every process?
ps -e
ps -a
ps --all
ps
-
The
ps
command requires administrative access.True or False?
- True
- False
-
Which of the following commands will update all packages?
apt-get search
apt-get install
apt-get upgrade
apt-get update
-
Which of the following will delete all of a package’s files?
- apt-get trash
- apt-get purge
- apt-get remove
- apt-get delete
-
Which of the following commands should be executed before installing a package?
apt-get upgrade
apt-get search
apt-get update
apt-get install
-
Users can update their own passwords.
True or False?
- True
- False
-
The root user can change the password of any user.
True or False?
- True
- False
-
Which option can be used to view status information about the current user’s password?
-i
-s
-S
-I
-
Which of the following commands can be used to print output to the terminal?
ls
echo
cp
chmod
-
The
>
character is used for which of the following file descriptors?- STDERR
- STDOUT
- STDIN
-
Which of the following commands will display the last five lines of a file called file1.txt?
(choose two)
head -n 5 file1.txt
tail -5 file1.txt
tail file1.txt
tail -n 5 file1.txt
-
The ping command uses IP addresses to identify a computer on a network.
True or False?
- True
- False
Subscribe
7 Comments
Newest