MCQs > IT & Programming > Linux MCQs > Basic Linux MCQs

Basic Linux MCQ

1. To lock an account, you can use the usermod command with the ____ option.

Answer

Correct Answer: -L

Note: This Question is unanswered, help us to find answer for this one

2. To define an additional field in datasheet view, tap or click the ____ column heading.

Answer

Correct Answer: Click to Add

Note: This Question is unanswered, help us to find answer for this one

3. To create or edit a user cron table, you can use the ____ option to the crontab command.

Answer

Correct Answer: e

Note: This Question is unanswered, help us to find answer for this one

4. Every computer contains a(n) ____ to send and receive data from other computers over a network.

Answer

Correct Answer: NIC

Note: This Question is unanswered, help us to find answer for this one

5. ____________ is a script or a tool that obtains privileges of a root?

Answer

Correct Answer: Superuser

Note: This Question is unanswered, help us to find answer for this one

6. ____ components define the file system on unix/linux.

Answer

Correct Answer: Four

Note: This Question is unanswered, help us to find answer for this one

7. When using the chmod command, the mode rwx can be represented by the number ____.

Answer

Correct Answer: 7

Note: This Question is unanswered, help us to find answer for this one

8. Unix and linux are operating systems designed to run on ________.

Answer

Correct Answer: Servers.

Note: This Question is unanswered, help us to find answer for this one

9. To send a print job to a printer, you must first use the ____ command and specify what to print.

Answer

Correct Answer: Lp

Note: This Question is unanswered, help us to find answer for this one

10. The _______ command will print a list of the commands that you've previously executed.

Answer

Correct Answer: History

Note: This Question is unanswered, help us to find answer for this one

11. You can redirect a file to the standard input of a command using the ____ metacharacter.

Answer

Correct Answer: <

Note: This Question is unanswered, help us to find answer for this one

12. To search all man pages? name sections for the keyword less, you would type ______________ less.

Answer

Correct Answer: Whatis

Note: This Question is unanswered, help us to find answer for this one

13. The bind documentation consist of ____ chapters.

Answer

Correct Answer: Eight

Note: This Question is unanswered, help us to find answer for this one

14. The ______________ command can be used to see network interfaces.

Answer

Correct Answer: Ifconfig

Note: This Question is unanswered, help us to find answer for this one

15. The ____ metacharacter indicates background command execution.

Answer

Correct Answer: &

Note: This Question is unanswered, help us to find answer for this one

16. The ____ is the prompt symbol traditionally associated with ordinary users.

Answer

Correct Answer: Dollar sign ($)

Note: This Question is unanswered, help us to find answer for this one

17. Stephen bourne at at&t bell labs developed the ____ shell as the first unix command processor.

Answer

Correct Answer: Bourne

Note: This Question is unanswered, help us to find answer for this one

18. After performing a search, you can use the ____ key to return to a previously found match:

Answer

Correct Answer: N

Note: This Question is unanswered, help us to find answer for this one

19. When you start vim, you are in ____ mode automatically.

Answer

Correct Answer: Command

Note: This Question is unanswered, help us to find answer for this one

20. The ____ command prints a listing of environment and configuration variables.

Answer

Correct Answer: Printenv

Note: This Question is unanswered, help us to find answer for this one

21. You want to extract the contents from an rpm package. Which command do you use?You want to extract the contents from an rpm package. Which command do you use?

Answer

Correct Answer: Rpm2cpio

Note: This Question is unanswered, help us to find answer for this one

22. What is the difference between the apt remove and apt autoremove commands?What is the difference between the apt remove and apt autoremove commands?

Answer

Correct Answer: Both uninstall software. The apt autoremove command also uninstalls the dependencies.Both uninstall software. The apt autoremove command also uninstalls the dependencies.

Note: This Question is unanswered, help us to find answer for this one

23. The object that systemd uses to manage services is called a _ file.

Answer

Correct Answer: Unit

Note: This Question is unanswered, help us to find answer for this one

24. Which statement about default ACLs is true?

Answer

Correct Answer: They provide inheritance for user and group permissions.

Note: This Question is unanswered, help us to find answer for this one

25. What is the first step to integrate extended globs into your command-line workflow?

Answer

Correct Answer: Make extended globs persistent by adding shopt -s extglob to a shell startup file.

Note: This Question is unanswered, help us to find answer for this one

26. Which of these features is missing from the Bash Language?

Answer

Correct Answer: Object orientation

Note: This Question is unanswered, help us to find answer for this one

27. Typing systemctl enable crond does what to the crond service?

Answer

Correct Answer: Ensures that the crond service starts automatically on bootup.

Note: This Question is unanswered, help us to find answer for this one

28. Using alternation in a POSIX-extended regular expression, which numbers would this pattern match? ^(([0-9][0-9]?)|(2[0-9][0-9]))$

Answer

Correct Answer: 0-99 and 200-299

Note: This Question is unanswered, help us to find answer for this one

29. What would be in out.txt?

Answer

Correct Answer: The content of in.txt.

Note: This Question is unanswered, help us to find answer for this one

30. What is the difference between reading the list of disk partitions from /proc/partitions and getting it using fdisk -l?

Answer

Correct Answer: /proc/partitions is the kernel's list of partitions held in ram. fdisk -l reads the partition table from the drive itself.

Note: This Question is unanswered, help us to find answer for this one

31. With GNU tools such as a GNU grep, awk, and sed, what is the difference between basic regular expressions (BREs) and extended regular expressions (EREs)?

Answer

Correct Answer: Only the syntax differs.

Note: This Question is unanswered, help us to find answer for this one

32. When installing a downloaded package on the RedHat-based distribution manual using RPM, what may you have to do first?

Answer

Correct Answer: Download all dependencies and install them before installing the desired package.

Note: This Question is unanswered, help us to find answer for this one

33. What do you need to do before you can perform SSH passwordless logins?

Answer

Correct Answer: Generate RSA or DSA key pairs using ssh-keygen.

Note: This Question is unanswered, help us to find answer for this one

34. What is the purpose of a Mail Transport Agent (MTA)?

Answer

Correct Answer: It transports mail from one mail server to another.

Note: This Question is unanswered, help us to find answer for this one

35. Journald differs from traditional logging services such as rsyslogd and syslogd because its logs are _ by default.

Answer

Correct Answer: Persistent

Note: This Question is unanswered, help us to find answer for this one

36. What is the difference between using = and == in a BASH double square bracket if conditional? n (==) checks equality.

Answer

Correct Answer: There is no difference.

Note: This Question is unanswered, help us to find answer for this one

37. To permanently add NAT to the default zone using firewalld, you would use which command string?

Answer

Correct Answer: Firewall-cmd --permanent --add-masquerade

Note: This Question is unanswered, help us to find answer for this one

38. To run CGI scripts with Apache, you need to _.

Answer

Correct Answer: Make the script executable and set the httpd_enable_cgi SELinux boolean

Note: This Question is unanswered, help us to find answer for this one

39. Using backreferences in a POSIX regular expression, which word would this pattern match? (ss).*\1

Answer

Correct Answer: Possess

Note: This Question is unanswered, help us to find answer for this one

40. What is the difference between these two lines of code? echo "data" | tee -a file.txt echo "data" >> file.txt

Answer

Correct Answer: The first line will append the word data to file.txt and output it on the screen. The second line will append the word data only to file.txt.

Note: This Question is unanswered, help us to find answer for this one

41. What is the difference the == and =~ comparison operators when used in BASH double square bracket if conditionals?

Answer

Correct Answer: The == operator performs a string comparison; =~ performs a regex comparison.

Note: This Question is unanswered, help us to find answer for this one

42. What tool Should you use to replace a physical volum in LVM?

Answer

Correct Answer: Pvmove

Note: This Question is unanswered, help us to find answer for this one

43. What is the command to create an associative array in Bash?

Answer

Correct Answer: Declare -A

Note: This Question is unanswered, help us to find answer for this one

44. What is the difference between the whoami and logname commands?

Answer

Correct Answer: Whoami tells who are you currently, and logname tells who you were when you logged in initially.

Note: This Question is unanswered, help us to find answer for this one

45. Most commands that support SELinux use which option to display SELinux security context?

Answer

Correct Answer: -Z

Note: This Question is unanswered, help us to find answer for this one

46. What will not happen if you run the make command without parameters?

Answer

Correct Answer: It will clean up all previously generated binaries and perform a new build.

Note: This Question is unanswered, help us to find answer for this one

47. Which choice is a Network Manager tool used to configure network connections from the GUI?

Answer

Correct Answer: Nm-connection-editor

Note: This Question is unanswered, help us to find answer for this one

48. An rsyslogd filter determines which items in a log file to act on. What is it made up of?

Answer

Correct Answer: A filter and an action

Note: This Question is unanswered, help us to find answer for this one

49. Which option would you choose to force grep to use a basic regular expression (BRE)?

Answer

Correct Answer: Grep -G

Note: This Question is unanswered, help us to find answer for this one

50. What issue might a user have when they mount a filesystem by partition path such as /dev/sdal in the /etc/fstab file?

Answer

