NDG Linux Unhatched Assessment Answers 100

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

NDG Linux Unhatched Assessment Answers 100%

1. What does CLI stand for?


 Core Learning Interface
 Command Learning Interface
 Core Line Interface
 Command Line Interface
2. Commands are case-sensitive.
True or False?
 True
 False
3. When entering a command, do arguments or options typically
come first?
 Options
 Arguments
4. Which of the following is NOT a correct way to combine
options?
 -l -r
 -lr
 -r l
 -rl
5. Which command will print your current location in the
filesystem?
 pcl
 pwd
 pd
 cd
6. Which command will allow you to change your current
directory?
 ls
 cd
 ch
 chdir
7. Which of the following is NOT an example of an absolute
path?
 /
 /home/sysadmin
 Documents
8. Which of the following is NOT an example of a relative path?
 Documents
 /home
 Documents/Work
 home/sysadmin/Documents/School/Art
9. The ~ (tilde) character is used to represent:
 A user’s home directory
 Nothing, it doesn’t have a special meaning
 The current directory
 The directory above the current directory
10. The .. (double period) characters are used to represent:
 A user’s home directory
 The current directory
 Nothing, it doesn’t have a special
 The directory above the current directory
11. The . (period) character is used to represent:
 The directory above the current directory
 A user’s home directory
 The current directory
 Nothing, it doesn’t have a special meaning
12. The ls command without options or arguments…
 …lists the contents of the current directory.
 …prompts for a directory to list.
 …lists the contents of a user’s home.
 …generates an error as this command.
13. The first character in a long listing ls -l indicates:
 Hard Link Count
 File Size
 Permissions
 File Type
14. Which option to the ls will sort the output by file size?
 -z
 -r
 -S
 -s
15. Which of these commands will create a new shell logged
in as the root user?
 sudo
 su
16. Which of the following sets has the owner permissions
highlighted?
 rw-rw-r–
 rw-rw-r–
 rw-rw-r–
 rw-rw-r–
17. Which of the following sets has the group permissions
highlighted?
 rw-rw-r–
 rw-rw-r–
 rw-rw-r–
 rw-rw-r–
18. Which of the following sets has the other permissions
highlighted?
 rw-rw-r–
 rw-rw-r–
 rw-rw-r–
 rw-rw-r–
19. Which command will allow a user to change the
permissions of a file?
 perm
 chown
 chmod
 chperm
20. Which of the following permission sets indicates the
other owner has only the read permission?
 rw-r–rwx
 rwxrw-r-x
 r–r–r-x
 rw-rw-r–
21. Which of the following commands is used to change the
ownership of a file?
 chow
 chmod
 chown
 chperm
22. Changing the user owner of a file requires administrative
access.
True or False?
 True
 False
23. Which of the following commands can be used to
rename a file?
 name
 cp
 rn
 mv
24. The mv command requires at least two arguments.
True or False?
 True
 False
25. Which command can be used to copy a file?
 mv
 rm
 cy
 cp
26. The cp command requires at least two arguments.
True or False?
 True
 False
27. Which command is used to copy files at the bit level?
 cp
 dd
28. The rm command requires at least two arguments.
True or False?
 True
 False
29. Which option to the rm command will allow a user to
delete directories?
 -l
 -r
 -d
 -a
30. Which of the following commands is used to filter text?
 text
 grep
 dd
 regex
31. 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
32. 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
33. Which of the following lines would be NOT returned by
the grep ‘[^0-9]’ file.txt command?
 I am 37 years old.
 My favorite food is avocados.
 3121991
 Hello my name is Joe.
34. Which of the following lines would be returned by the
grep ‘b[oe]t’ file.txt command?
 beet
 bet
 boet
 boot
35. Which of the following commands will NOT shutdown
the system immediately?
 shutdown
 shutdown now
 shutdown now ‘Goodbye World!’
 shutdown +0
36. Which of the following commands can be used to
display network configuration information?
 netconfig
 pwd
 ifconfig
 net
37. Which of the following commands will display every
process?
 ps –all
 ps -e
 ps
 ps -a
38. The ps command requires administrative access.
True or False?
 True
 False
39. Which of the following commands will update all
packages?
 apt-get upgrade
 apt-get update
 apt-get install
 apt-get search
40. Which of the following will delete all of a package’s files?
 apt-get remove
 apt-get delete
 apt-get purge
 apt-get trash
41. Which of the following commands should be executed
before installing a package?
 apt-get upgrade
 apt-get update
 apt-get install
 apt-get search
42. Users can update their own passwords.
True or False?
 True
 False
43. The root user can change the password of any user.
True or False?
 True
 False
44. Which option can be used to view status information
about the current user’s password?
 -i
 -I
 -S
 -s

You might also like