|
Related Questions |
View Answer |
 |
After copying a file to a floppy disk, what should you do before removing the disk? |
View Answer |
 |
What is contained in the directory /proc? Choose one:
a. System information b. Administrative procedures c. Boot procedures d. Documentation on your system |
View Answer |
 |
You use the mount -a command to mount all your filesystems, however, you cannot access your CD-ROM. What could be the problem? Choose one:
a. The CD-ROM is not defined in the fstab file. b. The CD-ROM cannot be mounted using the mount -a command. c. The command mount -a is not a valid command. d. The correct syntax to mount all filesystems is mount fstab. |
View Answer |
 |
You want to make it possible for your users to mount floppy disks. What do you need to do? Choose one:
a. Tell your users the password for root as floppies can only be mounted by root. b. Edit the mtab file and add the user option on the floppy entry. c. Edit the fstab file and add the ro option on the floppy entry. d. Edit the fstab file and add the user option on the floppy entry. |
View Answer |
 |
You have a new application on a CD-ROM that you wish to install. What should your first step be? Choose one:
a. Read the installation instructions on the CD-ROM. b. Use the mount command to mount your CD-ROM as read-write. c. Use the umount command to access your CD-ROM. d. Use the mount command to mount your CD-ROM as read-only. |
View Answer |
 |
You issue the command mount without any options and the following output is displayed /dev/hda1 on / type ext2 (rw) none on /proc type proc (rw) /dev/hda9 on /home type ext2 (rw) /dev/hda7 on /tmp type ext2 (rw) /dev/hda5 on /usr type ext2 (rw) /dev/hda6 on /var type ext2 (rw) What does this output mean?
Choose one: a. This is a listing of all the available filesystems that may be mounted on your system and is taken from the /etc/fstab file. b. This is a listing of all the mounted filesystems on your system and is taken from the /etc/mtab file. c. This is a listing of all the available filesystems that may be mounted on your system and is taken from the /etc/mtab file. d. This is a listing of all the mounted filesystems on your system and is taken from the /etc/fstab file. |
View Answer |
 |
You have a file called docs.Z but do not know what it is. What is the easiest way to look at the contents of the file? Choose one:
a. Use zcat to display its contents. b. Use uncompress to expand the file and then use emacs to display the files contents. c. Copy the file to a floppy disk and uncompress it under Windows. d. Use tar -xt to display the file's contents. |
View Answer |
 |
You created a tarfile called myfiles.tar containing copies of all the files in your home directory. In order to save space you compress this file using gzip. After completing the operation, you do a listing of the contents of the directory to see how much smaller the compressed file is. How can you use the information from the listing to determine the percentage of compression? Choose one:
a. Only the compressed file will be listed and not the tarfile. b. Divide the reported size of the tarfile by the reported size of the compressed file. c. Neither the tarfile nor the compressed file are listed as they are both moved to another directory by default. d. Divide the reported size of the compressed file by the reported size of the tarfile. |
View Answer |
 |
You are using tar to create a tarfile of the files contained in the /home/bob/memos directory. After making the /home/bob/memos directory your working directory, which of the following commands will create the file? Choose one:
a. tar cf memos.tar . b. tar xf memos.tar . c. tar cf memos.tar /home/bob/memos d. tar xf memos.tar /home/bob/memos |
View Answer |
 |
You want to verify which lines in the file kickoff contain 'Bob'. Which of the following commands will accomplish this? Choose one:
a. sed -n /Bob/p kickoff b. sed /Bob/p kickoff c. sed -n 'Bob p' kickoff d. sed /Bob/ kickoff |
View Answer |
 |
You search for the word prize in the file kickoff by typing grep prize kickoff. However you also find lines containing prize as part of a word such as prizes but do not find Prize. How should you change the command to find all occurrences of prize as a word and not part of a word? Choose one:
a. grep -lc prize kickoff b. grep -cw prize kickoff c. grep -vi prize kickoff d. grep -iw prize kickoff |
View Answer |
 |
You want to know how many lines in the kickoff file contains 'prize'. Which of the following commands will produce the desired results? Choose one:
a. grep -n prize kickoff b. grep -c prize kickoff c. grep -v prize kickoff d. grep prize kickoff |
View Answer |
 |
You have a file named 'kickoff' and would like to find every line beginning with a number. Which of the following commands will accomplish this? Choose one:
a. grep [0-9] kickoff b. grep ^[0-9] kickoff c. grep [0-9]$ kickoff d. grep $[0-9] kickoff |
View Answer |
 |
You want to search for sale and sales. What regular expression should you use? Choose one:
a. sale* b. sale? c. ^sale d. sale$ |
View Answer |
 |
You want to construct a regular expression that will match all lines that end with 'stuff'. Which of the following expressions will do this? Choose one:
a. ^stuff b. stuff$ c. $stuff d. stuff^ |
View Answer |
 |
You want to delete the following directories and their files /home/bob/letters /home/bob/sales so you issue the command rmdir /home/bob/letters but the command fails. What went wrong? Choose one:
a. You need to first delete the sales subdirectory and its files before deleting its parent directory, letters, and its files. b. There is no such command as rmdir. c. The rmdir command cannot remove directories that are not empty. d. The rmdir command will not remove directory heirarchies. |
View Answer |
 |
You need to create two new directories in your home directory. The first one is called /home/bob/letters and the second one is /home/bob/letters/sales. Which of the following command lines should you use? Choose one:
a. mkdir /home/bob/letters/sales b. mkdir letters; mkdir sales c. mkdir letters/sales d. mkdir home/bob/letters/sales |
View Answer |
 |
You attempt to delete a file called sales.mem using the rm command but the command fails. What could be the problem? Choose one:
a. You do not have delete rights to the file called sales.mem. b. You need to use the -i option with rm to delete a file. c. You do not have write rights to the directory containing the sales.mem file. d. You are not the owner of the file sales.mem. |
View Answer |
 |
You have a directory called /home/ben/memos and want to move it to /home/bob/memos so you issue the command mv /home/ben/memos /home/bob. What is the results of this action? Choose one:
a. The files contained in /home/ben/memos are moved to the directory /home/bob/memos/memos. b. The files contained in /home/ben/memos are moved to the directory /home/bob/memos. c. The files contained in /home/ben/memos are moved to the directory /home/bob/. d. The command fails since a directory called memos already exists in the target directory. |
View Answer |
 |
You read an article that lists the following command: dd if=/dev/fd0 bs=512 of=/new What does this accomplish? Choose one:
a. It copies the contents of a floppy disk to a file called new. b. It copies the file new to a floppy disk. c. It formats a floppy d. It erases a floppy |
View Answer |