Correct Answer: The device order may change on boot, resulting in a system that will not boot properly.

Note: This Question is unanswered, help us to find answer for this one

51. Using a systemd-based distribution, you want to restrict the cron service from running either automatically or manually. Which command would you run?

Answer

Correct Answer: Systemctl mask crond

Note: This Question is unanswered, help us to find answer for this one

52. What will this command print? echo "Thu Jun 4 15:45:45 PDT 2020" | cut -f3 -d" "

Answer

Correct Answer: 4

Note: This Question is unanswered, help us to find answer for this one

53. As root, you set execute permissions for user, group, and other on a directory. Now users can do what?

Answer

Correct Answer: They can traverse it.

Note: This Question is unanswered, help us to find answer for this one

54. How does TCP Wrappers differ from a firewall?

Answer

Correct Answer: TCP Wrappers works at the application layer, so it can make access decisions on encrypted data.

Note: This Question is unanswered, help us to find answer for this one

55. When would this system cron job run its task? 0 22 * * 1-5

Answer

Correct Answer: At 10:00 PM Monday to Friday

Note: This Question is unanswered, help us to find answer for this one

56. To elevate privileges using the sudo command, a user must _.

Answer

Correct Answer: Enter their own password

Note: This Question is unanswered, help us to find answer for this one

57. What would happen if you have a script file named script that takes a long time to complete, and you type nohup ./script & in the command line?

Answer

Correct Answer: The script will run in the background until you end the session.

Note: This Question is unanswered, help us to find answer for this one

58. With most GNU commands, if an option is a word, what will it be preceded by?

Answer

Correct Answer: Two dashes

Note: This Question is unanswered, help us to find answer for this one

59. You can set Linux group passwords using which command?

Answer

Correct Answer: Gpasswd

Note: This Question is unanswered, help us to find answer for this one

60. What would you type to list all systemd service unit files, whether they are enabled or not?

Answer

Correct Answer: Systemctl list-unit-files -at service

Note: This Question is unanswered, help us to find answer for this one

61. To change the priority of multiple swap partitions, which file would you edit?

Answer

Correct Answer: /etc/fstab

Note: This Question is unanswered, help us to find answer for this one

62. What does this command string do? find / -size -10K -exec ls -l {} \;

Answer

Correct Answer: It finds all files in the file system smaller than 10k and long lists them using the ls command.

Note: This Question is unanswered, help us to find answer for this one

63. Which kernel module do you need to load to use interface bonding?

Answer

Correct Answer: Bonding.

Note: This Question is unanswered, help us to find answer for this one

64. What would this sed command do? sed -E 's/[a-Z]{4}/(&)/' textfile.txt

Answer

Correct Answer: It would replace the first four letters with an ampersand (&).

Note: This Question is unanswered, help us to find answer for this one

65. Extending an LVM volume group does what to the formatted filesystem?

Answer

Correct Answer: It does nothing.

Note: This Question is unanswered, help us to find answer for this one

66. Why might would you use the usermod command ?

Answer

Correct Answer: To change global user account settings

Note: This Question is unanswered, help us to find answer for this one

67. What is the job of the NetworkManager daemon?

Answer

Correct Answer: It is a command-line tool that manages network connections.

Note: This Question is unanswered, help us to find answer for this one

68. To search from the current cursor position up to the beginning of the file using VIM, type _ and then the search criteria.

Answer

Correct Answer: ?

Note: This Question is unanswered, help us to find answer for this one

69. To configure the Kerberos client, which command should you use to import the keytab file?

Answer

Correct Answer: Ktutil

Note: This Question is unanswered, help us to find answer for this one

70. When configuring a Samba share, how would the engineering group be specified in the smb.conf?

Answer

Correct Answer: It would be preceded by an @ symbol, such as @engineering.

Note: This Question is unanswered, help us to find answer for this one

71. In an extended regular expression, you would use (pattern){3} to match three instances of the pattern. How would you match the same thing with an extended glob?

Answer

Correct Answer: Occurrence quantifiers are not supported in Bash's version of extended globs, so this is not possible.

Note: This Question is unanswered, help us to find answer for this one

72. What is the /etc/hosts file used for?

Answer

Correct Answer: Configuring DNS name servers

Note: This Question is unanswered, help us to find answer for this one

73. You send an email to a remote client using the following syntax. What will be in the body of the email?

Answer

Correct Answer: The current date and time

Note: This Question is unanswered, help us to find answer for this one

74. What NFS option allows the root user to access NFS shares as the root user?

Answer

Correct Answer: No_root_squash

Note: This Question is unanswered, help us to find answer for this one

75. What is not inherited by child process?

Answer

Correct Answer: Shell aliases

Note: This Question is unanswered, help us to find answer for this one

76. To remove all ACLs from a directory , use setfacl with which options?

Answer

Correct Answer: -b

Note: This Question is unanswered, help us to find answer for this one

77. What is one major difference between brace expansion and globs?

Answer

Correct Answer: Brace expansion creates a list; globs match the list of pathnames.

Note: This Question is unanswered, help us to find answer for this one

78. What is a major advantage of using Logical Volume Management (LVM)?

Answer

Correct Answer: Volumes can be resized even if the free space is not contiguous.

Note: This Question is unanswered, help us to find answer for this one

79. When a user deletes a file using the rm command, Linux will _.

Answer

Correct Answer: Ask for confirmation if configured to do so

Note: This Question is unanswered, help us to find answer for this one

80. Why is the passwd command able to modify the /etc/passwd file?

Answer

Correct Answer: It has the SUID permission mode and is owned by root.

Note: This Question is unanswered, help us to find answer for this one

81. In the Bash shell, what is the difference between piping into | and piping into |&?

Answer

Correct Answer: Piping into | pipes stdout. Piping into |& pipes stdout and stderr.

Note: This Question is unanswered, help us to find answer for this one

82. Why doesn't passwd -l keep a user from logging in via other methods?

Answer

Correct Answer: It locks only the password, not the account, so users can still authenticate with keys or other methods.

Note: This Question is unanswered, help us to find answer for this one

83. You are managing an Apache web server on a system using SELinux. By default it cannot read personal webpages in users' home directories. What SELinux boolean would you set to allow this?

Answer

Correct Answer: Httpd_enable_homedirs

Note: This Question is unanswered, help us to find answer for this one

84. Ifconfig has been deprecated. What command is now recommended for changing IP addresses in the live config?

Answer

Correct Answer: Ip

Note: This Question is unanswered, help us to find answer for this one

85. When would this system cron job run its task? 0 1 \* \* \*

Answer

Correct Answer: Every day at 1:00 AM

Note: This Question is unanswered, help us to find answer for this one

86. What command would you use to resize an LVM volume group to include an additional physical volume?

Answer

Correct Answer: Vgextend

Note: This Question is unanswered, help us to find answer for this one

87. In a systemd-based OS, you can change the system hostname by editing /etc/hostname manually and then doing what?

Answer

Correct Answer: Nothing, the system notices automatically.

Note: This Question is unanswered, help us to find answer for this one

88. When archiving files, which command will preserve all file attributes including ACLs and SELinux security context?

Answer

Correct Answer: Tar

Note: This Question is unanswered, help us to find answer for this one

89. What character class is equal to this set? [0-9]

Answer

Correct Answer: [[:digit:]]

Note: This Question is unanswered, help us to find answer for this one

90. Packages can be downloaded but not installed with yum or dnf by specifying which option?

Answer

Correct Answer: --downloadonly

Note: This Question is unanswered, help us to find answer for this one

91. Assume the variable myNumber holds a string consisting of 10 digits. What will this command output? echo \$myNumber | sed -e 's/^[[:digit:]][[:digit:]][[:digit:]]/(&)/g'

Answer

Correct Answer: It will output the same 10-digit number, but the first 3 digits will be inside parentheses.

Note: This Question is unanswered, help us to find answer for this one

92. What does the /etc/nsswitch.conf file manage?

Answer

Correct Answer: Sources for name service information

Note: This Question is unanswered, help us to find answer for this one

93. What is the key difference between a redirect (>) and piping to the tee command?

Answer

Correct Answer: The tee command sends output to STDOUT and a file, whereas a redirect sends output only to a file.

Note: This Question is unanswered, help us to find answer for this one

94. A backup drive was created using dd to make a bit-for-bit copy. When the drive is inserted into an iSCSI target before it is booted up, the data appears to be missing. What happened?

Answer

Correct Answer: When the backup drive was duplicates, the label was as well. When booted, the system mounted the old duplicates drive by its identical label.

Note: This Question is unanswered, help us to find answer for this one

95. What command is used to determine the amount of disk usage for a directory?

Answer

Correct Answer: Du

Note: This Question is unanswered, help us to find answer for this one

96. The ssh-copy-id command copies _ to the remote host.

Answer

Correct Answer: The ssh public key

Note: This Question is unanswered, help us to find answer for this one

97. Which command in Bash executes the last line in the shell history that starts with ls?

Answer

Correct Answer: !ls

Note: This Question is unanswered, help us to find answer for this one

