Final exam linux essentials

Содержание
  1. Linux Essentials – Final Exam Test Online 2019 (Modules 9-16)
  2. Results
  3. Categories
  4. NDG Linux Essentials 2.0 Final Exam (Chapter 9-18) Answers
  5. NDG Linux Essentials 2.0 Final Exam (Chapter 9-18) Answers
  6. Which of the following are traits of a multiuser operating system?
  7. (choose three)
  8. A pipe allows you to…
  9. Channel 2 is:
  10. The grep command…
  11. Which of the following commands can be used to scroll through a text file?
  12. (choose two)
  13. Which command can be used to print line numbers?
  14. Which are appropriate editors for writing shell scripts?
  15. (choose two)
  16. Which of the following are correct about for and while loops?
  17. (choose two)
  18. What is the correct way to assign the word “Hello” to a variable?
  19. What is the correct way to save the current directory to a variable?
  20. What is the meaning of $(( $i + 1)) ?
  21. Which of the following are valid CPU types for Intel-based platforms?
  22. (choose two)
  23. Choose all of the following statements that are true in regard to virtual RAM:
  24. (choose three)
  25. A division of a hard drive may be referred to as a _______ .
  26. The fdisk command is a tool used for working with the MBR partitioned disks.
  27. True or False?
  28. Which of the following commands will display CPU information?
  29. (choose two)
  30. The Process ID (PID) of the init process is:
  31. What directory typically contains log files?
  32. The /var directory has files that change over time.
  33. True or False?
  34. Which of the following commands will allow you to view all processes on the system?
  35. (choose two)
  36. Which directory is the root of the filesystem?
  37. A service is…
  38. Only servers have hostnames.
  39. True or False?
  40. Which of the following are valid IPv4 addresses?
  41. (choose two)
  42. Which of the following commands will allow you to log into a remote machine?
  43. Which files contain user account information?
  44. (choose two)
  45. Which command will display the UID, GID and groups your current user belongs to?
  46. Each user belongs to at least one group.
  47. True or False?
  48. Which command will display the users that are currently logged in to the system?
  49. Which command will display the groups that the root user belongs to?
  50. UIDs 1-499 are usually reserved for what kind of users?
  51. Which of the following options for the useradd command allows root to specify the UID to be associated with the account?
  52. Which command can be used to determine a user’s most recent log in?
  53. Which of the following files contains encrypted user password information?
  54. Which of the following options for the useradd command allows you to use a different primary group then the default?
  55. Which of the following commands can be used to modify a user?
  56. Which of the following are methods for setting permissions using the chmod command?
  57. (choose two)
  58. The chown command can be used to change the owner and group of a file.
  59. True or False?
  60. The chmod command can be used on a file by:
  61. The “execute” permission is never set on files by default.
  62. True or False?
  63. The “sticky bit” permission…
  64. The “setuid” permission…
  65. The “setgid” permission…
  66. (choose two)
Читайте также:  Linux узнать права папки

Linux Essentials – Final Exam Test Online 2019 (Modules 9-16)

It is an exam online; you must choose the correct answer to each question. You will pass the exam if you have more than 80 points.

You have already completed the quiz before. Hence you can not start it again.

You must sign in or sign up to start the quiz.

You have to finish following quiz, to start this quiz:

Results

0 of 40 questions answered correctly

You have reached 0 of 0 points, ( 0 )

Categories

1 . Question

The number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?

  • test $USERS = 5
  • test $USERS –a 5
  • test $USERS,5
  • test –f USERS=5
  • test $USERS –eq 5
2 . Question

Given the following script: while [ ! –f /tmp/foo ]; do echo –n “.” process_data > /tmp/foo done Which of the following are true? (choose two)

  • The screen will fill with dots.
  • /tmp/foo will be removed if it exists
  • process_data will never be run
  • If a file called /tmp/foo exists, process_data won’t be run
  • process_data will be called at most once
3 . Question
4 . Question
  • If i is 0, the loop will stop
  • This will return the value of the first argument to the script
  • 1 will be added to the i variable
  • This runs the command stored in variable i
  • This will return the value of the next argument to the script
5 . Question
  • test –d /tmp/foo | $USERS > 5
  • test /tmp/foo –d –o $USERS -gt 5
  • test /tmp/foo || $USERS > 5
  • test –d /tmp/foo –o $USERS –gt 5
  • test –f /tmp/foo –o $USERS –ge 5
6 . Question
7 . Question
8 . Question
9 . Question
10 . Question
11 . Question
12 . Question
  • Traditional Unix with a single dash (-)
  • BSD Unix without a dash
  • DOS slash (/)
  • GNU long options with two dashes (–)
13 . Question
14 . Question

To make changes permanent for kernel parameter files found under /proc/sys, the following file can have entries added to it:

15 . Question
16 . Question
  • The computer’s hard drive
  • A network cable
  • A CDROM
  • A printer attached to the network via an IP address
17 . Question
18 . Question

