Linux操作系统实践期中考总结(选择题)

共二十道选择题。

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

  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值