98. What would this command output? ps -e --format uid,pid,ppid,%cpu,cmd

Answer

Correct Answer: The user ID, process ID, parent process ID, CPU usage, and command name of a process

Note: This Question is unanswered, help us to find answer for this one

99. You want to resolve a long list of DNS names using dig. What should you do?

Answer

Correct Answer: Create a text file including all names and use the -f option of dig.

Note: This Question is unanswered, help us to find answer for this one

100. How would you describe PCP (Performance Co-Pilot)?

Answer

Correct Answer: It is a set of tools, services, and libraries for gathering and analyzing performance measures.

Note: This Question is unanswered, help us to find answer for this one

101. Which command will tell you how long a system has been running?

Answer

Correct Answer: Uptime

Note: This Question is unanswered, help us to find answer for this one

102. Which command allows you to do packet analysis from the command line?

Answer

Correct Answer: Tcpdump

Note: This Question is unanswered, help us to find answer for this one

103. What would this locate command show? locate --regexp '^/usr.*pixmaps.*jpg$'

Answer

Correct Answer: All file paths that start with

Note: This Question is unanswered, help us to find answer for this one

104. What does this command string do? find / -size +10M -exec ls -l {} ;

Answer

Correct Answer: It finds all files larger than 10 MB and long lists them using the ls command.

Note: This Question is unanswered, help us to find answer for this one

105. When using iproute2, how do you show routing information for an IPv6 network?

Answer

Correct Answer: Ip -6 route show

Note: This Question is unanswered, help us to find answer for this one

106. Linux file access control lists (ACLs) are _.

Answer

Correct Answer: Discretionary access control system permissions layered over standard Linux permissions

Note: This Question is unanswered, help us to find answer for this one

107. To mount a drive by its ID, what command would you use first to retrieve it?

Answer

Correct Answer: Blkid

Note: This Question is unanswered, help us to find answer for this one

108. A sorting ____ is a field position within each line.

Answer

Correct Answer: Key

Note: This Question is unanswered, help us to find answer for this one

109. Linux is an example of a(n) ______.

Answer

Correct Answer: Operating system

Note: This Question is unanswered, help us to find answer for this one

110. ____ gives the owner read, write, and execute permissions.

Answer

Correct Answer: Chmod 755

Note: This Question is unanswered, help us to find answer for this one

111. The core component of the gui in linux is referred to as ____.

Answer

Correct Answer: X Windows

Note: This Question is unanswered, help us to find answer for this one

112. The location of users' default shells is stored in the ______ file.

Answer

Correct Answer: /etc/passwd

Note: This Question is unanswered, help us to find answer for this one

113. The main characteristic of ____ is that its source code is published with the software.

Answer

Correct Answer: Open source software

Note: This Question is unanswered, help us to find answer for this one

114. The ____ is where directories and files are stored on a disk drive.

Answer

Correct Answer: Data block

Note: This Question is unanswered, help us to find answer for this one

115. ____ is a freely available version of x windows used in many linux distributions.

Answer

Correct Answer: XFree86

Note: This Question is unanswered, help us to find answer for this one

116. When you append a(n) ____ to a command, the command is run in a background process.

Answer

Correct Answer: &

Note: This Question is unanswered, help us to find answer for this one

117. To move from the /home/joe/test/data to the /home/joe directory, use the ____ command.

Answer

Correct Answer: Cd ../..

Note: This Question is unanswered, help us to find answer for this one

118. The unix/linux shell acts as a(n) ____ when reading script files.

Answer

Correct Answer: Interpreter

Note: This Question is unanswered, help us to find answer for this one

119. The ____ function within the awk command is used to format output.

Answer

Correct Answer: Printf

Note: This Question is unanswered, help us to find answer for this one

120. By default, pr formats the specified files into single-column pages of ____ lines.

Answer

Correct Answer: 66

Note: This Question is unanswered, help us to find answer for this one

121. By default, all print jobs have a priority of ____.

Answer

Correct Answer: 50

Note: This Question is unanswered, help us to find answer for this one

122. The line in the script for setting the bash shell is: ____.

Answer

Correct Answer: #!/bin/bash

Note: This Question is unanswered, help us to find answer for this one

123. The root of a file system is denoted by the ____.

Answer

Correct Answer: Forward slash

Note: This Question is unanswered, help us to find answer for this one

124. You can type more than one command on the command line by separating commands with a ____.

Answer

Correct Answer: Semicolon (;)

Note: This Question is unanswered, help us to find answer for this one

125. In linux most system configuration files are stored in the ____ directory.

Answer

Correct Answer: /etc

Note: This Question is unanswered, help us to find answer for this one

126. To view a list of files and their type, use the ____ switch to the ls command.

Answer

Correct Answer: -F

Note: This Question is unanswered, help us to find answer for this one

127. To display the contents of a file called data, use the command ____.

Answer

Correct Answer: Cat data

Note: This Question is unanswered, help us to find answer for this one

128. The section of an inode that stores permissions is called the ____ of the file.

Answer

Correct Answer: Mode

Note: This Question is unanswered, help us to find answer for this one

129. The fastest method to search for files in the linux directory tree is to use the ____ command.

Answer

Correct Answer: Locate

Note: This Question is unanswered, help us to find answer for this one

130. Solaris, hp-ux and aix are all ____ of unix.

Answer

Correct Answer: Flavors

Note: This Question is unanswered, help us to find answer for this one

131. The _____ command displays information about the linux kernel:

Answer

Correct Answer: Uname

Note: This Question is unanswered, help us to find answer for this one

132. The ____ filesystem contains most of the operating system files.

Answer

Correct Answer: Root

Note: This Question is unanswered, help us to find answer for this one

133. The ____ command displays the arp table and is used to modify it.

Answer

Correct Answer: Arp

Note: This Question is unanswered, help us to find answer for this one

134. The ____ command can be used to provide a long listing for each file in a certain directory.

Answer

Correct Answer: Ls -l

Note: This Question is unanswered, help us to find answer for this one

135. You can type the _____ command, with no arguments, to learn your current username and nothing more?

Answer

Correct Answer: Whoami

Note: This Question is unanswered, help us to find answer for this one

136. You can execute ____ main types of linux commands.

Answer

Correct Answer: Three

Note: This Question is unanswered, help us to find answer for this one

137. The ____ directory contains the kernel (operating system) images.

Answer

Correct Answer: /boot

Note: This Question is unanswered, help us to find answer for this one

138. You can create user accounts on the linux system by using the ____ command.

Answer

Correct Answer: Useradd

Note: This Question is unanswered, help us to find answer for this one

139. The early standard linux file system was ____.

Answer

Correct Answer: Ext2

Note: This Question is unanswered, help us to find answer for this one

140. Most files on a linux system that contain configuration information are ____ files.

Answer

Correct Answer: Text

Note: This Question is unanswered, help us to find answer for this one

141. Logic structures are also called ____ structures.

Answer

Correct Answer: Control

Note: This Question is unanswered, help us to find answer for this one

142. Linux provides the foundation for the ____ operating system.

Answer

Correct Answer: Android

Note: This Question is unanswered, help us to find answer for this one

143. Kali is explaining her request. she is working on the ___________ of her message.

Answer

Correct Answer: Body

Note: This Question is unanswered, help us to find answer for this one

144. In linux, the three levels of file access are ____, ____, and ____.

Answer

Correct Answer: Owner; group; others

Note: This Question is unanswered, help us to find answer for this one

145. In linux, the native file system is the ____, which is installed by default.

Answer

Correct Answer: Ext fs

Note: This Question is unanswered, help us to find answer for this one

146. If a source file contains ____ errors, it cannot be converted into an executable file.

Answer

Correct Answer: Syntax

Note: This Question is unanswered, help us to find answer for this one

147. Everything in linux is a ____________.

Answer

Correct Answer: File

Note: This Question is unanswered, help us to find answer for this one

148. Errors on a filesystem are often referred to as filesystem ____ and are common on most filesystems.

Answer

Correct Answer: Corruption

Note: This Question is unanswered, help us to find answer for this one

149. Each hardware device must have its own ____ so that the operating system can detect it.

Answer

Correct Answer: Driver

Note: This Question is unanswered, help us to find answer for this one

150. A program’s high-level language statements are stored in a file called the ____ file.

Answer

Correct Answer: Source

Note: This Question is unanswered, help us to find answer for this one

151. A ____ is used to refer to the user’s home directory.

Answer

Correct Answer: Tilde (~)

Note: This Question is unanswered, help us to find answer for this one

152. A ____ is commonly packaged with a new computer system.

Answer

Correct Answer: Rescue disk

Note: This Question is unanswered, help us to find answer for this one

153. What command can be used to forward the port 8000 on the local machine to the port 80 on a remote machine with IP 192.168.0.10?


Answer

Correct Answer: ssh -L 8000:192.168.0.1:80 192.168.0.10

Note: This Question is unanswered, help us to find answer for this one

154. Which of the following commands can you use to transfer files securely to and from remote systems?


Answer

Correct Answer: scp

Note: This Question is unanswered, help us to find answer for this one

155. Which of the following files is executed by bash when it is launched as a non-login shell?