Which of the following commands will allow you to log into the machine server1 with the account name nick?

19 . Question
20 . Question
21 . Question

Sudo privileges can be used to specify which user can use the sudo command to execute commands as other users. True or False?

22 . Question

In distributions that do not allow the root user to login directly or via the su command, the installation process automatically configures one user account to be able to use the sudo command to execute commands as if they were executed by the root user. True or False?

Читайте также:  Downloading tor on linux

Источник

NDG Linux Essentials 2.0 Final Exam (Chapter 9-18) Answers

NDG Linux Essentials 2.0 Final Exam (Chapter 9-18) Answers

Which of the following are traits of a multiuser operating system?

(choose three)

  • Resources are shared between users
  • Users can protect their information from other users
  • Many users can log in simultaneously with a unique account
  • Each user can only log in once per day
  • An administrative user gets a dedicated CPU

A pipe allows you to…

  • …send the same input to multiple commands.
  • …type multiple commands at one prompt.
  • …send the output of one command to another.
  • …send the output of a command to a file.

Channel 2 is:

The grep command…

  • …will display all the lines that begin with the specified Regular Expression.
  • …will display all the lines in a file containing the specified Regular Expression.
  • …is not case sensitive.
  • …will display the line numbers in a file that contain a specified Regular Expression.

Which of the following commands can be used to scroll through a text file?

(choose two)

Which command can be used to print line numbers?

Which are appropriate editors for writing shell scripts?

(choose two)

Which of the following are correct about for and while loops?

(choose two)

  • while loops operate over a fixed list of items
  • for loops have a test each cycle to determine if it should run again
  • while loops have a test each cycle to determine if it should run again
  • for loops operate over a fixed list of items
  • for loops require a variable over which to iterate

What is the correct way to assign the word “Hello” to a variable?

What is the correct way to save the current directory to a variable?

What is the meaning of $(( $i + 1)) ?

  • If i is 0, the loop will stop
  • This runs the command stored in variable i
  • This will return the value of the next argument to the script
  • 1 will be added to the i variable
  • This will return the value of the first argument to the script

Which of the following are valid CPU types for Intel-based platforms?

(choose two)

Choose all of the following statements that are true in regard to virtual RAM:

(choose three)

  • Virtual RAM is stored in the CPU
  • Virtual RAM is also called swap space
  • Virtual RAM is stored on a hard drive
  • Virtual RAM is used when available physical RAM is low.

A division of a hard drive may be referred to as a _______ .

The fdisk command is a tool used for working with the MBR partitioned disks.

True or False?

Which of the following commands will display CPU information?

(choose two)

The Process ID (PID) of the init process is:

What directory typically contains log files?

The /var directory has files that change over time.

True or False?

Which of the following commands will allow you to view all processes on the system?

(choose two)

Which directory is the root of the filesystem?

A service is…

  • …another name for a computer’s hostname.
  • …a file that contains configuration information.
  • …like an IP address.
  • …a feature provided by one computer to another.
Читайте также:  Linux process monitoring and restart

Only servers have hostnames.

True or False?

Which of the following are valid IPv4 addresses?

(choose two)

Which of the following commands will allow you to log into a remote machine?

Which files contain user account information?

(choose two)

Which command will display the UID, GID and groups your current user belongs to?

Each user belongs to at least one group.

True or False?

Which command will display the users that are currently logged in to the system?

Which command will display the groups that the root user belongs to?

UIDs 1-499 are usually reserved for what kind of users?

  • Are not used for user accounts, but for group accounts
  • Log-in (human) users
  • Remote log-in accounts
  • System accounts, such as server processes

Which of the following options for the useradd command allows root to specify the UID to be associated with the account?

Which command can be used to determine a user’s most recent log in?

Which of the following files contains encrypted user password information?

Which of the following options for the useradd command allows you to use a different primary group then the default?

Which of the following commands can be used to modify a user?

Which of the following are methods for setting permissions using the chmod command?

(choose two)

The chown command can be used to change the owner and group of a file.

True or False?

The chmod command can be used on a file by:

  • The file owner and root
  • The file owner
  • Only root
  • A user that belongs to the files current group

The “execute” permission is never set on files by default.

True or False?

The “sticky bit” permission…

  • …changes the group ownership of existing files in a directory.
  • …prevents others from removing files they don’t own from a common directory.
  • …sets the group ownership of any new file created in a directory.
  • …prevents others from overwriting files they don’t own in common directories.

The “setuid” permission…

  • …prevents the owner of a file from being changed.
  • …reports the output of a script to the owner.
  • …allows a command to be run as the file owner.
  • …allows files in a directory to be manipulated as by the directory owner.

The “setgid” permission…

(choose two)

  • …prevents the group owner of a file from being changed.
  • …allows files created in a directory to be owned by the group that owns the directory.
  • …allows a command to be run as the group owner of the file.
  • …can only be set on files.

Источник

Оцените статью
Adblock
detector