ÔN TẬP LINUX
Kendy_kieu
(u tầm)
1.What is the most popular file system choice?
A. ext2
B. bsdf
C. jfs
D. ext3
Answer: A
2.What steps need to be performed, to make a new disk accessible to users?
Select three.
A. fdisk
B. mkfs
C. mount
D. stat
E. quotaon
Answer: A, B, C
3.Which THREE of the following commands are used when setting up and
accessing a new filesystem on the hard drive?
A. fsck
B. mkfs
C. mount
D. fdisk
E. format
Answer: B, C D
4.The command mkfs -t ext3 /dev/hdb1 - T largefile creates what size of inode?
A. 4 kilobyte
B. 1 megabyte
C. 2 megabyte
D. 4 megabyte
Answer: B
5.Which command will show the number of free and used inodes for your system's
mounted file systems?
A. du -i
B. df -i
C. ls -iR /
D. freeinodes
Answer: B
6.How many inodes are assigned to a file when it is created?
A. 1
B. 2
C. 4
D. 8
Answer: A
7.What command with switches will display the disk utilization for all mounted file
systems?
A. df
B. vmstat
C. du
D. top
E. free
Answer: A
8.What command with options will show the currently mounted filesystems usage
in kilobytes?
A. df - k
B. df -h
C. du - k
D. du -h
E. du -s
Answer: A
9.Which of the following commands will print the inode usage on each
mounted filesystem?
A. du -i
B. df -i
C. lsfs -i
D. printfs -i
Answer: B
10.You need to create a symbolic link in the current user's home directory named
Certkiller to the file /data/foobar. Choose the command that will accomplish this.
A. link . Certkille r /data/foobar
B. ln /data/foobar $HOME/ Certkiller
C. ln -s /data/foobar ~/ Certkiller
D. file --link ./ Certkiller /data/foobar
E. None of the above
Answer: C
11.Which chown command will change the ownership to foo a nd the
group to bar on a file named biglist?
A. chown foo/bar biglist
B. chown -u foo -g bar biglist
C. chown foo:bar biglist
D. c hown --user foo --group bar biglist
Answer: C
12.You have the following file: -rwxrwxr-x 1 foo root 0 Feb 23 07:48 /bin/foo
Which of the following commands will change the owner of the file /bin/foofrom
the
foo userto the bar user without affecting group ownership?
A. chown /bin/foo bar
B. chown bar /bin/foo
C. chown bar.foo /bin/foo
D. c hown.foo.bar /bin/foo
Answer: B
13.Which of the following commands makes /bin/foo executable by everyone but
only
writable by its owner?
A. chmod 557 /bin/foo
B. chmod o +rwx, a+rx /bin/foo
C. chown 557 /bin/foo
D. c hmod 755 /bin/foo
Answer: D
14.You need to alter the permissions on the directory /home/mrbill and all it's
contents to match the following permissions.
drwxr--r-- Which of these commands with options and arguments will accomplish
this? Choose two.
A. chmod 0744 /home/mrbill - R
B. chmod 744 /home/mrbill/*
C. chmod -R u=rwx,g=r,o=r /home/mrbill
D. c hmod u+rwx,g+r,o+r /home/mrbill
Answer: A, C
15.What umask will set the file permissions on a newly created file to -rw-r--r--
(644)?
A. 0002
B. 0022
C. 0224
D. 0246
Answer: B
16.You want the default permissions for your files to be -rw-r----- .
HOW must you set umask?
A. 037
B. 640
C. 038
D. 027
Answer: A
17.After creating a new file, you notice that the permissions of the new
file are -rw-rw-rw-. From this, you know that the value of the umask is
what?
A. 023
B. 000
C. 112
D. d111
E. 223
Answer: B
18.What are the default permissions for the Red Hat /etc/passwd file?
A. 644
B. 640
C. 400
D. 641
E. 440
Answer: A
19.Which of the following are required in the /etc/passwd file when creating a
user account? (C hoose all that apply)
A. login name
B. userid
C. default group
D. password age
E. minimum password length
Answer: A, B, C
20.Which file contains information about filesystems and their respective mount
points?
A. /etc/mount
B. /etc/fs_mount
C. /etc/fstab
D. /proc/fsta b
Answer: C
21.Which of the following programs can be used to the find the foo program in
the.PATH and associated man pages, but not list every file containing foo on the
system?
A. which
B. search
C. slocate
D. where
E. whereis
Answer: E
22.What command can be used to cause changes to the inittab file to take effect
without a system reboot?
A. init q
B. init r
C. inittab r
D. inittab q
Answer: A
23. Which of the following is a journaling filesystem? A. ext2 B. vfat C. minix D.
ext3
Answer: D
24. The first ethernet card on a system is: A. eth0 B. etho0 C. eth1 D. hme0
Answer: A
25. You ca n find all of the services managed by xinetd by looking at which of the
following file or directory?
A. /etc/xinetd.d B. /etc/inetd.conf C. /etc/rc.d/init.d D. /etc/xinetd.conf
Answer: A
26.What partition number always refers to the first logical partition?
A. 0 B. 4 C. 1 D. 5
Answer: D
27.Which of the following files specifies information on what is NF S shared on
your system?
A. /etc/exports B. /etc/dfs/dfstab C. /etc/fstab D. /etc/sharetab
Answer: A
28. What command could be used to find out which package owns the f ile
/etc/aliases?
A. rpm -qf /etc/aliases B. rpm -qp /etc/aliases C. rpm -e /etc/aliases D. rpm -qil
/etc/aliases
Answer: A
29. Which of these commands will list PC I devices?
A. lsdevices B. lspci C. lsdev D. pcidev
Answer: B
30. What command could be used to find all packages with the string 'mail' within
the pac kage name?
A. find / -name '*mail*' B. rpm -qf /usr/bin/mail C. rpm -qa | grep mail D. locate
mail
Answer: C
31. On a system with 16MB RAM, the minimum size of your swap partition should
be equal to how many MBs?
A. 16 B. 32 C. 64 D. 100
Answer: B
32. On a new Linux installation, the partition mounted on where contains the
operating system kernel? A. /boot B. /dev C. /kernel D. /bin
Answer: A
33. A Linux server installation requires how many GB of free space for a minimal
installation where no graphical display is ever needed? A. 0.8 B. 0.5 C. 1.1 D. 1.5
Answer: D
34. When init starts, it first runs which of the following scripts?
A. /etc/rc.d/rc.sysinit B. /etc/rc.d/rc.sysinit0 C. /etc/rc.d/rc.sysinit1 D.
/etc/rc.d/sysinit0
Answer: A
35. What file contains the defa ult environment variables when using the bash
shell?
A. ~/.profile B. /bash C. /etc/profile D. ~/bash
Answer: C
36. What is the usual mode for the /tmp directory? A. 0777 B. 0755 C. 7777 D.
1777
Answer: D
37. The netstat r command produces the following output:
192.168.10.0 * 255.255.255.0 U 40 0 0 eth1
Which of the following best describes this line?
A. 192.168.10.0 IS A Gateway (G) to all externa l networks.
B. the host, 192.168. 10.0, is currently up (U).
C. There are currently 40 packets waiting for transmission over this route.