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 ____ 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

16. 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

17. 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

18. 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

19. 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

20. 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

21. 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

22. 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

23. 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

24. 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

25. 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

26. 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

27. 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

28. 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

29. 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

30. 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

31. 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

32. 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

33. 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

34. 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

35. 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

36. 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

37. 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

38. 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

39. 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

40. 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

41. 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

42. 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

43. 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

44. 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

45. 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

46. 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

47. 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

48. 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

49. 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

50. 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

51. 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

52. 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

53. 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

54. 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

55. 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

56. 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

57. 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

58. 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

59. 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

60. 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

61. 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

62. 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

63. 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

64. 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

65. 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

66. 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

67. 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

68. 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

69. 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

70. 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

71. 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

72. 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

73. 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

74. 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

75. 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

76. 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

77. 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

78. 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

79. 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

80. 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

81. 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

82. 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

83. 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

84. 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

85. 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

86. 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

87. 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

88. 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

89. 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

90. 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

91. 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

92. 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

93. 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

94. 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

95. 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

96. ____ 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

97. 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

98. 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

99. 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

100. 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

101. ____ 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

102. 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

103. 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

104. 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

105. 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

106. 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

107. 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

108. 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

109. 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

110. 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

111. 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

112. 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

113. 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

114. 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

115. 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

116. 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

117. 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

118. 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

119. 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

120. 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

121. 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

122. 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

123. 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

124. 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

125. The early standard linux file system was ____.

Answer

Correct Answer: Ext2

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

126. 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

127. Logic structures are also called ____ structures.

Answer

Correct Answer: Control

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

128. 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

129. 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

130. 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

131. 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

132. 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

133. Everything in linux is a ____________.

Answer

Correct Answer: File

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

134. 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

135. 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

136. 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

137. 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

138. 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

139. 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

140. 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

141. 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

142. What is Postfix?


Answer

Correct Answer: A mail transfer agent

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

143. 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

144. 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

145. 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

146. What is LSB?


Answer

Correct Answer: An ensemble of standards

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

147. 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

148. 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

149. 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

150. 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

151. 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

152. 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

153. 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

154. 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

155. 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

156. 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

157. 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

158. 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

159. 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

160. 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

161. 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

162. 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

163. 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

164. 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

165. 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

166. 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

167. CUPS is a _______.


Answer

Correct Answer: Printing management system

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

168. 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

169. 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

170. 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

171. 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

172. 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

173. 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

174. 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

175. 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

176. 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

177. 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

178. 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

179. 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

180. 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

181. 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

182. 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

183. 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

184. 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

185. 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

186. 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

187. 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

188. 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

189. 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

190. 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

191. 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

192. 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

193. 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

194. 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

195. 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

196. 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

197. 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

198. 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

199. 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

200. 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

201. 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

202. 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

203. 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

204. 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

205. 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

206. 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

207. 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

208. 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

209. 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

210. 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

211. 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

212. 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

213. 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

214. 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

215. 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

216. Compress or decompress named file(s) ?

Answer

Correct Answer: bzip2

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

217. 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

218. 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

219. 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

220. 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

221. Command for Change file owner and group ?

Answer

Correct Answer: chown

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

222. 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

223. 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

224. 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

225. 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

226. 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

227. 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

228. newgrp will:

Answer

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

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

229. 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

230. 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

231. 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

232. 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

233. 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

234. 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

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

Answer

Correct Answer: $MyVar

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

236. 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

237. The equivalent to whatis command is:

Answer

Correct Answer: man -f

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

238. 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

239. 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

240. 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

241. The ____ command will display LVM volume groups.

Answer

Correct Answer: vgdisplay

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

242. 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

243. 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

244. 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

245. 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

246. 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

247. 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

248. 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

249. 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

250. 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

251. 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

252. 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

253. 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

254. 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

255. 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

256. 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

257. 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

258. 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

259. 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

260. 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

261. 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

262. '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

263. 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

264. 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

265. 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

266. 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

267. 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

268. 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

269. 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

270. 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

271. 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

272. 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

273. 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

274. 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

275. 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

276. 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

277. 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

278. 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

279. 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

280. 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

281. 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

282. 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

283. 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

284. 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

285. 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

286. 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

287. 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

288. 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

289. How to display current iptables rules?

Answer

Correct Answer: iptables -L

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

290. What is the uid of root?

Answer

Correct Answer: 0

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

291. What binary format do Linux Executables use?

Answer

Correct Answer: ELF

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

292. 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

293. _____ is not a 'Terminal Emulator'.

Answer

Correct Answer: gdm

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

294. 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

295. 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

296. 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

297. 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

298. '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

299. 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

300. 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

301. 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

302. 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

303. 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

304. 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

305. 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

306. 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

307. printenv will:

Answer

Correct Answer: type values of environment variables

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

308. 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

309. 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

310. 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

311. 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

312. 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

313. 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

314. 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

315. 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

316. 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

317. 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

318. The command "free" reports on:

Answer

Correct Answer: memory

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

319. 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

320. 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

321. 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

322. 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

323. 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

324. 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

325. 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

326. 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

327. 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

328. 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

329. 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

330. Ubuntu is based on...

Answer

Correct Answer: Debian

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

331. '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

332. 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

333. 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

334. 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

335. The Linux Kernel was written by?

Answer

Correct Answer: Linus Torvalds

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

336. 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

337. 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

338. SSH stands for _____.

Answer

Correct Answer: Secure Shell

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

339. 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

340. 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

341. 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

342. 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

343. 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

344. 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

345. 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

346. The jobs command

Answer

Correct Answer: lists background jobs

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

347. 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

348. 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

349. 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

350. What is the linux mascot?

Answer

Correct Answer: Penguin

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

search
Linux Subjects