Answer

Correct Answer: .bashrc

Note: This Question is unanswered, help us to find answer for this one

156. What is Postfix?


Answer

Correct Answer: A mail transfer agent

Note: This Question is unanswered, help us to find answer for this one

157. Which of the following commands does not give useful system information?


Answer

Correct Answer: cat /proc/network

Note: This Question is unanswered, help us to find answer for this one

158. Which of the following is not a version control system used under Linux?


Answer

Correct Answer: TFS

Note: This Question is unanswered, help us to find answer for this one

159. Which of the following files is used to configure filesystems shared via NFS?


Answer

Correct Answer: /etc/exports

Note: This Question is unanswered, help us to find answer for this one

160. What is LSB?


Answer

Correct Answer: An ensemble of standards

Note: This Question is unanswered, help us to find answer for this one

161. Which of the following desktop environments and window managers does not use GTK+?


Answer

Correct Answer: KDE

Note: This Question is unanswered, help us to find answer for this one

162. Which of the following utilities can you use to capture and analyze packets on an Ethernet network?


Answer

Correct Answer: wireshark

Note: This Question is unanswered, help us to find answer for this one

163. Which of the following is prohibited by the GPL under which Linux and most Linux-based software are licensed?


Answer

Correct Answer: Static linking with closed-source proprietary software

Note: This Question is unanswered, help us to find answer for this one

164. Which of the following is not a component of a Linux mail server or gateway?


Answer

Correct Answer: mutt

Note: This Question is unanswered, help us to find answer for this one

165. What is the function of the curl command?


Answer

Correct Answer: To transfer data using URL Syntax

Note: This Question is unanswered, help us to find answer for this one

166. What does the command "df -h" do?


Answer

Correct Answer: Displays filesystems usage in a human-readable way

Note: This Question is unanswered, help us to find answer for this one

167. What option should you use with LILO or GRUB to boot a Linux system in the maintenance mode, runlevel 1?


Answer

Correct Answer: single

Note: This Question is unanswered, help us to find answer for this one

168. Which of the following commands allows you to watch the file /var/log/messages as it is written?


Answer

Correct Answer: tail -f /var/log/messages

Note: This Question is unanswered, help us to find answer for this one

169. Which of the following commands allows you to run a graphical application on the machine "remotemachine" while allowing you to control it from your system?


Answer

Correct Answer: ssh -X remotemachine

Note: This Question is unanswered, help us to find answer for this one

170. What is the default port used by ssh?


Answer

Correct Answer: 22

Note: This Question is unanswered, help us to find answer for this one

171. Which of the following commands is used to resume a process suspended with the Ctrl-Z shortcut?


Answer

Correct Answer: fg

Note: This Question is unanswered, help us to find answer for this one

172. Which of the following command lines can be used as root to configure the first Ethernet card with the IP 192.168.0.1, and the default gateway as 192.168.0.10?


Answer

Correct Answer: ifconfig eth0 192.168.0.1 netmask 255.255.255.0 &amp;&amp; route add default gw 192.168.0.10

Note: This Question is unanswered, help us to find answer for this one

173. Where are the configuration files for a scanning device located?


Answer

Correct Answer: /etc/sane.d/

Note: This Question is unanswered, help us to find answer for this one

174. Which of the following can not be done with the help of ssh?


Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

175. On a Linux system without the Shadow Suite installed, user passwords are stored in _______.


Answer

Correct Answer: /etc/passwd

Note: This Question is unanswered, help us to find answer for this one

176. Which of the following options of ln will allow you to create a symbolic link?


Answer

Correct Answer: -s

Note: This Question is unanswered, help us to find answer for this one

177. How do you update the last accessed time of a file?


Answer

Correct Answer: touch file

Note: This Question is unanswered, help us to find answer for this one

178. What does the command "du -hcs *" do?


Answer

Correct Answer: Displays the used space of every directory and file in the current path with a grand total

Note: This Question is unanswered, help us to find answer for this one

179. What does the command "tar zxf latest.tgz" do?


Answer

Correct Answer: Decompresses and unpacks the latest.tgz archive

Note: This Question is unanswered, help us to find answer for this one

180. You want to show every line (with the file name and the line number) in the log files of a Ubuntu system that does NOT contain the string "info" (case insensitive). What is the proper command?


Answer

