Linux certification questions reprinted Baidu Library

Source: Internet
Author: User
Tags inode usage
Basic questions about the Linux certification test (see the final answer)

(The following are single-choice questions)

1. cron daemon is used:
A. shares files in the network.
B. Manage the Printing Subsystem
C. Tracking Management System Information and errors
D. Manage the scheduling of daily tasks in the system

2. In most Linux releases, which of the following is a block device )?

A. Serial Port
B. Hard Disk
C. Virtual Terminal
D. Printer
 

3. Which of the following Linux commands can display one page at a time?
A. Pause
B. Cat
C. More
D. grep
 

4. How do you know how much space you have in the current directory?
A. use DF
B. Use du/
C. Use du.
D. use DF.
 

5. How to change the permission settings of a file?
A. attrib
B. chmod
C. Change
D. File
 

6. If you need to find out which package the/etc/My. conf file belongs to, you can execute:
A. rpm-Q/etc/My. conf
B. rpm-requires/etc/My. conf
C. rpm-qf/etc/My. conf
D. rpm-q | grep/etc/My. conf
 

7. If the current system runs in level 3, how can it be converted to level 5 without restarting the system?
A. Set level = 5
B. telinit 5
C. Run 5
D. ALT-F7-5
 

8. Which command is used to change the IDE Hard Disk settings?
A. hdparam
B. ideconfig
C. hdparm
D. hddparm
 

9. Which of the following commands can list all tasks that are defined to run at a specific time in the future?
A. ATQ
B. cron
C. Batch
D.
 

10. The following command is used: Set PS1 = "[\ U \ W \ t] \ $"; export PS1
A. Prompt for changing the error message
B. Change the command prompt
C. Change some terminal parameters
D. Change the auxiliary command prompt.
 

11. as an administrator, you want to place a file in the directory of each new user. bashrc, in which directory should you place the file so that new users can automatically copy the file to their own directory when creating the main directory.
A./etc/skel/
B./etc/default/
C./etc/defaults/
D./etc/profile. d/
 

12. In bash, the function of the Export command is:
A. Run the command in the sub-shell
B. Enable the sub-shell to use command history
C. Set environment variables for other applications
D. Provide NFS partitions for other systems in the network.
 

13. In the system using the shadow password, which of the following are the correct permissions for the/etc/passwd and/etc/shadow files:
A.-RW-r -----,-r --------
B.-RW-r --,-r --
C.-RW-r --,-r --------
D.-RW-r -- RW-,-r ----- r --
 

14. Which of the following parameters can delete a user and delete the user's home directory at the same time?
A. rmuser-R
B. deluser-R
C. userdel-R
D. usermgr-R
 

15. There is a backup program mybackup which needs to be run at one o'clock P.M. from Monday to Friday and at AM. Which of the following crontab items can be used to complete this task?
A. 0 ** mybackup
B. 0 **, 5 mybackup
C. * 13, 20 ** 1, 2, 3, 4, 5 mybackup
D. 0 ** mybackup
 

16. How to detach a mounted file system from the current system
A. umount
B. Dismount
C. Mount-u
D. delete the file system entry from/etc/fstab.
 

17. If your umask is set to 022, the default file creation permission is:
A. ---- w -- w-
B.-W -- w ----
C. R-XR-x ---
D. RW-r --
 

18. How can I find the path of a binary command xconfigurator in a command?
A. apropos xconfigurator
B. Find xconfigurator
C. Where xconfigurator
D. Which xconfigurator
 

19. Which command is used to load all file systems defined in/etc/fstab?
A. Amount
B. Mount-
C. fmount
D. Mount-F
 

20. What permissions does the user need to run a script?
A. Read
B. Write
C. Execute
D. Browse on the directory
 

21. In Linux, how do I identify the 2nd extended partitions connected to the slave hard drive on ide0?
A./dev/hdb2
B./dev/hd1b2
C./dev/hdb6
D./dev/hd1b6
 

22. How do I set the priority of a process when the application starts?
A. Priority
B. Nice
C. renice
D. setpri
 

23. In bash, adding "1> & 2" after a command means:
A. The standard error output is redirected to the standard input.
B. Redirect standard input to standard error output
C. Redirect standard output to standard error output
D. Redirect standard output to standard input
 

Which of the following commands can copy f1.txtto f2.txt?
A. CP f1.txt | f2.txt
B. Cat f1.txt | f2.txt
C. Cat f1.txt> f2.txt
D. Copy f1.txt | f2.txt
 

25. The command for displaying the last few lines of a file is:
A. TAC
B. Tail
C. Rear
D. Last

26. How can I quickly switch to user John's main directory?
A. CD @ John
B. CD # John
C. CD & John
D. Cd ~ John
 

27. Which of the following commands can be used to convert all the characters in a stream into uppercase or lowercase characters?
A. tr a-Z A-Z
B. TAC A-Z A-Z
C. Sed/a-z/A-Z
D. Sed -- toupper
 

28. what command can be used to view Linux Startup information?
A. mesg-d
B. dmesg
C. CAT/etc/mesg
D. CAT/var/mesg

29. The runtime level is defined in:
A. in the kernel
B. in/etc/inittab
C. in/etc/runlevels
D. Using the RL command

30. How to load all file systems defined in the/etc/fstab file on the mount?
A. Mount-
B. Mount/mnt /*
C. Mount
D. Mount/etc/fstab

31. Using the ln command, a new symbolic link pointing to the old object is generated. If you delete the old object, can you still access the data in the object?
A. No access is allowed.
B. Still accessible
C. Access depends on the file owner.
D. Access depends on the file permission.

32. How much space does the root user retain by default in the xt2fs file system?
A.m. 3%
B. 5%
C. 10%
D. 15%.

33. Which command is used to display inode usage in each partition of the system?
A. df-I
B. df-H
C. Free-B
D. Du-a-c/
 

34. In most Linux releases, the graphic operation level is defined?
A. 1
B. 2
C. 3
D. 5

35. Find all the instructions about the word print in the system documentation?
A. Man print
B. Which print
C. Locate print
D. apropos print

36. MAN 5 What does passwd mean?
A. How to Use the passwd command
B. display the structure of the passwd file
C. display the first five lines of the passwd command description
D. display the first five instructions on passwd.

37. How can I find all rows marked with "*" in the file?
A. Find \ * File
B. WC-L * <File
C. grep-N * File
D. grep '^ \ *' file

38. In the ps command, what parameters are used to display the processes of all users?
A.
B. B
C. u
D. x

39. What is the command for displaying binary files?
A. OD
B. Devil
C. View
D. binview

40. How to display the number of users registered in Linux (including system users )?
A. Account-l
B. nl/etc/passwd | HEAD
C. WC -- users/etc/passwd
D. WC -- lines/etc/passwd

41. What symbol is added to the End position of a row, indicating that the row is not over and the next row continues?
A ./
B .\
C .;
D. |

42. The meaning of the command kill 9 is:
A. Kills the process whose PID is 9.
B. Kills all processes belonging to uid 9.
C. Sends sigkill to the process whose PID is 9.
D. Sends sigterm to the process whose PID is 9.

43. How to delete a non-empty sub-directory/tmp?
A. del/tmp /*
B. rm-RF/tmp
C. rm-ra/tmp /*
D. rm-RF/tmp /*

44. What command can be used to run cmd1 at midnight today?
A. At midnight cmd1
B. Cron-at "00:00" cmd1
C. batch-T "00:00" <cmd1
D. Echo "cmd1" | at midnight

45. Your system uses the Incremental backup policy. In what order do you need to restore the backup data when you need to restore the system?
A. Last full backup, and then Incremental backup from the earliest to the nearest
B. The last full backup, and then the most recent Incremental Backup
C. The earliest Incremental backup to the latest, and then the last full backup
D. The latest Incremental backup and the last full backup

46. Under which file should I set variables for all users?
A./etc/bashrc
B./etc/profile
C .~ /. Bash_profile
D./etc/skel/. bashrc

47. In Linux, the command LS is generally defined as the alias of LS -- color to identify different types of files in different colors. However, how can I use the original LS command?
A. \ ls
B.; LS
C. ls $
D. ls -- noalias

48. What does a script file generally start with in Linux?
A. $/bin/sh
B .#! /Bin/sh
C. Use/bin/sh
D. Set shell =/bin/sh

49. Which of the following statements indicates that if cmd1 is successfully executed, the cmd2 command is executed?
A. cmd1 & cmd2
B. cmd1 | cmd2
C. cmd1; cmd2
D. cmd1 | cmd2

50. In which file is the nic I/O address defined?
A. CAT/proc/modules
B. CAT/proc/devices
C. CAT/proc/ioports
D. CAT/IO/DMA

51. In Linux, what is the software that provides the TCP/IP packet filtering function?
A. RARP
B. Route
C. iptables
D. Filter

52. How do I pause a print queue?
A. LPR
B. lpq
C. LPC
D. lpd

53. What is the command to exit and not save in VI?
A.: Q
B.: W
C.: WQ
D.: Q!

54. In xfree86 3.x, the default font server is:
A. XFS
B. xfserv
C. Fonts
D. xfstt

55. What command is used to detect basic network connections?
A. Ping
B. Route
C. netstat
D. ifconfig

56. Which of the following protocols uses more than two ports?
A. Telnet
B. FTP
C. RSH
D. HTTP

57. Which authentication protocol does not transmit the password in plaintext in the PPP protocol?
A. Pam
B. Pap
C. PGP
D. Chap

58. Which of the following file systems should allocate the maximum space?
A./usr
B./lib
C./root
D./bin

59. How to install the RPM package in the Debian system?
A. Alien pkgname. rpm
B. dpkg -- RPM pkgname. rpm
C. dpkg -- alien pkgname. rpm
D. Alien pkganme. rpm; dpkg-I pkganme. Deb
 

60. Which of the following steps requires the root permission during software installation?
A. Make
B. Make deps
C. Make config
D. make install

61. What command is used to update only the installed RPM software package?
A. rpm-u *. rpm
B. rpm-f *. rpm
C. rpm-E *. rpm
D. rpm-Q *. rpm

62. In Windows and Linux dual-boot systems
Management Guide, Lilo should be placed in:
A. MBR
B ./
C. The first sector of the root Partition
D./lilo

63. The configuration file of ldconfig is
A./lib/lD. So
B./etc/lD. So. conf
C./etc/lD. So. Cache
D./etc/modules. conf

64. Which of the following commands can compress some files:
A. Tar-dzvf filename. tgz *
B. Tar-tzvf filename. tgz *
C. Tar-czvf filename. tgz *
D. Tar-xzvf filename. tgz *

65. The network service daemon is:
A. lpd
B. netd
C. httpd
D. inetd

66. What daemon does Linux and Windows need to provide for Internet interconnection?
A. Bind
B. smbd
C. nmbd
D. Shard

67. For the Apache server, the default users of sub-processes provided are:
A. Root
B. apached
C. httpd
D. Nobody

68. The default unsent mail storage location in Sendmail is:
A./var/mail/
B./var/spool/mail/
C./var/spool/mqueue/
D./var/mail/deliver/

69. The main configuration file of Apache is:
A. httpd. conf
B. httpd. cfg
C. Access. cfg
D. Apache. conf

70. For the modules that can be loaded, the storage location of parameters such as I/O addresses during loading is:
A./etc/CONF. Modules
B./etc/Lilo. conf
C./boot/system. Map
D./etc/sysconfig

71. In Linux, how do I disable email prompts?
A. Biff n
B. mesg n
C. Running y off
D. Set policy = off

72. In the bash shell environment, when a command is being executed, pressing Control-Z will:
A. Abort a foreground task
B. Add EOF to the current file.
C. Transfer the foreground task to the background
D. log out of the current user

73. The user files defining the bash environment are:
A. Bash &. bashrc
B. bashrc &. bash_conf
C. bashrc & bash_profile
D. bashrc &. bash_profile

74. Which of the following commands is used to display the library files used by a program?
A. LDD
B. LD so
C. modprobe
D. ldconfig

75. How can I view the storage location of the configuration file of an RPM software?
A. rpm-QC rpm1
B. rpm-VC rpm1
C. rpm -- config rpm1
D. rpm-Qa -- config rpm1

76. How can I view the modification records of an RPM software?
A. rpm-VC Postfix
B. rpm-qpil Postfix
C. rpm -- changelog Postfix
D. rpm-Q -- changelog Postfix

77. The command for installing compiled code through makefile is:
A. Make
B. Install
C. Make depend
D. make install

78. What command is used to decompress the tar file?
A. Tar-czvf filename. tgz
B. Tar-xzvf filename. tgz
C. Tar-tzvf filename. tgz
D. Tar-dzvf filename. tgz

79. In the xf86config configuration file, which segment is used to set the font file?
A. the fonts section.
B. The files section.
C. The xfscodes section.
D. The Graphics Section.

80.8 bit color indicates:
A. 64 K colors
B. 16 k colors
C.0. 256 colors
D. 16 m colors

81. Which of the following files is used to set the display resolution of X Window?
A. xinit
B. xinitrc
C. xf86setup
D. xf86config

82. Which variable is used to specify the X server on which the output of a remote X application is put?
A. Display
B. Term
C. Echo
D. Output

83. In the xdm configuration Directory, which file is used to set the application automatically started after the user logs on through xdm?
A. The xsession File
B. The xsetup_0 File
C. The xstart_up File
D. The giveconsole File

84. The command netstat-A stopped for a long time and did not respond. What may be the problem?
A. NFS.
B. DNS.
C. NIS.
D. routing.

85. The Ping protocol is as follows:
A. TCP
B. UDP
C. SMB
D. ICMP

86. Which of the following commands is not used to view network faults?
A. Ping
B. init
C. Telnet
D. netstat

87. The protocol used for dial-up Internet access is generally:
A. PPP
B. uucp
C. Slip
D. Ethernet

88. Which protocol in TCP/IP is used for automatic IP allocation?
A. ARP
B. NFS
C. DHCP
D. DNS

89. Which of the following files defines the network service port?
A./etc/netport
B./etc/services
C./etc/Server
D./etc/netconf

90. Which of the following functions is used to generate a file verification code?
A. MD5
B. Tar
C. crypt
D. md5sum

91. By default, users' emails are placed in:
A .~ /Mail/
B./var/mail/
C./var/mail/spool/
D./var/spool/mail/

92. Which of the following files contains the directory list for NFS daemon?
A./etc/nfs
B./etc/nfs. conf
C./etc/exports
D./etc/netdir

93. How do I stop the telnet service on a machine?
A. Put none in/etc/telnet. Allow
B. Put a line 'all: all' in/etc/hosts. Deny
C. Comment the telnet entry in/etc/inittab
D. Comment the telnet entry in/etc/xinetd. conf

94. Which file stores the Sendmail alias?
A./etc/aliases
B./etc/mailaliases
C./etc/sendmail. aliases
D./etc/sendmail/aliases

95. The configuration files of smbd and nmbddaemons are:
A./etc/exports
B./etc/smb. conf
C./etc/samba/config
D./usr/local/samba. cfg

96. Which of the following commands is used to uninstall a kernel module?
A. rmmod
B. unmod
C. delmod
D. modprobe

97. Under what circumstances must lilo be run
A. Once a day from Cron
B. Once a week from Cron
C. After installing a new kernel
D. After installing a new module

98. What command is used to display all mounted modules?
A. lsmod
B. dirmod
C. Modules
D. modlist

99. Which of the following commands is used to refresh the printer queue?
A. lpflush
B. lprm-
C. lpclear
D. lprm all

100. Which of the following commands can view network card interruptions?
A. CAT/proc/ioports
B. CAT/proc/interrupts
C. CAT/proc/memoryinfo
D. Which interrupts

Reference answer:

01. d 02. B 03.c 04.c 05. B 06.c 07. B 08.c 09.a 10. B

11. A 12.c 13.c 14.c 15. B 16.a 17.d 18.d 19. B limit B

21. c 22. B 23.c 24.c 25. B 26.d 27.a 28. B 29. B 30.a

31. A 32.c 33.a 34.d 35.d 36. B 37.d 38.a 39.a 40.d

41. B 42.d 43. B 44.d 45. B 46. B 47.a 48. B 49.a 50.c

51. c 52.c 53.d 54.a 55.a 56. B 57.d 58.a 59.d 60.d

61. B 62.a 63. B 64.c 65.d 66. B 67.d 68.c 69.a 70.a

71. A 72.c 73.d 74.a 75.a 76.d 77.d 78. B 79. B 80.c

81. d 82.a 83. B 84. B 85.d 86. B 87.a 88.c 89. B 90.a

91. d 92.c 93.d 94.a 95. B 96.a 97.c 98.a 99. B 100. B

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.