Linux Unhatched Assignments Assessment Exam Answers 2023 and 2024

This is NDG Linux Unhateced Final Exam Answers for Cisco NetAcad in 2023.

  1. What does CLI stand for?

    • Core Line Interface
    • Core Learning Interface
    • Command Learning 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?

    • -rl
    • -r l 
    • -lr
    • -l -r
  5. Which command will print your current location in the filesystem?

    • pcl
    • cd
    • pd
    • pwd
  6. Which command will allow you to change your current directory?

    • chdir
    • cd 
    • ls
    • ch
  7. Which of the following is NOT an example of an absolute path?

    • Documents 
    • /
    • /home/sysadmin
  8. Which of the following is NOT an example of a relative path?

    • /home 
    • home/sysadmin/Documents/School/Art
    • Documents/Work
    • Documents
  9. 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
  10. 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
  11. 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
  12. 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.
  13. The first character in a long listing ls -l indicates:

    • File Type 
    • Permissions
    • File Size
    • Hard Link Count
  14. Which option to the ls will sort the output by file size?

    • -r
    • -s
    • -z
    • -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
    • chmod 
    • chown
    • chperm
  20. 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
  21. Which of the following commands is used to change the ownership of a file?

    • chperm
    • chown 
    • chow
    • chmod
  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?

    • mv 
    • rn
    • name
    • cp
  24. The mv command requires at least two arguments.

    True or False?

    • True
    • False
  25. Which command can be used to copy a file?

    • cy
    • rm
    • cp 
    • mv
  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?

    • -d
    • -r
    • -l
    • -a
  30. Which of the following commands is used to filter text?

    • grep
    • text
    • 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?

    • My favorite food is avocados.
    • Hello my name is Joe.
    • 3121991 
    • I am 37 years old.
  34. Which of the following lines would be returned by the grep 'b[oe]t' file.txt command?

    • boet
    • bet 
    • boot
    • beet
  35. Which of the following commands will NOT shutdown the system immediately?

    • shutdown now 'Goodbye World!'
    • shutdown now 
    • shutdown +0
    • shutdown
  36. Which of the following commands can be used to display network configuration information?

    • net
    • pwd
    • ifconfig 
    • netconfig
  37. Which of the following commands will display every process?

    • ps -e 
    • ps -a
    • ps --all
    • ps
  38. The ps command requires administrative access.

    True or False?

    • True
    • False
  39. Which of the following commands will update all packages?

    • apt-get search
    • apt-get install
    • apt-get upgrade 
    • apt-get update
  40. Which of the following will delete all of a package’s files?

    • apt-get trash
    • apt-get purge 
    • apt-get remove
    • apt-get delete
  41. Which of the following commands should be executed before installing a package?

    • apt-get upgrade
    • apt-get search
    • apt-get update 
    • apt-get install
  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
    • -s
    • -S 
    • -I
  45. Which of the following commands can be used to print output to the terminal?

    • ls
    • echo 
    • cp
    • chmod
  46. The > character is used for which of the following file descriptors?

    • STDERR
    • STDOUT 
    • STDIN
  47. 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
  48. The ping command uses IP addresses to identify a computer on a network.

    True or False?

    • True
    • False
Subscribe
Notify of
guest
7 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments