Which of the following sed commands will replace all instances of the string foo with the string foobar changing the file file1.txt in place?
A. sed 's/foo/foobar/g' file1.txt
B. sed 's/foo/foobar/g' file1.txt > file1.txt
C. sed 's/foo/foobar/g' file1.txt | file1.txt
D. sed -i 's/foo/foobar/g' file1.txt
E. sed -i 's/foo/foobar/g' file1.txt > file1.txt
After modifying LILO's configuration file, which of the following commands should be run for the changes to take effect?
A. kill -HUP `pid of lilo`
B. lilo-install
C. lilo
D. reboot
In order to append the output of ls to a file called bazz, which of the following command lines would an administrator use?
A. ls > bazz
B. ls >and bazz
C. ls and> bazz
D. ls >> bazz
An administrator wants to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. Which of the following commands should the administrator issue?
A. rpm -qp apache-xml.i386.rpm
B. rpm -qv apache-xml.i386.rpm
C. rpm -ql apache-xml.i386.rpm
D. rpm -qpl apache-xml.i386.rpm
In GRUB's configuration file an administrator finds the following line: root (hd1,4) Which of the following is the corresponding device name on a Linux system?
A. /dev/hda4
B. /dev/hda5
C. /dev/hdb4
D. /dev/hdb5
Which of the following would be accomplished if the below line is run as root? chown -R bert /home/bert/*
A. Nothing, this command is invalid.
B. It would revoke bert's ownership from the home directory to root.
C. It would change user ownership of all files in /home/bert to bert.
D. It would set the group ownership of the directory /home/bert to bert.
E. It would set ownership of all files and subdirectories in /home/bert to bert.
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
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
While editing a file in vi, an administrator realizes that the wrong file is being changed. Which of the following vi command sequences will allow the administrator to quit without saving any changes?
A. :Q!
B. :q!
C. :w!
D. :wq!
All of the following commands will update the Modify timestamp on the file /tmp/myfile.txt EXCEPT:
A. file /tmp/myfile.txt
B. echo "Hello" >/tmp/myfile.txt
C. sed -ie "s/1/2/" /tmp/myfile.txt
D. echo -n "Hello" >/tmp/myfile.txt
E. touch /tmp/myfile.txt
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.