共二十道选择题。
1.Which is not true about software distributed under GPL?
A. anyone may view the source code
B. anyone may modify it
C. anyone may redistribute the software under other license
D. anyone may copy it
2.Which is not true about POSIX?
A. It’s a standard that Microsoft Windows follows
B. It’s a standard that Unix follows
C. It’s a standard that Linux follows
D. It’s a standard about the interface
3.Which file is the user’s password stored in?
A. /etc/password
B. /etc/shadow
C. /etc/users
D. /etc/profile
4.Filesystems listed in the _____ configuration file will be automatically mounted when the system is brought up into multi-user mode.
A. /etc/nfs
B. /dev
C. /mnt/dev
D. /etc/fstab
5.To remove a directory named data and all of its files, including sub-directories, in that directory, use:
A. rmdir data
B. rm -f data
C. rm -rf data
D. remove data
input your answer©:
6.The_________environment variable lists the directories in which the shell looks for executable programs and scripts.
A. PATH
B. HOME
C. PS1
D. SHELL
7.Which command is used to set the Linux file permissions to make the file named data, readable and writable by the owner and group owner of the file, but not accessible by any others?
A. chmod 660 data
B. chmod 670 data
C. chmod 550 data
D. chmod 777 data
8. which command will not delete the file 2.tmp
A. rm [13].tmp
B. rm [123].tmp
C. rm [0-9].tmp
D. rm -f 2.tmp
9. The version of the Linux system on this machine is ()
A. 14.2
B. 8.6
C. 3.6
D. 2.6
10. If the default text file permission is readable and writable by the owner, readable by the group and not accessible by any others, the umask is set as ()
A. 640
B. 024
C. 027
D. 750
11. what is the device name of the first logic partition in the extended partition of the second SATA harddisk?
A. /dev/sda1
B. /dev/sdb1
C. /dev/sdb2
D. /dev/sdb5
12. the first 10 characters of the result of the command “ls -l /tmp/abc” is as follows:
drwx-------
what type is the file abc?
A. directory
B. character device
C. block device
D. ordinary file
13. Which command may show the usage of the file system that directory /var is on?
A. df /
B. du /
C. df /var
D. du /var
14. The command that adds the write permision of file data to the group user is
A. chmod 630 data
B. chmod u+w data
C. chmod g+w data
D. chmod o+w data
15. Which is not true about the directory with sticky bit set?
A. anyone can create file in the directory
B. anyone can delete his own file
C. anyone can delete other’s file
D. anyone can create sub-directory in the directory
16. What is the disk usage of the current linux system?
A. 40%
B. 59%
C. 65%
D. 87%
17. What is the size of the file /etc/passwd?
A. 35 byte
B. 52 byte
C. 60 K
D. 105 K
18. A SATA disk is already mounted on the system. The correct command to mount a usb disk is
A. mount /dev/sda /media
B. mount /dev/sda1 /media
C. mount /dev/sdb /media
D. mount /dev/sdb1 /media
19. The command to copy directory /tmp/dir1 to your current directory is
A. cp /tmp/dir1 .
B. cp . /tmp/dir1
C. cp -r /tmp/dir1 .
D. cp -r . /tmp/dir1
20. Which file is used to set your own envirement variable?
A. /etc/profile
B. /etc/passwd
C. ~/.bash_profile
D. ~/.env