Correct Answer: grep -i -n -v "info" -R /var/log/*

Note: This Question is unanswered, help us to find answer for this one

181. Which of the following file extensions is not used by a Linux distribution package management system?


Answer

Correct Answer: .pkg

Note: This Question is unanswered, help us to find answer for this one

182. What is the de facto antivirus software for an e-mail server under Linux?


Answer

Correct Answer: ClamAV

Note: This Question is unanswered, help us to find answer for this one

183. CUPS is a _______.


Answer

Correct Answer: Printing management system

Note: This Question is unanswered, help us to find answer for this one

184. Which of the following utilities is used to change the priority of a process in the kernel's scheduler?


Answer

Correct Answer: nice

Note: This Question is unanswered, help us to find answer for this one

185. Which of the following addresses can be used to access the CUPS printer management system on the local machine?


Answer

Correct Answer: http://localhost:631

Note: This Question is unanswered, help us to find answer for this one

186. Which of the following protocols is not encrypted?


Answer

Correct Answer: tcp

Note: This Question is unanswered, help us to find answer for this one

187. Which of the following virtualization solutions doesn't work on Linux x86?


Answer

Correct Answer: Mac-on-Linux

Note: This Question is unanswered, help us to find answer for this one

188. What effect does a set sticky bit have on a file in a Linux system?


Answer

Correct Answer: None

Note: This Question is unanswered, help us to find answer for this one

189. Which of the following is the most appropriate and fastest utility to use when regularly copying a slightly modified version of a big file, for example a video montage, to a backup server?


Answer

Correct Answer: rsync

Note: This Question is unanswered, help us to find answer for this one

190. Which of the following utilities can you use for CCTV under Linux?


Answer

Correct Answer: ZoneMinder

Note: This Question is unanswered, help us to find answer for this one

191. What are the standard commands to install a program from source?


Answer

Correct Answer: ./configure &amp;&amp; make &amp;&amp; make install

Note: This Question is unanswered, help us to find answer for this one

192. Which of the following will be of no use for running a Windows program on a Linux system?


Answer

Correct Answer: PearPC

Note: This Question is unanswered, help us to find answer for this one

193. Which of the following commands will help you diagnose a software RAID system under Linux?


Answer

Correct Answer: /sbin/mdadm --detail /dev/md0

Note: This Question is unanswered, help us to find answer for this one

194. Which of the following utilities displays the RAM usage?


Answer

Correct Answer: free

Note: This Question is unanswered, help us to find answer for this one

195. What is LAMP?


Answer

Correct Answer: An acronym used to identify a commonly used free software solution stack

Note: This Question is unanswered, help us to find answer for this one

196. With a umask set to 027, what is the initial mode for a newly created file?


Answer

Correct Answer: 640

Note: This Question is unanswered, help us to find answer for this one

197. On a Debian GNU/Linux system, which of the following is a standard path to GRUB's configuration file?


Answer

Correct Answer: /boot/grub/grub.cfg

Note: This Question is unanswered, help us to find answer for this one

198. Which of the following programs allows, under conditions, users to execute commands as root?


Answer

Correct Answer: sudo

Note: This Question is unanswered, help us to find answer for this one

199. Which of the following is not a Unix/Linux shell?


Answer

Correct Answer: efi-shell

Note: This Question is unanswered, help us to find answer for this one

200. What is the name of the driver specification used to print to PostScript printers?


Answer

Correct Answer: PPD

Note: This Question is unanswered, help us to find answer for this one

201. Which of the following licenses is not GPL-compatible?


Answer

Correct Answer: Netscape Public License

Note: This Question is unanswered, help us to find answer for this one

202. Which of the following software packages can you use to manage an Uninterruptible Power Supply (UPS) under Linux?


Answer

Correct Answer: nut

Note: This Question is unanswered, help us to find answer for this one

203. Which of the following options of the rm command will remove files and directories recursively without asking for confirmation?


Answer

Correct Answer: -rf

Note: This Question is unanswered, help us to find answer for this one

204. Which command redirects all outputs from cmd to out.log with a bash terminal?

Answer

Correct Answer: cmd  out.log 2

Note: This Question is unanswered, help us to find answer for this one

205. How do you set an environment variable FOO with bash?


Answer

Correct Answer: export FOO="bar"

Note: This Question is unanswered, help us to find answer for this one

206. Which of the following is not a usual filename to be found in a user configuration directory for OpenSSH?


Answer

Correct Answer: id_rsa.public

Note: This Question is unanswered, help us to find answer for this one

207. What is Edubuntu?


Answer

Correct Answer: A distribution aimed at users aged 6 to 18

Note: This Question is unanswered, help us to find answer for this one

208. Which of the following commands can be used in a script to check and repair the disk partition /dev/sda2 using the ext3 filesystem?


Answer

Correct Answer: fsck -f -p -y /dev/sda2

Note: This Question is unanswered, help us to find answer for this one

209. Which command line utility allows you to control and monitor the health of hard disks?


Answer

Correct Answer: smartctl

Note: This Question is unanswered, help us to find answer for this one

210. What is a daemon?


Answer

Correct Answer: A process that runs in the background

Note: This Question is unanswered, help us to find answer for this one

211. Which of the following commands does not display active processes?


Answer

Correct Answer: which

Note: This Question is unanswered, help us to find answer for this one

212. Which of the following commands disables a site or virtual host in Apache under Debian/Ubuntu?


Answer

Correct Answer: a2dissite

Note: This Question is unanswered, help us to find answer for this one

213. As of Linux 2.6, what is the default sound system?


Answer

Correct Answer: ALSA

Note: This Question is unanswered, help us to find answer for this one

214. Which of the following rpm packages cannot be installed on an amd64 machine with the appropriate system?


Answer

Correct Answer: OpenOffice_org-writer-2.3.0.1.2-10.5.ppc.rpm

Note: This Question is unanswered, help us to find answer for this one

215. Which of the following distributions can not be backed by a support contract from its vendor?


Answer

Correct Answer: Fedora

Note: This Question is unanswered, help us to find answer for this one

216. Which of the following crontab lines sets up the execution of schdcmd every 1st and 15th of the month at 7:55 and 18:55?


Answer

Correct Answer: 55 7,18 1,15 * * schdcmd

Note: This Question is unanswered, help us to find answer for this one

217. Within the grub interface, which of the following commands do you issue to install the GRUB boot-loader to the Master Boot Record of the first IDE disk?


Answer

Correct Answer: setup (hd0)

Note: This Question is unanswered, help us to find answer for this one

218. Which of the following file systems can not be used for /?


Answer

Correct Answer: ntfs

Note: This Question is unanswered, help us to find answer for this one

219. Under Linux, the user directories are usually stored in_______.


Answer

Correct Answer: /home/

Note: This Question is unanswered, help us to find answer for this one

220. Which of the following commands reconfigures Xorg on a Debian machine?


Answer

Correct Answer: dpkg-reconfigure xserver-xorg

Note: This Question is unanswered, help us to find answer for this one

221. Which of the following commands allows you to specify the default file mode creation mask?


Answer

Correct Answer: umask

Note: This Question is unanswered, help us to find answer for this one

222. Which of the following commands is not network-related?


Answer

Correct Answer: dpkg

Note: This Question is unanswered, help us to find answer for this one

223. Which of the following utilities will not help you convert a video from one format to another under Linux?


Answer

Correct Answer: avconvert

Note: This Question is unanswered, help us to find answer for this one

224. Which of the following realtime systems uses Linux?


Answer

Correct Answer: Wind River Real-Time Core

Note: This Question is unanswered, help us to find answer for this one

225. Which of the following commands is used in conjunction with slocate?


Answer

Correct Answer: updatedb

Note: This Question is unanswered, help us to find answer for this one

226. What is the interface used to allow user applications to use the video hardware without going through the X server called?


Answer

Correct Answer: Direct Rendering Infrastructure

Note: This Question is unanswered, help us to find answer for this one

227. What is the command used to upgrade all installed packages on a machine running Ubuntu?

Answer

Correct Answer: apt-get update &amp;&amp; apt-get dist-upgrade

Note: This Question is unanswered, help us to find answer for this one

228. Which of the following commands will not log you out of a bash terminal?


Answer

Correct Answer: escape

Note: This Question is unanswered, help us to find answer for this one

229. Which of the following commands creates a new user along with its home directory and populates it with files from /etc/skel?


Answer

Correct Answer: useradd -mc "John Doe" jdoe

Note: This Question is unanswered, help us to find answer for this one

230. Which of the following switches forces rm to ask for confirmation?


Answer

Correct Answer: -i

Note: This Question is unanswered, help us to find answer for this one

231. Which of the following is not a Groupware solution for Linux?


Answer

Correct Answer: Colabor

Note: This Question is unanswered, help us to find answer for this one

232. Which of the following is not a text editor for Linux?


Answer

Correct Answer: edit

Note: This Question is unanswered, help us to find answer for this one

233. What is the command giving access to the help of an application?


Answer

Correct Answer: man

Note: This Question is unanswered, help us to find answer for this one

234. The ''rm'' command is used to:

Answer

Correct Answer: delete a file

Note: This Question is unanswered, help us to find answer for this one

235. Which one is correct DNS Lookup Command ?

Answer

Correct Answer: dig command

Note: This Question is unanswered, help us to find answer for this one

236. Compress or decompress named file(s) ?

Answer

Correct Answer: bzip2

Note: This Question is unanswered, help us to find answer for this one

237. The default private generated by "ssh-keygen" is located at _____ and should have permissions ___.

Answer

Correct Answer: ~/.ssh/id_rsa, 600

Note: This Question is unanswered, help us to find answer for this one

238. The correct command to install a downloaded Debian package, "~/Downloads/mypackage.deb" is

Answer

Correct Answer: (sudo) dpkg -i "~/Downloads/mypackage.deb"

Note: This Question is unanswered, help us to find answer for this one

239. Correct form of Reverse DNS Lookups ?

Answer

Correct Answer: nslookup 134.170.185.46

Note: This Question is unanswered, help us to find answer for this one

240. Which of these media players does not run on Linux ?

Answer

Correct Answer: Winamp

Note: This Question is unanswered, help us to find answer for this one

241. Command for Change file owner and group ?

Answer

Correct Answer: chown

Note: This Question is unanswered, help us to find answer for this one

242. What is the correct value for (rwxrwxrwx) No restrictions on permissions. Anybody may do anything.

Answer

Correct Answer: 777

Note: This Question is unanswered, help us to find answer for this one

243. Can you make hard links to directories just as you can to ordinary files?

Answer

Correct Answer: Sometimes, depending on file system restrictions.

Note: This Question is unanswered, help us to find answer for this one

244. Which file would be returned by ls File[A5] ?

Answer

Correct Answer: FileA

Note: This Question is unanswered, help us to find answer for this one

245. What will you get if you try to read from the pseudo-device /dev/zero?

Answer

Correct Answer: An infinite string of nulls ('\0', ASCII 0x00).

Note: This Question is unanswered, help us to find answer for this one

246. In BASH scripts the symbols "<<" indicate...

Answer

Correct Answer: a "here" document

Note: This Question is unanswered, help us to find answer for this one

247. To block/allow regular users to send write messages to your session, you use:

Answer

Correct Answer: mesg

Note: This Question is unanswered, help us to find answer for this one

248. newgrp will:

Answer

Correct Answer: change user's group ID (GID)

Note: This Question is unanswered, help us to find answer for this one

249. In chgrp command, the letter you use to add a sticky bit (e.g., to prevent removal of files by non-owner from a directory) is:

Answer

Correct Answer: t

Note: This Question is unanswered, help us to find answer for this one

250. The last privileged port (any port that can't be opened by anyone else but the root user) is:

Answer

Correct Answer: 1023

Note: This Question is unanswered, help us to find answer for this one

251. Will tar extract information about file permissions?

Answer

Correct Answer: Yes, if "-p" specified or is root.

Note: This Question is unanswered, help us to find answer for this one

252. Can `ip` in iproute2 take multiple commands in a row?

Answer

Correct Answer: Yes, using `ip -batch`

Note: This Question is unanswered, help us to find answer for this one

253. What file will show you how the kernel was started?

Answer

Correct Answer: /proc/cmdline

Note: This Question is unanswered, help us to find answer for this one

254. Apart from SIGKILL, which other signal cannot be caught nor ignored?

Answer

Correct Answer: SIGSTOP

Note: This Question is unanswered, help us to find answer for this one

255. What is the default delimiter for the command "cut"?

Answer

Correct Answer:

Note: This Question is unanswered, help us to find answer for this one

256. A user has a file called OriginalFile, and then creates a hard link to it by executing the following command (brackets not part of command): [ cp -l OriginalFile CopyOfFile ] Which of the following are true?

Answer

Correct Answer: Editing CopyOfFile will affect OriginalFile

Note: This Question is unanswered, help us to find answer for this one

257. What is the result of echo '$MyVar' ?

Answer

Correct Answer: $MyVar

Note: This Question is unanswered, help us to find answer for this one

258. modprobe -d:

Answer

Correct Answer: specifies the directory where modules can be found.

Note: This Question is unanswered, help us to find answer for this one

259. The equivalent to whatis command is:

Answer

Correct Answer: man -f

Note: This Question is unanswered, help us to find answer for this one

260. What are the six fields of /etc/fstab?

Answer

Correct Answer: Device, mount point, file system type, mount options, dump frequency, fsck pass number.

Note: This Question is unanswered, help us to find answer for this one

261. in terms of system calls, when bash process executes cat </tmp/input command it does the following:

Answer

Correct Answer: issues a system call to create a new copy of itself, in that copy it issues a system call to close the lowest file descriptor, then issues a system call to open /tmp/input and finally issues the exec system call to execute the cat program

Note: This Question is unanswered, help us to find answer for this one

262. mklost+found:

Answer

Correct Answer: creates a lost+found directory in the current working directory

Note: This Question is unanswered, help us to find answer for this one

263. The ____ command will display LVM volume groups.

Answer

Correct Answer: vgdisplay

Note: This Question is unanswered, help us to find answer for this one

264. The cksum command will read from standard input if:

Answer

Correct Answer: '-' is used

Note: This Question is unanswered, help us to find answer for this one

265. What does the command "set $(date)" do?

Answer

Correct Answer: It parses the system date into command line parameters $1 - $6

Note: This Question is unanswered, help us to find answer for this one

266. Which command will tell you how long a system has been up and running since it was last booted?

Answer

Correct Answer: All answers are correct.

Note: This Question is unanswered, help us to find answer for this one

267. Which one of these lines will check if the directory 'foo' exists and create it if it doesn't?

Answer

Correct Answer: All of them.

Note: This Question is unanswered, help us to find answer for this one

268. what the "netstat -lx" command do?

Answer

Correct Answer: Listing all Listening Ports

Note: This Question is unanswered, help us to find answer for this one

269. In a file delimited by commas, what command will print the 3rd column of data:

Answer

Correct Answer: awk -F, '{print $3}'

Note: This Question is unanswered, help us to find answer for this one

270. In POSIX-compatible shell, what will you see if you enter "echo foo*" when there are no files beginning with "foo" in the current directory?

Answer

Correct Answer: foo*

Note: This Question is unanswered, help us to find answer for this one

271. What is the maximum size of an ext3 file system?

Answer

Correct Answer: 32 TiB (35,184,372,088,832 bytes).

Note: This Question is unanswered, help us to find answer for this one

272. To create hard-links instead of copies with the cp command, you use:

Answer

Correct Answer: -l

Note: This Question is unanswered, help us to find answer for this one

273. Which command is used for initializing physical volume(hard disk, or partition) for LVM usage?

Answer

Correct Answer: pvcreate

Note: This Question is unanswered, help us to find answer for this one

274. /bin/true is a command whose exit status is always:

Answer

Correct Answer: 0

Note: This Question is unanswered, help us to find answer for this one

275. To format a device as an ext3 (journaled) Linux extended filesystem, you use the commands:

Answer

Correct Answer: all are correct

Note: This Question is unanswered, help us to find answer for this one

276. As a non-privileged user, if you use 'nice', it will:

Answer

Correct Answer: execute a command with lower priority

Note: This Question is unanswered, help us to find answer for this one

277. If no filesystems are specified on the command line, and the _____ option is not specified, then the command "fsck" will default to checking filesystems in "/etc/fstab" serial order.

Answer

Correct Answer: -A

Note: This Question is unanswered, help us to find answer for this one

278. How are typical native code debuggers implemented?

Answer

Correct Answer: By a special system call that allows one process to control and trace execution of another.

Note: This Question is unanswered, help us to find answer for this one

279. what the "netstat -ac 5 | grep tcp" command do?

Answer

Correct Answer: Displaying Promiscuous mode with -ac switch, netstat print the selected information or refresh screen every five second. Default screen refresh in every second.

Note: This Question is unanswered, help us to find answer for this one

280. Man pages are written using what markup language?

Answer

Correct Answer: TROFF

Note: This Question is unanswered, help us to find answer for this one

281. What is the file /etc/nsswitch.conf?

Answer

Correct Answer: facility that provides a variety of sources for common configuration databases and name resolution mechanisms

Note: This Question is unanswered, help us to find answer for this one

282. What is cgroups ?

Answer

Correct Answer: Linux kernel feature to control resource usage

Note: This Question is unanswered, help us to find answer for this one

283. Which of the following commands shows routing table information?

Answer

Correct Answer: ip route show

Note: This Question is unanswered, help us to find answer for this one

284. What is the purpose of the "tset" command?

Answer

Correct Answer: To identify and initialize a terminal.

Note: This Question is unanswered, help us to find answer for this one

285. The ________ command can be used to "kill" the 'X server'.

Answer

Correct Answer: Ctrl + Alt + Bksp

Note: This Question is unanswered, help us to find answer for this one

286. You need which of the following access modes in order to cd to a system directory?

Answer

Correct Answer: x

Note: This Question is unanswered, help us to find answer for this one

287. What does the Linux "yes" command do?

Answer

Correct Answer: It outputs an infinite series of 'y's (or the word of your choice).

Note: This Question is unanswered, help us to find answer for this one

288. What is the expected output of the following command: unset x; test -z $x && echo 1

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one

289. How find the current system runlevel?

Answer

Correct Answer: runlevel

Note: This Question is unanswered, help us to find answer for this one

290. nfsstat will...

Answer

Correct Answer: type statistics on NFS and remote procedure call (RPC) activity for both client and server systems

Note: This Question is unanswered, help us to find answer for this one

291. To do unlimited precision arithmetic calculations from the shell, you use:

Answer

Correct Answer: bc

Note: This Question is unanswered, help us to find answer for this one

292. newaliases will:

Answer

Correct Answer: rebuild the mail aliases database that reside in /etc/aliases

Note: This Question is unanswered, help us to find answer for this one

293. 'mv -u' will:

Answer

Correct Answer: not remove a file or link if its modification date is the same as or newer than that of its replacement

Note: This Question is unanswered, help us to find answer for this one

294. Running "man --locale=LLL" instructs man to override the value of which of these functions?

Answer

Correct Answer: setlocale()

Note: This Question is unanswered, help us to find answer for this one

295. Which of the following is a way to update mlocate's index?

Answer

Correct Answer: updatedb

Note: This Question is unanswered, help us to find answer for this one

296. The acronym WINE stands for:

Answer

Correct Answer: Wine is not an Emulator

Note: This Question is unanswered, help us to find answer for this one

297. what the "netstat -l" command do?

Answer

Correct Answer: listing all active listening ports connections

Note: This Question is unanswered, help us to find answer for this one

298. In the command 'mv source target', if source is a directory and target is an existing directory, the result will be to:

Answer

Correct Answer: move 'source' directory to be a subdirectory of 'target' directory

Note: This Question is unanswered, help us to find answer for this one

299. To format a device as a Linux second extended filesystem (ext2), you use the command:

Answer

Correct Answer: Both mke2fs and mkfs.ext2

Note: This Question is unanswered, help us to find answer for this one

300. What does permission 641 (octal) mean?

Answer

Correct Answer: Owner can read and write; group can read; other can execute

Note: This Question is unanswered, help us to find answer for this one

301. 'mktemp -d' will:

Answer

Correct Answer: create a unique temporary directory (e.g., for script's commands usage)

Note: This Question is unanswered, help us to find answer for this one

302. In a BASH script this command line parameter contains the scripts own name:

Answer

Correct Answer: $0

Note: This Question is unanswered, help us to find answer for this one

303. The backslash on the command line indicates

Answer

Correct Answer: a one-character escape

Note: This Question is unanswered, help us to find answer for this one

304. what the "netstat -a" command do?

Answer

Correct Answer: Listing all ports (both TCP and UDP)

Note: This Question is unanswered, help us to find answer for this one

305. What will "cat /proc/mdstat" tell you?

Answer

Correct Answer: The state of your RAID file system (if any).

Note: This Question is unanswered, help us to find answer for this one

306. What happens if you try to write to /dev/null and /dev/zero?

Answer

Correct Answer: Nothing.

Note: This Question is unanswered, help us to find answer for this one

307. In bash you can use these quote marks for command substitution.

Answer

Correct Answer: backquotes ` `

Note: This Question is unanswered, help us to find answer for this one

308. The user smith issued the egrep "^[[:upper:]]" words.txt command. What does this command do?

Answer

Correct Answer: displays all lines in the words.txt file that begin with an uppercase letter

Note: This Question is unanswered, help us to find answer for this one

309. Which of the following commands can be used to change the run level?

Answer

Correct Answer: init

Note: This Question is unanswered, help us to find answer for this one

310. Which of the following commands will correctly display the version of the Linux kernel running?

Answer

Correct Answer: uname -r

Note: This Question is unanswered, help us to find answer for this one

311. Given that the ip command is installed, what is the effect of the command ip a ls

Answer

Correct Answer: It lists the defined interfaces and the addresses associated with those interfaces.

Note: This Question is unanswered, help us to find answer for this one

312. Which of the following files 'probably' contains the default "windows manager settings"?

Answer

Correct Answer: /etc/X11/xinit/xinitrc

Note: This Question is unanswered, help us to find answer for this one

313. Reset will...

Answer

Correct Answer: clear your session's screen (terminal)

Note: This Question is unanswered, help us to find answer for this one

314. What source control system does the Linux kernel use?

Answer

Correct Answer: git

Note: This Question is unanswered, help us to find answer for this one

315. Information about modules, like module dependency, and where certain types of modules reside in the filesystem, is found in:

Answer

Correct Answer: /etc/modules.conf

Note: This Question is unanswered, help us to find answer for this one

316. To send a file to the printer spool queue, you use the command:

Answer

Correct Answer: lpr

Note: This Question is unanswered, help us to find answer for this one

317. "Run Level Zero (0)" stands for _____.

Answer

Correct Answer: Halt

Note: This Question is unanswered, help us to find answer for this one

318. What program is launched by the kernel at system start up first?

Answer

Correct Answer: /sbin/init

Note: This Question is unanswered, help us to find answer for this one

319. If the system is not in runlevel 0 or 6, before performing a power-off operation, the poweroff command will execute:

Answer

Correct Answer: shutdown -h

Note: This Question is unanswered, help us to find answer for this one

320. 'mkdir -m 444 any' will:

Answer

Correct Answer: create a read-only directory named any

Note: This Question is unanswered, help us to find answer for this one

321. How do you make a list of all filenames in the /tmp directory that the contain the text "user", regardless of case?

Answer

Correct Answer: ls /tmp | grep -i user

Note: This Question is unanswered, help us to find answer for this one

322. What is not part of the Linux Kernel?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

323. To write a message to all users (on their terminals) over a network, you use:

Answer

Correct Answer: wall

Note: This Question is unanswered, help us to find answer for this one

324. Single User Mode equivalent to _____.

Answer

Correct Answer: run level 1

Note: This Question is unanswered, help us to find answer for this one

325. rev will:

Answer

Correct Answer: reverse the order of characters read from standard input and type the result stream of characters to standard output

Note: This Question is unanswered, help us to find answer for this one

326. How do you find all files in /etc which end in .conf?

Answer

Correct Answer: find /etc -name "*.conf"

Note: This Question is unanswered, help us to find answer for this one

327. options (switches) to the ps command may start with:

Answer

Correct Answer: all are correct

Note: This Question is unanswered, help us to find answer for this one

328. Can I have swap partition and swap file activated at the same time?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

329. What does it mean when a variable is unbound?

Answer

Correct Answer: It is not defined.

Note: This Question is unanswered, help us to find answer for this one

330. pwconv will...

Answer

Correct Answer: convert entries in /etc/passwd (un-shadowed) into shadowed entries in /etc/shadow

Note: This Question is unanswered, help us to find answer for this one

331. For what purposes can socat be used?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

332. What is "vmlinuz"?

Answer

Correct Answer: It is a "compressed Linux kernel".

Note: This Question is unanswered, help us to find answer for this one

333. How to display current iptables rules?

Answer

Correct Answer: iptables -L

Note: This Question is unanswered, help us to find answer for this one

334. What is the uid of root?

Answer

Correct Answer: 0

Note: This Question is unanswered, help us to find answer for this one

335. Executing the command "init 6" will _____.

Answer

Correct Answer: reboot the system

Note: This Question is unanswered, help us to find answer for this one

336. What binary format do Linux Executables use?

Answer

Correct Answer: ELF

Note: This Question is unanswered, help us to find answer for this one

337. Write a command to list all files with 5 characters in the name.

Answer

Correct Answer: ls ?????

Note: This Question is unanswered, help us to find answer for this one

338. What, according to bc, is 2^2?

Answer

Correct Answer: 4

Note: This Question is unanswered, help us to find answer for this one

339. The mkraid command will:

Answer

Correct Answer: initialize a new RAID array, destroying any existing data on the disks used

Note: This Question is unanswered, help us to find answer for this one

340. To search one or more files for matching lines, which command may be used?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

341. SSH uses _____ to authenticate remote computers.

Answer

Correct Answer: public key cryptography

Note: This Question is unanswered, help us to find answer for this one

342. Typing the "cd" command at the shell prompt will take you to the _____.

Answer

Correct Answer: $HOME

Note: This Question is unanswered, help us to find answer for this one

343. _____ is not a 'Terminal Emulator'.

Answer

Correct Answer: gdm

Note: This Question is unanswered, help us to find answer for this one

344. To create one or more directories with the mkdir command, which permissions in the directory's parent directory do you need?

Answer

Correct Answer: write

Note: This Question is unanswered, help us to find answer for this one

345. Which Run Level provides "Full multiuser mode with network and X display manager"?

Answer

Correct Answer: Run Level 5

Note: This Question is unanswered, help us to find answer for this one

346. modinfo [options] ofile' will:

Answer

Correct Answer: print information about kernel module ofile

Note: This Question is unanswered, help us to find answer for this one

347. In a ps command output, the PPID displays the:

Answer

Correct Answer: Parent process ID

Note: This Question is unanswered, help us to find answer for this one

348. GRUB stands for _____.

Answer

Correct Answer: Grand Unified Boot Loader

Note: This Question is unanswered, help us to find answer for this one

349. To see the kernel routing tables, you do:

Answer

Correct Answer: route or netstat -r

Note: This Question is unanswered, help us to find answer for this one

350. 'mv -f' will:

Answer

Correct Answer: even if the target file exists, the operation will be carried out (and no warning messages on restricted access modes will be printed)

Note: This Question is unanswered, help us to find answer for this one

351. How do you show all processes being run by a particular user?

Answer

Correct Answer: top -U [USERNAME]

Note: This Question is unanswered, help us to find answer for this one

352. To display contents of files on standard output, you could use the command:

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

353. How do you redirect stderr to stdout?

Answer

Correct Answer: Using 2>&1

Note: This Question is unanswered, help us to find answer for this one

354. modprobe...

Answer

Correct Answer: attempts to load a kernel module along with all its depended modules

Note: This Question is unanswered, help us to find answer for this one

355. What does the $ represent within the context of a shell command?

Answer

Correct Answer: The string after the $ will take on the value of the environment variable with the same name.

Note: This Question is unanswered, help us to find answer for this one

356. What does the "uname" command do?

Answer

Correct Answer: print system information

Note: This Question is unanswered, help us to find answer for this one

357. what makes the command "netstat -s"

Answer

Correct Answer: Displays statistics by protocol. By default, statistics are shown for the TCP, UDP, ICMP, and IP protocols.

Note: This Question is unanswered, help us to find answer for this one

358. command1 | command2 will?

Answer

Correct Answer: Output command1 wil be input of command2

Note: This Question is unanswered, help us to find answer for this one

359. To report the amount of free disk space available on all mounted file systems you use the command:

Answer

Correct Answer: df

Note: This Question is unanswered, help us to find answer for this one

360. Is it possible to increase SWAP space without rebooting?

Answer

Correct Answer: Yes if you create a swap file

Note: This Question is unanswered, help us to find answer for this one

361. Why hasn't ZFS been added to the Linux kernel?

Answer

Correct Answer: Sun's implementation uses a license incompatible with the GPL

Note: This Question is unanswered, help us to find answer for this one

362. What flag makes "ls -l" print file sizes in human readable format (e.g. 1K, 231M, 2G, etc)?

Answer

Correct Answer: -h

Note: This Question is unanswered, help us to find answer for this one

363. You want to load the main kernel module for USB support. Which command would help you achieve this task?

Answer

Correct Answer: modprobe usbcore

Note: This Question is unanswered, help us to find answer for this one

364. If DDD is a non empty directory, and you execute 'rmdir DDD', it will:

Answer

Correct Answer: produce an error

Note: This Question is unanswered, help us to find answer for this one

365. lsof command means:

Answer

Correct Answer: List Open Files

Note: This Question is unanswered, help us to find answer for this one

366. When does /tmp normally get cleaned out?

Answer

Correct Answer: Every time the system is booted.

Note: This Question is unanswered, help us to find answer for this one

367. True or false: The Linux OS is not affected by malware.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

368. _____ command starts the default desktop environment.

Answer

Correct Answer: startx

Note: This Question is unanswered, help us to find answer for this one

369. In a date +format, you add the hour in 24 hours format using:

Answer

Correct Answer: %H

Note: This Question is unanswered, help us to find answer for this one

370. If a host is called HHH, 'rstat HHH' will:

Answer

Correct Answer: all are correct

Note: This Question is unanswered, help us to find answer for this one

371. printenv will:

Answer

Correct Answer: type values of environment variables

Note: This Question is unanswered, help us to find answer for this one

372. What is the maximum length of a file name on Linux?

Answer

Correct Answer: It depends on the file system.

Note: This Question is unanswered, help us to find answer for this one

373. Which of the following accurately describes a "ping?"

Answer

Correct Answer: sends ICMP packets to target device/server to verify if it's online.

Note: This Question is unanswered, help us to find answer for this one

374. If you use the rm command to accidentally delete a file, how can you get the file back?

Answer

Correct Answer: You cannot get the file back.

Note: This Question is unanswered, help us to find answer for this one

375. What does "chmod 755 file" accomplish?

Answer

Correct Answer: Makes the file read/write/execute by the owner, read/execute by group and other.

Note: This Question is unanswered, help us to find answer for this one

376. mount -a' will load all filesystems listed in:

Answer

Correct Answer: /etc/fstab

Note: This Question is unanswered, help us to find answer for this one

377. Which return value from an ioctl request indicates success?

Answer

Correct Answer: 0

Note: This Question is unanswered, help us to find answer for this one

378. How to reveal detailed information about CPU?

Answer

Correct Answer: cat /proc/cpuinfo

Note: This Question is unanswered, help us to find answer for this one

379. Which of the following is not an editor?

Answer

Correct Answer: expr

Note: This Question is unanswered, help us to find answer for this one

380. How would you create an alias for the cat command?

Answer

Correct Answer: alias bkw=cat

Note: This Question is unanswered, help us to find answer for this one

381. the '-r' switch to the mount command will:

Answer

Correct Answer: mount a filesystem as read-only

Note: This Question is unanswered, help us to find answer for this one

382. LILO is _____.

Answer

Correct Answer: a boot loader

Note: This Question is unanswered, help us to find answer for this one

383. What does the Linux "no" command do?

Answer

Correct Answer: Nothing; it doesn't exist.

Note: This Question is unanswered, help us to find answer for this one

384. What is a zombie process?

Answer

Correct Answer: A zombie process is a process which has terminated, but whose parent had not yet read its exit status.

Note: This Question is unanswered, help us to find answer for this one

385. To access the value of an environment variable, we _____.

Answer

Correct Answer: add the dollar ($) symbol before the variable name

Note: This Question is unanswered, help us to find answer for this one

386. Consider using the command "cd /a/b/c", then executing "cd ..". What does this last command do?

Answer

Correct Answer: changes to /a/b directory

Note: This Question is unanswered, help us to find answer for this one

387. LVM is...

Answer

Correct Answer: Logical Volume Manager

Note: This Question is unanswered, help us to find answer for this one

388. The command "free" reports on:

Answer

Correct Answer: memory

Note: This Question is unanswered, help us to find answer for this one

389. Which tool is similar to find except that it uses an index to search?

Answer

Correct Answer: locate

Note: This Question is unanswered, help us to find answer for this one

390. The command du -h ~

Answer

Correct Answer: lists the size of all files within your $HOME with sizes in human readable form

Note: This Question is unanswered, help us to find answer for this one

391. To transfer files in an insecure way to and from a remote network site host, you use the command:

Answer

Correct Answer: ftp

Note: This Question is unanswered, help us to find answer for this one

392. /etc/resolv.conf is ...

Answer

Correct Answer: The DNS resolver configuration file

Note: This Question is unanswered, help us to find answer for this one

393. What command can be used to delete a directory, recursively searching for files and other directories and deleting them?

Answer

Correct Answer: rm -r

Note: This Question is unanswered, help us to find answer for this one

394. To read one or more files and type them on standard output, you use:

Answer

Correct Answer: cat

Note: This Question is unanswered, help us to find answer for this one

395. On Red Hat Linux and its derivatives, which of the following commands will be appropriate to check whether a particular "package" is installed or not?

Answer

Correct Answer: rpm -qa

Note: This Question is unanswered, help us to find answer for this one

396. Add this symbol to a command to run it in the background

Answer

Correct Answer: &

Note: This Question is unanswered, help us to find answer for this one

397. How do you view the documentation for the command 'kill' in the Linux terminal?

Answer

Correct Answer: man kill

Note: This Question is unanswered, help us to find answer for this one

398. LILO...

Answer

Correct Answer: is a boot loader that can boot Linux

Note: This Question is unanswered, help us to find answer for this one

399. As a privileged user, you may set the hostname with the command:

Answer

Correct Answer: hostname

Note: This Question is unanswered, help us to find answer for this one

400. What is swap?

Answer

Correct Answer: Swap space is the area on a hard disk which is part of the Virtual Memory of your machine (Swap+RAM)

Note: This Question is unanswered, help us to find answer for this one

401. Which answer assists you in finding help on the whois command?

Answer

Correct Answer: man whois

Note: This Question is unanswered, help us to find answer for this one

402. To repeat the last command in the bash shell history, type...

Answer

Correct Answer: !!

Note: This Question is unanswered, help us to find answer for this one

403. What does it means when the ps commands shows a 'Z' in the status column for a process?

Answer

Correct Answer: The process is a zombie process.

Note: This Question is unanswered, help us to find answer for this one

404. What is GNOME ?

Answer

Correct Answer: A desktop environment and graphical user interface that runs on top of a computer operating system.

Note: This Question is unanswered, help us to find answer for this one

405. what the "cd /" command do?

Answer

Correct Answer: Change into the root directory

Note: This Question is unanswered, help us to find answer for this one

406. Which firewall is most commonly used on Linux?

Answer

Correct Answer: iptables

Note: This Question is unanswered, help us to find answer for this one

407. What is the right command to save file and exit in Vim?

Answer

Correct Answer: :wq

Note: This Question is unanswered, help us to find answer for this one

408. _____ is a Linux "desktop environment".

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

409. To query DNS (Internet domain name) servers, you use the command:

Answer

Correct Answer: nslookup

Note: This Question is unanswered, help us to find answer for this one

410. Ubuntu is based on...

Answer

Correct Answer: Debian

Note: This Question is unanswered, help us to find answer for this one

411. Fedora Linux uses _____ packages.

Answer

Correct Answer: rpm

Note: This Question is unanswered, help us to find answer for this one

412. Executing "pwd" in shell will return:

Answer

Correct Answer: Current directory

Note: This Question is unanswered, help us to find answer for this one

413. How do you activate the noclobber shell option?

Answer

Correct Answer: set -o noclobber

Note: This Question is unanswered, help us to find answer for this one

414. 'mkfs' is used to:

Answer

Correct Answer: create a filesystem on a device (such as a hard disk partition)

Note: This Question is unanswered, help us to find answer for this one

415. What makes up a Linux kernel?

Answer

Correct Answer: all of these

Note: This Question is unanswered, help us to find answer for this one

416. Which directory contains all the files needed to boot the Linux system?

Answer

Correct Answer: /boot

Note: This Question is unanswered, help us to find answer for this one

417. What will show you all the subdirectories of the current directory?

Answer

Correct Answer: ls

Note: This Question is unanswered, help us to find answer for this one

418. The Linux Kernel was written by?

Answer

Correct Answer: Linus Torvalds

Note: This Question is unanswered, help us to find answer for this one

419. what the command "cd .." do

Answer

Correct Answer: one level up from the current directory

Note: This Question is unanswered, help us to find answer for this one

420. What does the pwd command do?

Answer

Correct Answer: It prints the path of the current working directory

Note: This Question is unanswered, help us to find answer for this one

421. If you wanted to execute a shell command in the background, which character would you put at the end of the command line?

Answer

Correct Answer: &

Note: This Question is unanswered, help us to find answer for this one

422. SSH stands for _____.

Answer

Correct Answer: Secure Shell

Note: This Question is unanswered, help us to find answer for this one

423. mknod can create special file (used for sending or receiving data) of type:

Answer

Correct Answer: all are correct

Note: This Question is unanswered, help us to find answer for this one

424. The loaded modules in the kernel are listed in /proc/modules. You can get this list using the command:

Answer

Correct Answer: lsmod

Note: This Question is unanswered, help us to find answer for this one

425. To start another shell under the current shell you use the command:

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

426. The netstat command give information on:

Answer

Correct Answer: all are correct

Note: This Question is unanswered, help us to find answer for this one

427. With which userspace is Linux typically paired?

Answer

Correct Answer: GNU

Note: This Question is unanswered, help us to find answer for this one

428. what makes the command cd ../../

Answer

Correct Answer: Traverse two directories up the directory tree.

Note: This Question is unanswered, help us to find answer for this one

429. uname -a will output...

Answer

Correct Answer: All of the answers are correct.

Note: This Question is unanswered, help us to find answer for this one

430. To print the first 10 lines of one or more files to the standard output, you use the command:

Answer

Correct Answer: head

Note: This Question is unanswered, help us to find answer for this one

431. The behavior of the system for each "runlevel" is available in the _____ file.

Answer

Correct Answer: /etc/inittab

Note: This Question is unanswered, help us to find answer for this one

432. The run level in a system can be configured in the file _____.

Answer

Correct Answer: /etc/inittab

Note: This Question is unanswered, help us to find answer for this one

433. Which is an example of a shell comment?

Answer

Correct Answer: mkdir text # make a directory

Note: This Question is unanswered, help us to find answer for this one

434. To use chown recursively, instead of using _recursive you can use:

Answer

Correct Answer: -R

Note: This Question is unanswered, help us to find answer for this one

435. The jobs command

Answer

Correct Answer: lists background jobs

Note: This Question is unanswered, help us to find answer for this one

436. What does GRUB stand for?

Answer

Correct Answer: Grand Unified Bootloader

Note: This Question is unanswered, help us to find answer for this one

437. The at command allows you to execute a command at:

Answer

Correct Answer: a certain date

Note: This Question is unanswered, help us to find answer for this one

438. What does the following line mean when it is run in a script '#!/bin/bash'?

Answer

Correct Answer: It makes sure that the script runs in the bash shell.

Note: This Question is unanswered, help us to find answer for this one

439. What will you get if you try to read from the pseudo-device /dev/null?

Answer

Correct Answer: Nothing.

Note: This Question is unanswered, help us to find answer for this one

440. What is the linux mascot?

Answer

Correct Answer: Penguin

Note: This Question is unanswered, help us to find answer for this one