Which of the following commands will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
A. cut -d: -f1,3 /etc/passwd
B. chop -c 1,3 /etc/passwd
C. tac 1-3 /etc/passwd
D. fmt -u /etc/passwd
Which of the following RPM commands will output the name of the package which installed the file /etc/exports?
A. rpm -F /etc/exports
B. rpm -qf /etc/exports
C. rpm -Kl /etc/exports
D. rpm -qp /etc/exports
E. rpm -qi /etc/exports
Which of the following is the default process priority when a process is started using the nice command?
A. -10
B. 10
C. 20
D. 0
Which of the following commands will create an ext3 filesystem on /dev/hda2?
A. /sbin/mke2fs -d /dev/hda2
B. /sbin/mke2fs -j /dev/hda2
C. /sbin/mke2fs -m 3 /dev/hda2
D. /sbin/mke2fs -c ext3 /dev/hda2
An administrator has created a really long letter and after the administrator is done, notices that the name "Bob" has been used many times. The administrator forgot to capitalize it in many instances. Which of the following commands would replace "bob" with "Bob" in all instances and generate a new letter for printing?
A. sed '/bob/Bob' letter > newletter
B. sed s/bob/Bob/ letter < newletter
C. sed 's/bob/Bob' letter > newletter
D. sed 's/bob/Bob/g' letter > newletter
E. sed 's/bob, Bob/' letter > newletter
In bash, inserting 1>and2 after a command redirects:
A. standard error to standard input.
B. standard input to standard error.
C. standard output to standard error.
D. standard error to standard output.
E. standard output to standard input.
For which of the following can the tee command be used?
A. Print the contents of a file in reverse order.
B. Use the output of one command as arguments to another.
C. Add line numbers to the output of a command.
D. Pipe the output of one command into the input of another.
E. Send a command's output to stdout and a to file at the same time.
Which of the following commands will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?
A. /bin/grep ^# foobar
B. /bin/grep -v ^# foobar
C. /bin/grep #$ foobar
D. /bin/grep -v #$ foobar
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?
A. The source file is hidden.
B. The source file is read-only.
C. The source file is a shell script.
D. The administrator does not own the source file.
E. The source and the target are on different filesystems.
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?
A. nouidchk
B. alluser
C. user
D. auto
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your LX0-101 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.