Proper study guides for Leading CompTIA CompTIA Linux+ [Powered by LPI] 1 certified begins with CompTIA LX0-103 preparation products which designed to deliver the Practical LX0-103 questions by making you pass the LX0-103 test at your first time. Try the free LX0-103 demo right now.

Q61. - (Topic 3) 

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.) 

A. source /usr/local/bin/runme.sh 

B. . /usr/local/bin/runme.sh 

C. /bin/bash /usr/local/bin/runme.sh 

D. /usr/local/bin/runme.sh 

E. run /usr/local/bin/runme.sh 

Answer: A,B 


Q62. - (Topic 4) 

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? 

A. mod2fs 

B. fsck 

C. tune2fs 

D. mke2fs 

E. fixe2fs 

Answer:


Q63. - (Topic 4) 

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command? 

A. The command is SetUID and it will be executed with the effective rights of the owner. 

B. The command will be executed with the effective rights of the group instead of the owner. 

C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored. 

D. The command will be executed with the effective rights of the owner and group. 

Answer:


Q64. - (Topic 4) 

After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation? 

A. foo and bar would both be removed. 

B. foo would be removed while bar would remain accessible. 

C. foo would be removed. bar would still exist but would be unusable. 

D. Both foo and bar would remain accessible. 

E. The user is prompted whether bar should be removed, too. 

Answer:


Q65. CORRECT TEXT - (Topic 3) 

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.) 

Answer: mkdir, /usr/bin/mkdir 


Q66. - (Topic 3) 

Which grep command will print only the lines that do not end with a / in the file foo? 

A. grep '/$' foo 

B. grep '/#' foo 

C. grep -v '/$' foo 

D. grep -v '/#' foo 

Answer:


Q67. - (Topic 4) 

Creating a hard link to an ordinary file returns an error. What could be the reason for this? 

A. The source file is hidden. 

B. The source file is read-only. 

C. The source file is a shell script. 

D. The source file is already a hard link. 

E. The source and the target are on different filesystems. 

Answer:


Q68. - (Topic 1) 

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.) 

A. shutdown -R 1 now 

B. shutdown -single now 

C. init 1 

D. telinit 1 

E. runlevel 1 

Answer: C,D 


Q69. - (Topic 4) 

What does the command mount -a do? 

A. It mounts all available filesystems onto the current directory. 

B. It shows all mounted filesystems. 

C. It mounts all user mountable filesystems for the current user. 

D. It mounts all filesystems listed in /etc/fstab which have the option auto set. 

E. It mounts all filesystems listed in /etc/fstab which have the option noauto set. 

Answer:


Q70. - (Topic 3) 

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file? 

A. fmt -f 1,4 /etc/passwd 

B. split -c 1,4 /etc/passwd 

C. cut -d : -f 1,4 /etc/passwd 

D. paste -f 1,4 /etc/passwd 

Answer:

88. - (Topic 3) 

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. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection. 

B. The command sed did not match anything in that file therefore the output is empty. 

C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading. 

D. Redirection for shell commands do not work using the > character. It only works using the | character instead. 

Answer: