Lpi 101-500 Actual Free Exam Questions & Community Discussion
What is the output of the following command?
echo "Hello World" | tr -d aieou
echo "Hello World" | tr -d aieou
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which permissions and ownership should the file /etc/passwd have?
Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which file from the /proc file system contains a list of all currently mounted devices? (Specify ONLY the command without any path or parameters.)
Correct Answer:
mounts
Explanation:
The file /proc/mounts contains a list of all currently mounted devices in the system. It is a pseudo-file that is dynamically generated by the kernel and reflects the actual state of the mount table. It has a similar format to
/etc/fstab, but shows the actual mount options and file system types used by the kernel. The file /proc/mounts can be read by any user, but only the root user can modify it. The file /proc/mounts is also known as /proc/self
/mounts, which is a symbolic link to the mounts file for the current process. References:
* Understanding the /proc/mounts, /etc/mtab and /proc/partitions files
* How to get the complete and exact list of mounted filesystems in Linux?
* The /proc Filesystem
Explanation:
The file /proc/mounts contains a list of all currently mounted devices in the system. It is a pseudo-file that is dynamically generated by the kernel and reflects the actual state of the mount table. It has a similar format to
/etc/fstab, but shows the actual mount options and file system types used by the kernel. The file /proc/mounts can be read by any user, but only the root user can modify it. The file /proc/mounts is also known as /proc/self
/mounts, which is a symbolic link to the mounts file for the current process. References:
* Understanding the /proc/mounts, /etc/mtab and /proc/partitions files
* How to get the complete and exact list of mounted filesystems in Linux?
* The /proc Filesystem
Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)
Correct Answer: A,D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
What happens after issuing the command vi without any additional parameters?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following commands lists all defined variables and functions within Bash?
Correct Answer: E
Vote an answer
Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following statements is correct regarding the command foo 1> bar?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following apt-get subcommands installs the newest versions of all currently installed packages?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
Correct Answer: C,D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following commands can be used to display the inode number of a given file?
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following apt-get commands will install the newest versions of all currently installed packages?
Correct Answer: E
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10
