Linux + Flashcards
(317 cards)
QUESTION NO: 1You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?A. mount /dev/cdrom /mnt/cdromB. mount/dev/cdromC. mount -t cdrom /dev/cdrom /mnt/cdromD. mount /mnt/cdromE. automount /mnt/hdd /mnt/cdrom
D. mount /mnt/cdrom
QUESTION NO: 2With Xorg 7.0& what is the name of the default font server? A. xfservB. xfsC. fonts D. xfstt E. fserv
B. xfs
QUESTION NO: 3 CORRECT TEXTWhich command (without options) would you use to display how much space is available on all mounted partitions?
Answer: /BIN/DF
QUESTION NO: 4 CORRECT TEXTWhat command with all options and/or parameter will send the signal USR1 to any executing process of program apache2?
Answer: KILLALLSUSR1APACHE2
QUESTION NO: 5The command echo $! will produce what output? A. the process id of last background commandB. the exit status of the last commandC. the exit status of the last background commandD. the process id of the current shellE. the name of the command being executed
A. the process id of last background command
QUESTION NO: 6You are using quota on your system. How can you see disk quota details? A. repquotaB. quotA.I C. quotaD. quotacheckE. quotA.List
Answer: A
QUESTION NO: 7What is the difference between thE.remove and thE.purge action with the dpkg command? A. -remove removes the program& -purge also removes the config filesB. -remove only removes theprogram& -purge only removes the config filesC. -remove removes a package& -purge also removes all packages dependent on itD. -remove removes only the package file itself& -purge removes all files related to the package
Answer: A
QUESTION NO: 8 CORRECT TEXTWhat application can be used in place of xhost? Please enter only the name without path.
Answer: XAUTH
QUESTION NO: 9You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?A. foo and bar would both be removed.B. foo would be removed while bar would remain accessible.C. foo would beremoved& bar would still exist but would be unusable. D. Both foo and bar would remain accessible.E. You would be asked whether bar should be removed.
Answer: B
QUESTION NO: 10Which of the following commands will change all CR-LF pairs in an imported text file& userlist.txt& toLinux standard LF characters and store it as newlist.txt?A. tr ‘\r\n’ newlisttxtB. tr -c ‘\n\r’ userlist.txtC. tr -d V newlisttxtD. tr V V userlist.txt newlist.txtE. tr-s /AM’ /AJ’ userlist.txt newlist.txt
Answer: C
QUESTION NO: 11You wish to kill a process with a PID of 123. Select the command which exiting. A. kill-1 123B. kill-9 123C. kill-15 123D. kill-17 123
Answer: C
QUESTION NO: 12Using vi& you want to save changes to the file my file with :w!& but vi complains it cannot write to the file. Therefore& you want to check the write permissions on the file. To do this without leaving vi& you type:A. :!ls-I myfileB. :\ls-l myfileC. esc :Is -I myfileD. :?ls-l myfile
Answer: A
QUESTION NO: 13Which of these commands allows you to use shared libraries that are in /usr/local/lib? A. export LD_PRELOAD=/usr/local/libB. export LD_UBRARY_PATH=/usr/local/libC Idconfig/usr/local/libD.ldd/usr/local/lib
Answer: B
QUESTION NO: 14You are looking for an executable file foo. Select the command that would search for foo within directories set in the shell variable& PATH.A. locate B. which C. findD. queryE. whereis
Answer: B
QUESTION NO: 15What does the Filesystem Hierarchy Standard enable? (Select TWO answers) A. software to predict the location of installed files and directoriesB. software to predict the ownership and access rights to files and directoriesC. users to predict the location of installed files and directoriesD. users to predict how the filesystem should be formatted according to need
Answer: A&C
QUESTION NO: 16 CORRECT TEXTWhich program finds only files that are in your Path?
Answer: /USR/BIN/WHICH
QUESTION NO: 17To allow a regular user account to mount and unmount a filesystem (for instance& a cdrom or floppy)& which option need to be added to the corresponding line in /etc/fstab?A. nouidchkB. alluserC. userD. auto
Answer: C
QUESTION NO: 18Given the following output:prompt> myapp[1]+ Stopped myapp prompt>Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?A. bg myappB. continue myappC. exec myappD. fg myappE. myapp &
Answer: A
QUESTION NO: 19In xorg.conf& which section is concerned with fonts? A. the Fonts sectionB. the Files sectionC. the xfsCodes section D. the Graphics section E. the modeline section
Answer: B
QUESTION NO: 20What command will print a list of usernames (first column) and their corresponding user id (uid& third column) from /etc/passwd?A. cut -d: -f 1&3 /etc/passwdB. chop -c 1&3 /etc/passwdC. tac 1-3/etc/passwdD. fmt -u /etc/passwd
Answer: A
QUESTION NO: 21You have run out of disk space on a partition. Which of the following would be an easy way to move data to a new partition without reconfiguring the path to the data in existing applications?A. Run ext2fs ACL.B. Use a hard link.C. Use a symbolic link.D. Use the loopback device.E. Create a block device offset.
Answer: C
QUESTION NO: 22You ran out of space and added a eighth disk to your SCSI-1 system. When you try to start& the system no longer boots. What is most likely the cause of this problem?A. SCSI-1 supports only 8 devices including the adaptor. B. SCSI-1 supports only 6 disks per adaptor.C. There is a SCSI-ID conflict that causes that problem. D. You forgot to set the SCSI-ID #8 for the new disk.
Answer: A
QUESTION NO: 23Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?A. chmod 557 /bin/fooB. chmod o+rwx.a+rx/bin/fooC. chown 557 /bin/fooD. chmod 755/bin/foo
Answer: D
QUESTION NO: 24You are running Linux 2.0.36 and you need to add a USB mouse to your system. Which of the following statements is true?A. You need to rebuild the kernel. B. You need to upgrade the kernelC. You need to load the USB modules for your existing modular kernel. D. USB support is not available in Linux.
Answer: B