CompTIA Linux+ [Powered by LPI] Exam 1 試験
Question No : 1
Which command is used to enable disk quotas on a particular filesystem? (Provide only the command, with no options or parameters)
Question No : 2
The dpkg-____ command will ask configuration questions for a specified package, just as if the package were being installed for the first time.
Question No : 3
For which of the following can the tee command be used?
Question No : 4
Which of the following commands will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?
Question No : 5
An administrator is trying to make a hard link to an ordinary file but ln returns an error.
Which of the following could cause this?
Question No : 6
To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line in /etc/fstab?
Question No : 7
Which of the following chown commands will change the ownership to foo and the group to bar on a file named biglist?
Question No : 8
Which of the following does the Filesystem Hierarchy Standard enable? (Select TWO).
Question No : 9
Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes.
Which of the following commands, entered into a bash initialization file, will have bash recognize vi keystrokes after login?
Question No : 10
An administrator has issued the following command: grub-install --root-directory=/custom-grub /dev/sda
In which directory will the new menu.lst file be found? (Provide the full directory path only without the filename).
Question No : 11
Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such file or directory." .
Which of the following commands will remove the directory?
Question No : 12
Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?
Question No : 13
All of the following commands will execute the bash script /usr/local/bin/runme.sh EXCEPT:
Question No : 14
Which of the following is the output when the below shell script executes? cat <<foobar Hello foobar foobar
Question No : 15
In the command foo < bar | foobar, which of the following statements is correct?