
[Jun 03, 2026] Free LPIC Level1 101-500 Official Cert Guide PDF Download
Lpi 101-500 Official Cert Guide PDF
The LPIC-1 Exam 101 is a multiple-choice exam that consists of 60 questions. Candidates have 90 minutes to complete the exam and must score at least 500 out of 800 points to pass. 101-500 exam is available in several languages, including English, Spanish, German, French, and Portuguese.
NEW QUESTION # 127
What is the purpose of the Bash built-in export command?
- A. It runs a command as a process in a subshell.
- B. It allows disks to be mounted remotely.
- C. It makes the command history available to subshells.
- D. It shares NFS partitions for use by other systems on the network.
- E. It sets up environment variables for applications.
Answer: E
Explanation:
Explanation
The export command is a Bash built-in command that exports environment variables and functions for use in other shell sessions1. Environment variables are named values that affect the behavior of applications and processes2. For example, the PATH variable stores a list of directories where executable programs are located, and the LANG variable sets the language and locale of the system2. By using the export command, you can make these variables available to any child process spawned by the current shell1. For example, if you want to set the EDITOR variable to vim for all subshells, you can run:
export EDITOR=vim
The export command can also be used to export functions, which are blocks of code that can be reused by invoking their name3. For example, if you want to create and export a function that prints "Hello world", you can run:
hello () { echo "Hello world"; } export -f hello
Then, you can call the hello function in any subshell or script that inherits the environment from the current shell.
The other options are not related to the export command. Option A refers to the mount command, which attaches a filesystem to a directory4. Option B refers to the command substitution feature, which runs a command in a subshell and replaces it with its output5. Option C refers to the history command, which displays the command history of the current shell. Option E refers to the exportfs command, which maintains the table of exported NFS shares.
References:
* [LPI Linux Essentials - 1.3 Basic Editing]
* [LPI Linux Essentials - 1.4 I/O Redirection]
* [LPI Linux Essentials - 1.5 Manage Simple Partitions and Filesystems]
* Linux export Command with Examples - phoenixNAP
* bash - What does "export" do in shell programming? - Stack Overflow
* How to Use Export Command in Linux [Explained for Beginners]
* mount(8) - Linux manual page
* Command Substitution - Bash Reference Manual
* [history(3) - Linux manual page]
* [exportfs(8) - Linux manual page]
NEW QUESTION # 128
Which of the following regular expressions represents a single upper-case letter?
- A. :UPPER:
- B. %C
- C. {AZ}
- D. !a-z
- E. [A-Z]
Answer: E
Explanation:
Explanation
The regular expression that represents a single upper-case letter is [A-Z]. This is a character class that matches any one character from the range A to Z, which are the 26 upper-case letters of the English alphabet. A character class is enclosed in square brackets and can contain a list or a range of characters to match. For example, [abc] matches any one of the letters a, b, or c, and [0-9] matches any one digit from 0 to 9. The other options are not valid regular expressions for a single upper-case letter. The :UPPER: option is not a valid syntax for a character class, and it would be interpreted as a literal string of seven characters. The !a-z option is not a valid syntax for a negated character class, and it would be interpreted as a literal string of four characters. The %C option is not a valid syntax for a character class, and it would be interpreted as a literal string of two characters. The {AZ} option is not a valid syntax for a character class, and it would be interpreted as a literal string of four characters. The curly braces are used for interval expressions, which specify the number of repetitions of a character or a group of characters. For example, a{2,4} matches the letter a repeated two, three, or four times. References:
* How to Use Regular Expressions (regexes) on Linux1
* How to Use Regular Expressions (RegEx) on Linux2
* A beginner's guide to regular expressions with grep3
NEW QUESTION # 129
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time?
(Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
dpkg-reconfigure
NEW QUESTION # 130
Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make
/creation time and does NOT generate them as needed? (Choose TWO correct answers.)
- A. ext3
- B. XFS
- C. JFS
- D. procfs
- E. ext2
Answer: A,E
Explanation:
The ext3 and ext2 filesystems preallocate a fixed number of inodes at the filesystem's make/creation time and do not generate them as needed. This means that the number of inodes in these filesystems is determined by the size of the partition and the inode ratio, which is usually 16 KB per inode. The inode ratio can be specified when creating the filesystem with the mke2fs command. The number of inodes in these filesystems cannot be changed dynamically, unless the filesystem is reformatted. This can lead to inode exhaustion, which occurs when all the available inodes are used up, even if there is still free disk space. To avoid this problem, it is advisable to estimate the number of files and directories that will be stored on the filesystem and adjust the inode ratio accordingly. The other options are incorrect because they do not preallocate a fixed number of inodes at the filesystem's make/creation time. The JFS and XFS filesystems use dynamic inode allocation, which means that they create inodes as needed, depending on the file and directory creation. The procfs filesystem is a virtual filesystem that does not store any data on the disk, but provides information about the processes and the kernel. Therefore, it does not have any inodes.
For more information on how inodes work and how to manage them, you can refer to the following articles:
* Inodes in Linux: limit, usage and helpful commands | Stackscale
* filesystems - What is an inode? - Unix & Linux Stack Exchange
* Allocation Methods | Linux.org
NEW QUESTION # 131
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
- A. esc zz
- B. ctrl :w!
- C. ctrl XX
- D. esc :wq!
- E. esc ZZ
Answer: D,E
Explanation:
To save a file and exit the vi/vim editor, you need to switch to command mode by pressing the Esc key, then type a colon (:) followed by a command. There are two commands that can save a file and quit the editor: x and wq. The x command writes the buffer to the file only if there are unsaved changes, while the wq command always writes the buffer to the file and updates the file modification time. Both commands are followed by an exclamation mark (!) to force the operation and override any warnings. Therefore, the correct sequences are:
* Esc ZZ: This is equivalent to typing :x and hitting Enter.
* Esc :wq!: This writes the buffer to the file and quits the editor, ignoring any warnings.
The other options are incorrect because:
* Ctrl :w! is not a valid sequence. The Ctrl key does not switch to command mode, and the w command only saves the file without exiting.
* Esc zz is not a valid sequence. The zz command does not exist in vi/vim.
* Ctrl XX is not a valid sequence. The Ctrl key does not switch to command mode, and the XX command does not exist in vi/vim.
:
How to Save a File in Vi / Vim Editor & Quit - phoenixNAP
How to Save a File in Vim / Vi and Quit the Editor | Linuxize
How To Save a File in Vi / Vim Text Editor - nixCraft
How to Save a File in Vi / Vim Editor & Quit - GeeksforGeeks
NEW QUESTION # 132
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
- A. rmdir ~/\\dir
- B. rmdir ~/'dir'
- C. rmdir '~/\dir'
- D. rmdir "~/\dir"
- E. rmdir ~/\dir
Answer: A
Explanation:
Explanation
The rmdir command removes an empty directory. To remove a directory whose name contains a backslash, the backslash must be escaped with another backslash. Therefore, the correct command is rmdir ~/\dir. The other commands will either fail to find the directory or interpret the backslash as part of a path name. References:
* [LPI Linux Essentials - 1.3 Basic Editing]
* [LPI Linux Essentials - 1.4 I/O Redirection]
* [LPI Linux Essentials - 1.5 Manage Simple Partitions and Filesystems]
NEW QUESTION # 133
Which of the following commands enables the setuid (suid) permission on the executable /bin/foo?
- A. chmod u-s /bin/foo
- B. chmod 755+s /bin/foo
- C. chmod 4755 /bin/foo
- D. chmod 1755 /bin/foo
Answer: C
Explanation:
The correct command to enable the setuid (suid) permission on the executable /bin/foo is:
B). chmod 4755 /bin/foo
The chmod command is used to change the permissions of files and directories in Linux. The chmod command can take either a symbolic or a numeric mode to specify the new permissions. The numeric mode is composed of four digits, each representing a different set of permissions: the first digit is for the special permissions, such as setuid, setgid, and sticky bit; the second digit is for the user permissions; the third digit is for the group permissions; and the fourth digit is for the others permissions. Each digit can range from 0 to 7, where 0 means no permissions, 1 means execute permission, 2 means write permission, 4 means read permission, and the sum of these values means a combination of permissions. For example, 5 means read and execute permissions, and 6 means read and write permissions.
The setuid permission is a special permission that allows an executable to run with the privileges of the owner of the file, instead of the user who launched it. The setuid permission is represented by the value 4 in the first digit of the numeric mode. For example, to enable the setuid permission on an executable file, use the following command:
chmod 4xxx file
where xxx is the combination of the user, group, and others permissions.
In this question, the executable file is /bin/foo, and the desired permissions are:
* setuid permission enabled
* user permissions: read, write, and execute
* group permissions: read and execute
* others permissions: read and execute
Therefore, the numeric mode for these permissions is 4755, where:
* 4 means setuid permission enabled
* 7 means user permissions: read, write, and execute
* 5 means group permissions: read and execute
* 5 means others permissions: read and execute
The correct command to enable the setuid permission on /bin/foo with these permissions is:
chmod 4755 /bin/foo
This command will change the permissions of /bin/foo to -rwsr-xr-x, where the s in the user section indicates the setuid permission.
The other options are not correct because:
* A. chmod 1755 /bin/foo: This command will enable the sticky bit, not the setuid permission, on /bin
/foo. The sticky bit is another special permission that prevents users from deleting or renaming files that they do not own in a shared directory. The sticky bit is represented by the value 1 in the first digit of the numeric mode. For example, to enable the sticky bit on a directory, use the following command:
chmod 1xxx directory
where xxx is the combination of the user, group, and others permissions.
* C. chmod u-s /bin/foo: This command will disable the setuid permission, not enable it, on /bin/foo. The u-s option is a symbolic mode that means remove the setuid permission from the user permissions. For example, to disable the setuid permission on an executable file, use the following command:
chmod u-s file
* D. chmod 755+s /bin/foo: This command is not valid because it mixes the numeric and the symbolic modes, which are not compatible. The 755 is a numeric mode that means user permissions: read, write, and execute; group permissions: read and execute; others permissions: read and execute. The +s is a symbolic mode that means add the setuid and setgid permissions to the user and group permissions, respectively. The chmod command does not accept both numeric and symbolic modes at the same time, and it will fail with an error message saying:
chmod: invalid mode: '755+s' Try 'chmod --help' for more information.
References:
SetUID, SetGID, and Sticky Bits in Linux File Permissions - GeeksforGeeks How to use special permissions: the setuid, setgid and sticky bits - Linux Tutorials - Learn Linux Configuration chmod(1): change file mode bits - Linux man page
NEW QUESTION # 134
Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?
- A. -a
- B. --no-clobber
- C. -c
- D. --continue
Answer: A
Explanation:
The -a option to the tee command will cause the output to be appended to the end of the output file instead of overwriting the existing file contents. The tee command reads from standard input (STDIN) and writes to standard output (STDOUT) and one or more files simultaneously. For example, ls | tee file.txt will display the output of the ls command and also write it to file.txt. If file.txt already exists, it will be overwritten unless the - a option is used. References: LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.3: Perform basic file management, tee command
NEW QUESTION # 135
Which of the following commands enables the setuid (suid) permission on the executable /bin/foo?
- A. chmod u-s /bin/foo
- B. chmod 755+s /bin/foo
- C. chmod 4755 /bin/foo
- D. chmod 1755 /bin/foo
Answer: C
NEW QUESTION # 136
What is the process ID number of the init process on a SysV init based system?
- A. It is different with each reboot.
- B. It is set to the current run level.
- C. 0
- D. 1
- E. 2
Answer: E
Explanation:
Explanation
The process ID number of the init process on a SysV init based system is 1. The init process is the first process that runs on the system, and it is responsible for initializing the user-space environment and spawning all other processes. The init process is always the first process that runs on the system, and it has the process ID (PID) of 1. The PID is a unique identifier for each process on the system, and it is assigned by the kernel.
The PID of the init process is always 1, regardless of the reboot or the run level. You can verify the PID of the init process by using the ps command, which shows information about the processes on the system. For example, to show the PID, the user, the command, and the arguments of the init process, use the following command:
ps -p 1 -o pid,user,cmd
The output of the command will show something like:
PID USER CMD 1 root /sbin/init
This shows that the init process has the PID of 1, the user of root, and the command of /sbin/init.
References:
* [SysVinit - ArchWiki]
* [Process Management in Linux - GeeksforGeeks]
* [ps(1) - Linux manual page]
NEW QUESTION # 137
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
- A. cut -d : -f 1,4 /etc/passwd
- B. fmt -f 1,4 /etc/passwd
- C. split -c 1,4 /etc/passwd
- D. paste -f 1,4 /etc/passwd
Answer: A
Explanation:
Explanation
The cut command is used to extract selected fields from each line of a file. The -d option specifies the delimiter that separates the fields, and the -f option specifies the fields to print. The /etc/passwd file contains information about the users on the system, and each field is separated by a colon (:). Therefore, cut -d : -f 1,4
/etc/passwd will print the first and fourth fields of each line, which are the username and the primary group ID respectively. The other commands are either invalid or do not perform the desired task. The fmt command is used to reformat paragraphs of text, but it does not have a -f option. The split command is used to split a file into smaller files, but it does not have a -c option. The paste command is used to merge lines of files, but it does not have a -f option. References:
* LPIC-1 Exam 101 Objectives, Topic 103: GNU and Unix Commands, 103.3 Perform basic file management
* LPIC-1 Linux Administrator 101-500 Exam FAQ, LPIC-1 Exam 101 Objectives, GNU and Unix Commands (Total Weight: 25)
NEW QUESTION # 138
What output will be displayed when the user fred executes the following command?
echo 'fred $USER'
- A. 'fred $USER'
- B. fred fred
- C. fred $USER
- D. 'fred fred'
- E. fred /home/fred/
Answer: C
Explanation:
Explanation
This output will be displayed when the user fred executes the following command:
echo 'fred $USER'
The echo command is a built-in Linux feature that prints out arguments as the standard output. The syntax of the echo command is:
echo [option] [string]
The option can modify the behavior of the echo command, such as enabling the interpretation of escape characters or omitting the newline after the output. The string is the text that is displayed as the output.
The single quotation marks (' ') are used to enclose the string argument and prevent any expansion or substitution of the characters inside the quotation marks. This means that any variables, commands, or special characters inside the single quotation marks are treated as literal characters, not as expressions.
The $USER variable is a shell variable that holds the username of the current user. However, since it is enclosed in single quotation marks, it is not expanded to its value, but printed as it is.
Therefore, the command echo 'fred $USER' will print the string fred $USER as the output, without any changes. The output will be the same for any user who executes the command, not just fred.
The other outputs are incorrect for the following reasons:
* A, fred fred: This output would be displayed if the $USER variable was expanded to its value, which is fred for the user fred. However, since the $USER variable is enclosed in single quotation marks, it is not expanded, but printed as it is.
* B, fred /home/fred/: This output would be displayed if the $USER variable was expanded to its value, which is fred for the user fred, and then concatenated with the string /home/ to form a path. However, since the $USER variable is enclosed in single quotation marks, it is not expanded, but printed as it is.
Also, there is no concatenation operator in the echo command, so the string /home/ would not be added to the output.
* C, 'fred $USER': This output would be displayed if the single quotation marks were also printed as part of the output. However, the single quotation marks are not part of the string argument, but only used to enclose it and prevent any expansion or substitution. They are not displayed as the output.
* E, 'fred fred': This output would be displayed if the single quotation marks were also printed as part of the output, and the $USER variable was expanded to its value, which is fred for the user fred. However, neither of these conditions are true. The single quotation marks are not part of the string argument, but only used to enclose it and prevent any expansion or substitution. They are not displayed as the output.
The $USER variable is enclosed in single quotation marks, so it is not expanded, but printed as it is.
References:
* How to use Echo Command in Linux (With Examples) - phoenixNAP
* How to Use the Echo Command on Linux - How-To Geek
* echo command in Linux with Examples - GeeksforGeeks
NEW QUESTION # 139
What is the purpose of the xargs command?
- A. It asks a question, graphically, and returns the answer to the shell.
- B. It helps shell scripts take variable argument lists.
- C. It reads standard input (STDIN) and builds up command lines to execute.
- D. It passes arguments to an X server.
- E. It allows users to specify long options for commands that normally only accept short options.
Answer: C
Explanation:
Explanation
The purpose of the xargs command is to read standard input (STDIN) and build up command lines to execute.
The xargs command can be used to pass arguments to another command that does not accept input from a pipe. For example, rm | xargs echo will echo the arguments passed to the rm command. The xargs command can also limit the number of arguments per command line, insert arguments at different positions, and handle special characters in the input. References: LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.3: Perform basic file management, xargs command
NEW QUESTION # 140
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
- A. query
- B. whereis
- C. apropos
- D. which
- E. find
Answer: E
Explanation:
The correct command to search for the executable file foo when it has been placed in a directory not included in $PATH is find. The find command can search for files and directories based on various criteria, such as name, type, size, permissions, ownership, and more. To find the executable file foo, you can use the following command:
find / -type f -executable -name foo
This command will search the entire filesystem (/) for regular files (-type f) that are executable (-executable) and have the name foo (-name foo). The other commands are not suitable for this task. The apropos command searches the manual page names and descriptions for a keyword. The which command shows the full path of a command that is in the $PATH variable. The query command is not a standard Linux command. The whereis command locates the binary, source, and manual page files for a command, but only in the standard Linux directories. References:
* [LPI Linux Essentials - 1.1 The Linux Community and a Career in Open Source]
* [LPI Linux Essentials - 1.2 Finding Your Way on a Linux System]
* [LPI Linux Essentials - 1.3 Basic File Management]
* [LPI Linux Essentials - 1.4 Finding Files]
* [LPI Linux Essentials - 2.1 Using Devices, Linux Filesystems, Filesystem Hierarchy Standard]
* [LPI Linux Essentials - 2.2 Mounting, Unmounting Filesystems]
* [LPI Linux Essentials - 2.3 Disk Partitions]
* How to Use the find Command in Linux - How-To Geek
* Find Command in Linux (Find Files and Directories) | Linuxize
* find command in Linux with examples - GeeksforGeeks
* Use the Unix find command to search for files
NEW QUESTION # 141
Which of the following protocols is designed to access the video card output of a virtual machine?
- A. Xfce
- B. X11
- C. KDE
- D. XDMCP
- E. SPICE
Answer: E
NEW QUESTION # 142
Which of the following commands will change the quota for a specific user?
- A. quota
- B. quota -e
- C. repquota
- D. edquota
Answer: D
Explanation:
The correct command to change the quota for a specific user is edquota. This command allows you to edit the quota limits for a user, a group, or a file set. You can specify the name of the user that you want to edit the quotas for after the command. For example, to change the disk quota for user 'linuxconfig', you can use the following command:
sudo edquota -u linuxconfig
This command will open an editor with the current quota information for the user 'linuxconfig'. You can modify the soft and hard limits for the block and inode usage as per your requirements. You can also use the - p option to copy the quota settings from another user. For example, to copy the quota settings from user
'ramesh' to user 'linuxconfig', you can use the following command:
sudo edquota -p ramesh -u linuxconfig
The other commands are not suitable for changing the quota for a specific user. The repquota command displays a summary of the current quota usage and limits for the users or groups. The quota -e command turns off the disk quota for the current user. The quota command shows the disk quota and usage for the current user or for the users specified on the command line. For more information on how to use disk quota on Linux, you can refer to the following articles:
* How to use disk quota on Linux with examples
* 5 Steps to Setup User and Group Disk Quota on UNIX / Linux
NEW QUESTION # 143
Which permissions and ownership should the file /etc/passwd have?
- A. -rw-------1 11531 Jun 5 22:45 /etc/passwd
- B. -rw-r--r--1 rootroot531 Jun 5 22:45 /etc/passwd
- C. -rw-------1 rootroot531 Jun 5 22:45 /etc/passwd
- D. -rw-r--r--1 11531 Jun 5 22:45 /etc/passwd
Answer: B
Explanation:
The correct permissions and ownership for the file /etc/passwd are:
B). -rw-r-r-- 1 root root 531 Jun 5 22:45 /etc/passwd
The /etc/passwd file is a plain text-based database that contains information for all user accounts on the system. It is owned by root and has 644 permissions. The file can only be modified by root or users with sudo privileges and readable by all system users. The permissions and ownership of the file are important for the security and functionality of the system. The permissions and ownership of the file can be viewed by using the ls -l command. For example:
ls -l /etc/passwd
The output of the command will show the following information:
-rw-r-r-- 1 root root 531 Jun 5 22:45 /etc/passwd
The first column shows the permissions of the file, which are composed of 10 characters. The first character indicates the file type, which is - for regular files. The next nine characters indicate the permissions for the user (owner), the group, and the others, respectively. Each set of three characters indicates the read , write (w), and execute (x) permissions. A dash (-) means no permission. In this case, the permissions are:
* rw- for the user, which means the user can read and write the file, but not execute it.
* r-- for the group, which means the group can only read the file, but not write or execute it.
* r-- for the others, which means the others can only read the file, but not write or execute it.
The second and third columns show the owner and the group of the file, which are both root. The root user is the superuser or the administrator of the system, who has full access and control over the system. The root group is the primary group of the root user, which usually has no other members.
The fourth column shows the size of the file in bytes, which is 531 in this case. The fifth and sixth columns show the date and time of the last modification of the file, which are Jun 5 22:45 in this case. The last column shows the name of the file, which is /etc/passwd in this case.
The other options are not correct because:
* A. -rw------- 1 root root 531 Jun 5 22:45 /etc/passwd: This option has the wrong permissions for the file.
The permissions are 600, which means only the user (root) can read and write the file, and the group and the others have no permissions at all. This would prevent the system users from reading the file, which would cause problems for the login process and other utilities that rely on the file.
* C. -rw-r-r-- 1 1 531 Jun 5 22:45 /etc/passwd: This option has the wrong owner and group for the file.
The owner and group are both 1, which is the numeric ID of the user and group. However, the numeric ID of the root user and group is 0, not 1. The user and group with the numeric ID of 1 are usually bin, which is a system user and group that own some system binaries and directories. The bin user and group should not own the /etc/passwd file, as this would compromise the security and functionality of the system.
* D. -rw------- 1 1 531 Jun 5 22:45 /etc/passwd: This option has both the wrong permissions and the wrong owner and group for the file. The permissions are 600, which means only the user can read and write the file, and the owner and group are both 1, which is the numeric ID of the bin user and group.
This would prevent the system users from reading the file, and give the bin user and group full access to the file, which would cause problems for the security and functionality of the system.
NEW QUESTION # 144
Upon booting one of your Linux boxes, you notice a message scrolling by that does not look right, but it goes so fast, you do not have a chance to read it. What command could you use to view that message after the boot process completes?
Answer:
Explanation:
dmesg
NEW QUESTION # 145
Where can lilo place boot code?
- A. The boot ROM
- B. The boot RAM
- C. The MBR on a hard drive
- D. The /boot partition
Answer: C
NEW QUESTION # 146
From a Bash shell, which of the following commands directly execute the instructions from the file /usr/ local/bin/runme.shwithout starting a subshell? (Choose two.)
- A. /usr/local/bin/runme.sh
- B. run /usr/local/bin/runme.sh
- C. source /usr/local/bin/runme.sh
- D. . /usr/local/bin/runme.sh
- E. /bin/bash /usr/local/bin/runme.sh
Answer: C,D
NEW QUESTION # 147
Which program runs a command in specific intervals and refreshes the display of the program's output?
(Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
watch
Explanation
The program that runs a command in specific intervals and refreshes the display of the program's output is watch. This command is used to run any designated command at regular intervals and displays the output of the command on the terminal window. It is useful when you have to execute a command repeatedly and watch the command output change over time. The syntax of the watch command is:
watch [options] command
The options can modify the behavior of the watch command, such as how to format the output, how to handle signals, or how to enable color. The command is the command that you want to run and monitor. The default interval between each execution of the command is 2 seconds, but you can change it with the -n or --interval option. For more help using the watch command and its options, run man watch or visit this link.
NEW QUESTION # 148
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
Answer:
Explanation:
menu.lst, grub.conf, grub.cfg
NEW QUESTION # 149
When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?
- A. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens itfor reading.
- B. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
- C. The command sed did not match anything in that file therefore the output is empty.
- D. Redirection for shell commands do not work using the > character. It only works using the | character instead.
Answer: A
NEW QUESTION # 150
Which of the following commands will display the last 30 lines of /var/log/bigd.log as well as new content as it is appended to the file by another process?
- A. tac -30/var/log/bigd.log
- B. cat -r -n 30 /var/log/bigd.log
- C. cut -30 -v /var/log/bigd.log
- D. head -30 -e /var/log/bigd.log
- E. tail -f -n 30 /var/log/bigd.log
Answer: E
NEW QUESTION # 151
......
Free 101-500 Exam Dumps to Improve Exam Score: https://realtest.free4torrent.com/101-500-valid-dumps-torrent.html