1. Where can you find the detail specifications of FHS?
At www.pathname.com/fhs
2. How long can the total path name to a particular file be in linux (from the root directory)?
d. 4096
3. What directories must reside on the same file system partition as the root directory?
/bin/,/dev/,/etc/, /lib/, and /sbin
4. Which of the following are absolute pathnames?
b. /home/bin
c. /
5. Which of the following devices can be referenced using device files?
a. printers
b. mice
d. hard disk partitions
6. When you do a long listing of the file /dev/fd0 , you notice the following output: brw-rw---- 1 root disk 2, 0 Jun 30 2007 /dev/fd0
Which of the following statements are true regarding this file?
b. The file is a block-oriented device file that has a major number of 2 and a minor number of 0.
7. What device file is used refer to the first partition of your first IDE hard disk?
/dev/hd1
8. What three hidden files exist in user home directories?
.profile, .bashrc, .bash_history.
9. Which directory stores administrative programs?
b. /sbin
10. you are trouble shooting a system problem and believe the there is a duplicate interrupt being used on the system. What file can you view to verify this?
/proc/interupts
11. What command could you type at a command prompt to mount a CD-ROM file-system to the /mnt/cdrom directory?
mount /media/cdrom /mnt/cdrom
12. Which option to the ls command can you use to view a long listing of files in your current directory, including hidden files?
a. -al
13. Which of the following commands can be used to change your present working directory (/etc/sysconfig) to /home/geeko , using a relative path?
b. cd ../../home/geeko
14. What command could you type at a command prompt to view the first 25 lines of the file /etc/hosts?
head -25 /etc/hosts
15. Which option to the tail command is useful when viewing logfiles and why?
-f because it shows a continuously updating list which can be useful if a file is changing.
16. Which key combination can you use to cancel your current command?
c. Ctrl + c
17. Which command could you use to copy the directory /data/secret to the /var directory?
cp /data/secret /var
18. Which command can be used to remove a directory and all of the files within?
c. rm
19. Which of the following commands would you use to undelete a file that was accidentally deleted using the rm command?
There is no way to undelete a file removed with the rm command.
20. What command could you type in a command prompt window to create a new symbolic link called shortcut in your current directory that points to the /etc/inittab file?
ln -s shortcut /etc/innitab
21. Which of the following statements regarding file linking are true?
b. to determine whether a file is hard linked, you can view the link counter in a long file listing.
d. Hard links share the same inode
22. Which command can be used to search the PATH variable for executable programs?
which find exec
23. What command may be used to search the /etc directory for files that are owned by the user geeko?
find /etc -user geeko
24. You are attempting to locate a new file on the file system using the locate command, however no results are displayed. What command could you run to remedy the problem?
updatedb
25. Which command may be used to search the /etc/hosts file for lines that start with 127.0.0.1?
grep -n ^127.0.0.1
26. Which of the following archive utilities must be run in a GUI environment?
b. ark
27. What tar command would you use to create a gzip-compressed archive file called /root/myfile.tar.gz that contains the entire contents of the /opt directory?
tar -cf /root/myfile.tar.gz /opt
28. You have created a script the contains cpio commands used to create a daily backup of your system. What directory could you place this script in to allow the cron daemon to execute it each day?
/etc/cron.daily/
29. After downloading a file, you not that is has a .bz2 extension. Which command could you use to extract the contents of this file?
bunzip2
30. Many file management commands support the -R (Recursive) option. how does this option change the operation of the command?
Recursive will usually include all files within a directory.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment