|
|
|
|
Linux/Unix - Braindumps
Zurück
zu Braindumps zu Linux/Unix-Prüfung Nr. 117-201
Prüfung: Linux/Unix 117-201 LPI, Level 2, Linux Advanced Administration, Part 1
|
Alles von & über Linux/Unix!
Braindumps-Eintrag:
| Gepostet von: LPIger | | Titel: Hier fast 60 Fragen | | Datum: 26.04.2006 |
| 1. Most distributions provide an X11 runlevel. What happens after switching to this runlevel?
A. X may be started by typing startx.
B. X is launched with users window manager of choice.
C. The X server shuts down and the user given a shell prompt.
D. the display manager prompts the user for a login name and password
E. X is user is prevent from using the virtual consoles.
Answer: D
2. Which file is responsible for keeping track of all UIDs an the s system? (State full path)
A. Click to see answer
Answer: A
/etc/passwd
3. What is the most common type of filesystem found on systems that run only Linux?
A. NFS
B. FAT
C. MINX
D. EXT2FS
E. LINUXFS2
Answer: D.
4. If you use ln to make symbolic link of file1 called file2 then you delete file1, can you access the data contained in file1?
A. No
B. YES
C. It depends on who owns file2
D. It depends on the permissions on file1
E. It depends on the permissions on file2
Answer: A.
5. Using the df command, you find that while you have plenty of free space on your /home file system, you have very few free inodes. What is probably the cause of this?
A. Too many hard links are in use on /home.
B. A user has created many very small files.
C. fsck hasnt been run on /home in a while.
D. Too many symbolic links are in use on /home.
E. The disk needs to be synced before running df.
Answer: B
6. Which command line will mount all available file systems which are listed in /etc/fstab?
A. mount -a
B. mount /mnt/*
C. /etc/fstab
D. mount
E. cat /etc/fstab |mount
Answer: A
7. What command will display some information about the permissions files in the current directory?
A. ls.
B. pdir.
C. ls -l.
D. permdir.
E. chmod -l.
Answer: C.
8. Which command would show the number or used and free inodes on each partition on your system?
A.df -i
B.df -H
C.free -b
D.fsck -i -a
E.du -a -c /
Answer: A
9. Which of the following commands could be used to change the permissions of the /home/html/ directory to 0755 and all files and subdirectories contained therein?
A. chmod 00755 /home/html
B. chmod 0755 /home/html/*
C. chown 0755 /home/html -R
D. chmod 0755 /home/html -R
E. umask 0705 && chmod 0050 /home/html
Answer: D
10. What portion of a ext2fs partition is reserved by default for the root user?
A. none.
B. 2%.
C. 5%.
D. 10%.
E. 50%.
Answer: C
11. Which command will give you the total amount of free kilobytes on all disk partitions?
A. du.
B. df.
C. df -k.
D. du -k.
E. free -a.
Answer: C
12. If you set the umask to 022, by default what permissions will your files have?
A. 0220
B. 0557
C. 0644
D. 0755
Answer: C
13. You are concerned that core files are taking up excessive space on your /home file system. Which command would you use to remove all files named core that are older than a week?
A. cd /home rm -r -mtime +7 core
B. find /home -older +7 -exec rm {core}\
C. find /home -atime +1 -name core -exec rm {}\
D. find /home -mtime +7 -name core -exec rm{}\
E. find /home -mtime +1 -name core -exec rm {}\
Answer: D
14. Which utility would you use to verify the integrity of a file system? (Do not specify path or parameters.)
A. Click to see answer
Answer: A
fsck
15. What type of information is contained in the /etc/fstab file?
A. Information about the currently mounted files
B. Information about disks such as cylinders and heads
C. Information about the various filesystems and mount points
D. Information about filesystem types such as super block offset
E. Information about the consistency of each currently mounted filesystem
Answer: C
16. For most GNU software, the recommended command to read the documentation is ________.
A. cat
B. man
C. help
D. info
E. lynx
Answer: D
17. You need to find all references in your system documentation to the word copy. Which single line will best local accomplish this task?
A. man copy
B. which copy
C. locate copy
D. apropos copy
E. grep "copy" /usr/man/*
Answer: D
18. Which entity is primarily responsible for distributing the various Linux HOWTOs? (Use three Words)
A. Click to see answer
Answer: A
free software foundation
19. The main collection of Linux usenet newsgroups are found in which usenet hierarchy?
A. sys.linux
B. comp.linux
C. comp.os.linux
D. comp.sys.linux
E. comp.opsys.linux
Answer: C
20. Assume that on your system, there are man pages for both the command crontab and the configuration file for corntab. What command would you use to access man page for the crontab configuration file?
A. Click to see answer
Answer: A
man crontab
21. What command run from the shell converts tabs to spaces?
A. Click to see answer
Answer: A
expand
22. What command could be used to get hierarchical view of processes running on the system without requiring you to provide any switches or options?
A. Click to see answer
Answer: A
top
23. Which of these commands would report how many total accounts (including special system accounts) there are?
A. count /etc/passwd
B. nl /etc/passwd | head
C. wc --users /etc/passwd
D. wc --lines /etc/passwd
E. expand --lines /etc/passwd
Answer: D
24. What symbol can be placed at the end of a line to indicate that the command on the next line?
A. /
B. \
C. ;
D. |
E. :
Answer: B
25. Which command removes all subdirectories in the in /tmp, regardless of whether they are non-existent or in use?
A. del /tmp/*
B. rm -rf /tmp
C. rm -Ra /tmo/*
D. rm -rf /tmp/*
E. delete /tmp/*.*
Answer: D
26. What command would be used to view the contents of a binary file?
A. od
B. vil
C. view
D. expand
E. binview
Answer: A
27. A particular directory ontains some files with name starting with the letter a and ending with the letter v. Assuming this is the working directory, what command would move all of these files, and only these files, to the /tmp directory?
A. cp a?v /tmp/
B. mv a-v /tmp/
C. mv a*v /tmp/
D. mv a?v /tmp/
E. mv a..v /tmp/
Answer: C
28. What would you use an alias for?
A. To provide faster lookups for commands
B. To avoid having to type long command lines
C. So others cannot tell what command you are running
D. To make a local copy of a file in a directory other than the one it exists in.
Answer: B
29. Which of the following statements are true? (Select all that apply)
A. The default "nice" priority value is 0
B. "Nice" priority values range from 0 to 20.
C. Lower "nice""priority values signify greater priority
D. Only the superuser may assign a process maximum priority
E. Setting a processs "nice" value to the lowest priority is the same as stopping the process.
Answer: A,C,D
30. Which line below count the total number of lines the word "reject" in /var/log/maillog?
A. wc -l reject /var/log/maillog
B. for "reject" in [maillog (count) +1]
C. wc -l /var/log/maillog l grep reject
D. cat /var/log/maillog | grep reject | wc -l
E. cat /var/log/maillog | grep reject | wc -r
Answer: D
31. User Sally has lost. a file She raved it a week ago and now Coal remember where it is She know contains the word "turkey" but thats all she can remember. Which command string would help Sally complete none other missing file?
A. ls turkey
B. find turkey
C. grep turkey
D. which turkey
E. ls l grep turkey
Answer: C
32. The command kill 9
A. kills the process whose PID is 9
B. kills all processes belonging to UID 9
C. sends SIGKILL to all running processes
D. sends SIGKILL to the process whose PID is 9
E. sends SIGTERM to the process whose PID is 9
Answer: E
33. Which of the following commands could be used to see which processes are currently run (chose all that apply)
A. w
B. ps
C. top
D. proc
E. lsproc
Answer: B,C
34. What utility would you use to remove/display columns from each line of a file?
A. pwd
B. col
C. cut
D. tail
E. extract
Answer: C
35. In the command foo < bar | foobar
A. the stdout from the command foobar is saved to the file foo
B. the stdout from the command foo is saved to the foobar
C. the command foobar receives its stdin from the stderr of foo
D. the command foobar receives its stdin form the stdout of foo
E. the command bar receives its stdin form the contents of the file foobar
Answer: D
36. Assume that the file foobar contains 30 lines. Which command line would you use to display the middle 10 lines of the file?
A. tail -n 10 -h 10
B. head -n 10 -s 10
C. head m 10 foobar | tail -n 10 n lo
D. head -n 20 foobar | tail -n 10
E. tail -n 20
Answer: D
37. Which programs will allow you to change me priority or a program already running? (Select all that apply)
A. top
B. nice
C. niceit
D. renice
E. chnice
Answer: A,B
38. What will "cd ~foo" do?
A. It will take you to the ~foo directory
B. It will create the foo directory and change to it
C. It will take you to the home directory of user foo
D. It will change the directory to the system foo directory
E. it will change to the foo directory off of your home directory
Answer: C
39. Sally has created a tea file for data which uses an asterisk to highlight items of significance would list the line she marked as significant in her file?
A. find \* sallysfile
B. wc -l *
C. grep -n * sallysfile
D. search *
E. grep \* sallysfile
Answer: C
40. Which ps parameter would part use to display the processes of all other users?
A. a
B. b
C. u
D. x
Answer: A
41. Which of the following directories would you probably not want to include in your backup (Select all that apply)
A. /var
B. /etc
C. /dev
D. /tmp
E. /proc
Answer: D,E
42. Assume you have a script /etc/httpdown that shuts down your web server. For some reason, you want to run this it midnight tonight What command will do that?
A. crontab -e
B. at midnight /etc/httpdown
C. cron -at "00:00" /etc/httpdown
D. batch -t "00:00"
E. echo "/etc/httpdown" | at midnight
Answer: B
43. Which command will tell you which groups you belong to?
A. Click to see answer
Answer: A
groups
44. Use, Bob Wilson (bobw) has just retired. You have instructed to remove his account and all files under his home directory. What command would execute this task with one command? (include necessary switches and/or parameters.)
A. kill -9 bobw
B. userdel -r bobw
C. rm -Rf /home/bobw
D. delete bobw -d/home/bobw
E. rm user &&rmdir $bobw $/home/bobw
Answer: B
45. In what file do you change default variables for all users?
A. /etc/bashrc
B. /etc/profile
C. ~/.bash_profile
D. /etc/skel/.bashrc
E. /etc/skel/.bash_profile
Answer: B
46. What environment variable has your termcap name?
A. Click to see answer
Answer: A
$TERM
47. How many cron fields are there for specifying the time to execute a cron job?
A. 1
B. 3
C. 4
D. 5
E. 6
Answer: D
48. What does the following line from /etc/syslog.conf a mean?
kern warm.mail.err /dev/tty10
A. The kern, warn, mail and err messages are logged to the /dev/tty10
B. All messages to /dev/tty10 get logged to the files kern.warn and mail.err
C. The kernel messages with priority warn and the messages from the mailer system with a priority of err get logged to the console 10
D. Kernel messages with priority warn and above the messages form the mailer system with a priority of err and higher are logged to console 10.
Answer: D
49. You administer a system on which incremental backups are made between complete backups. Restore the system from the backups, in what order should you load the backups?
A. The order does not matter as long as all of the backups are loaded
B. Last complete backup, then each incremental backup from newest to oldest
C. Each incremental backup from oldest to newest, then last complete backup
D. Each incremental backup from newest to oldest then last complete backup
E. Last complete backup, then each incremental backup from oldest to newest
Answer: E
50. On a system using shadowed passwords, the correct permissions for /etc/passwd are _______ and the correct permissions for /etc/shadow are ______.
A. -rw-r-----, -r--------
B. -rw-r--r--, -r--r--r--
C. -rw-r--r--, -r--------
D. -rw-r--rw-, -r-----r--
E. -rw-------, -r--------
Answer: C
51. Which corntab entry could be used to set the system time at regular intervals?
A. 1 0*** date $d $t $24
B. 1 0*** settime $d $t $24
C. 1 0*** date
D. 1 0*** /usr/sbin/runcron date
E. 1 0*** /usr/sbin/ntpdate ntp1.digex.net > /dev/null 2>&1
Answer: E
52. Of the ways listed, which is the best way to temporarily suspend a users ability to interactively login?
A.Changing the users UID
B.Changing the users password
C.Changing the users that to /bin/false
D.Removing the users entry in /etc/passwd
E.Placing the command logout in the users profile
Answer: E
53. The command cat > foo.bar redirects
A. cat to foo.bar
B. foo.bar to cat
C. stout to cat
D. stdin to foo.bar
E. foo.bar stdout
Answer: D
54. You have a HD /dev/hdb, has more than 1024 cylinder. What command line argument can be passed to allow the system to recognize the drive geometry correctly?
A. /dev/hdb=+1024
B. boot large drive
C. hdb=H,S,C
D. hdb=C,H,S
E. /dev/hdb=C,H,S
Answer: E
55. Einige Benutzer sind über ein Netzwerk eingeloggt. Mit welchem Befehl kann man die Benutzer disconnecten?
A. telinit 1
B. shutdown –r now
C. killall –9 inetd
D. /bin/netstop –maint
E. /etc/rc.d/network stop
Answer: E
|
|
|
|
|
|