linux pen questions

1. cron background resident program (daemon) for:
A. responsible for file sharing in the network
B. print management subsystem
C. tracing information management system and errors
schedule daily tasks D. management system

2. In most Linux distributions, which belongs to the block device (block devices)? A. serial port
B. hard
C. Virtual Terminal
D. printer

3. Which of the following Linux command to display the contents of a time? PAUSE A.
B. CAT
C. More
D. grep

4. How to know how much space you have in the current directory? The Use df A.
B. the Use du /
C. the Use du.
D. the Use df.

5. How do I change a file's permissions? Attrib A.
B. chmod
C. Change
D. File

6. If you need to find out /etc/my.conf files belong to which package (package), you can perform: A. RPM -q /etc/my.conf
B. RPM -requires /etc/my.conf
C. RPM /etc/my.conf -qf
D. RPM -q | grep /etc/my.conf

7. If the current system is running at level 3, how not to restart the system can be converted to level 5 running? The Set Level =. 5 A.
B. the telinit. 5
C. RUN. 5
D. the ALT-F7-5

8. That command is used to change the settings for IDE hard disk? Hdparam A.
B. ideconfig
C. hdparm
D. hddparm

9. Which of the following command to list all the tasks defined run once after a certain time? Atq A.
B. cron
C. BATCH
D. AT

10. The role of the command is the following: SET PS1 = "[\ U \ W \ T] $"; Export PS1 A. change the error information presentation
B. change command prompt
C. to change some parameters of the terminal
D. assist command prompt change

11. As an administrator, you want to decentralization in every new user a directory file .bashrc, then you should place the file in which directory to automatically copy this file to your home directory in the directory when creating new users . A. / etc / skel /
B. / etc / default /
C. / etc / Defaults /
D. /etc/profile.d/

12. In bash, the role of the export command is: A. run in the sub-shell command
B. make use command history recorded in the sub-shell
C. setting environment variables for other applications
D. partition to provide NFS network other systems use

13. Use of the shadow password system, / etc / passwd and / etc / shadow two files correct permissions are: A. -rw-R & lt -----, -R & lt ------- -
B.-R & lt -rw - r--, -R & lt - R & lt - r--
C.-R & lt -rw - r--, -R & lt --------
D. -RW- r - rw-, -r ----- r--

14. Which of the following parameters can delete a user and delete the user's home directory? Rmuser -r A.
B. deluser -r
C. userdel -r
D. usermgr -r

15. There is a backup program mybackup, you need to run each time Monday to Friday 13:00 and 20:00, which of the following crontab entry can get the job done? L, 5 0 * 13,20 * A. MyBackup
B. MyBackup 1,2,3,4,5 0 * 13,20 *
C. * * * 13,20 1,2,3,4,5 MyBackup
D. 0 13,20 1,5 * * mybackup

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

17. If your umask permissions set to 022, the default file is created for you: A. ---- w - W-
B. -w - w ----
C. r-XR-x-- -
D.-R & lt RW - r--

18. How to find the path to a binary Xconfigurator command in a command? Xconfigurator apropos A.
B. the Find Xconfigurator
C. the WHERE Xconfigurator
D. Which Xconfigurator

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

20. Run a script, what rights the user does not need to? The Read A.
B. the Write
C. the Execute
D. at The ON the Browse Directory

twenty one. In Linux, how to identify IDE0 the slave connected to the hard disk of the second extended partition? A. / dev / hdb2
B. / dev / hd1b2
C. / dev / hdb6
D. / dev / hd1b6

twenty two. When the application starts, how to set the priority of the process? Priority A.
B. Nice
C. renice
D. the setpri

twenty three. In bash, after addition of a command "1> & 2" means: A. redirect the standard error output to the standard input
B. standard input redirected to the standard error output
C. standard output to the standard error output
D. Standard input to the standard output redirection

twenty four. Which the following command to copy the f1.txt 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. Display a file last few lines of command are: A. tac
B. tail
C. REAR
D. Last

26. How to quickly switch to the user's home directory John's? Cd @John A.
B. cd #John
C. cd & John
D. John cd ~
 

27. put a stream of all the characters to uppercase characters, which you can use the following command? TR AZ az A.
B. tac az AZ
C.sed / az / AZ
D. sed --toupper

28. What command can view the startup information for Linux? Mesg -d A.
B. the dmesg
C. CAT / etc / mesg
D. CAT / var / mesg

29. Run Level is defined in: A. in at The Kernel
B. in / etc / inittab
C. in / etc / runlevels
D. a using the Command at The RL

30. All documents how the system load (mount) on defined in the / etc / fstab file? -A Mount A.
B. Mount / mnt / *
C. Mount
D. Mount / etc / fstab

31. Use ln command generates a symbolic link to a file old new, if you delete the old file, if still able to access the data in the file? A. can no longer access
B. can still access
C. depending on the file's owner can access
permissions can access depends on the file D.

32.xt2fs file system, the default is to retain much space for the root user? %. 3 A.
B.. 5%
C. 10%
D. 15%

33. Which command to display the system in each partition in the inode? Df -i A.
B. df -H
C. as Free -b
D. du -a -c /
 

34. Most Linux distributions, run level is defined graphically? . 1 A.
B. 2
C.. 3
D.. 5

35. Find all instructions on the word in print system documentation? Man Print A.
B. Which Print
C. Print the locate
D. apropos Print

36.man 5 passwd meaning? A. Use the passwd command to display
B. display structure passwd file
C. Description of the first five rows show the passwd command of
D. on display at the five passwd documentation.

37. How do you find in the file to show all "*" line starts with? * Find File A.
B. * WC -l <File
C. grep -n * File
D. grep '^ *' File

38. In what parameters ps command is used to display all the user's processes? A A.
B. B
C. U
D. X

39. The display command binaries that? OD A.
B. VIL
C. View
D. binview

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

41. What symbols in a row plus end position, represents not the end of the next row? A. /
** B **.
C.;
D. |

42.命令 kill 9 的含义是: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 do I delete a non-empty directory / tmp? Del A. / tmp /
B. RM -rf / tmp
C. -Ra RM / tmp /

D. RM -rf / tmp / *

44. What command can run commands cmd1 midnight today? AT Midnight CMD1 A.
B. cron -at "00:00" CMD1
C. BATCH -t "00:00" <CMD1
D. echo "CMD1" | AT Midnight

45. Your system uses an incremental backup strategy, when the need to restore the system, you need to restore the backup data in what order? A. the last full backup, then the backup from the earliest to the most recent incremental
B. last full backup, then the backup from the earliest to the most recent incremental
C. earliest to the most recent incremental backup, and then the last full backup
D. Recent the first incremental backup, and then the last full backup

46. The variable settings for all users, which should be placed in the file? A. / etc / bashrc
B. / etc / Profile
C. ~ / .bash_profile
D. /etc/skel/.bashrc

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

48. script file in Linux systems generally start with what? $ A. / bin / SH
B. #! / Bin / SH
C. use / bin / SH
D. the SET shell = / bin / SH

49. Which of the following wording cmd1 said that if successful, the command execution cmd2? CMD1 && CMD2 A.
B. CMD1 | CMD2
C. CMD1; CMD2
D. CMD2 CMD1 ||

50. The definition of the network card in which file I / O address? CAT A. / proc / modules
B. CAT / proc / Devices
C. CAT / proc / ioports
D. CAT / IO / DMA

In 51.Linux, provides TCP / IP packet What filtering software called? RARP A.
B. route
C. iptables
D. filter

52. How do you pause a print queue? LPR A.
B. LPQ
C. the LPC
D. LPD

53. Exit without saving command in vi is? A.: Q
B.: W
C.: WQ
D.: Q!

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

55. What command detect basic network connectivity? The ping A.
B. route
C. netstat
D. ifconfig

56. Which of the following protocol uses two or more ports? The Telnet A.
B. the FTP
C. rsh
D. HTTP

57. In the PPP agreement, which authentication protocol is not passed in clear text password? PAM A.
B. PAP
C. PGP
D. CHAP

58. Which of the following file system should be allocated the largest space? A. / usr
B. / lib
C. / root
D. / bin

59. How to install rpm packages in the Debian system? Alien pkgname.rpm A.
B. dpkg --rpm pkgname.rpm
C. dpkg --alien pkgname.rpm
D. Alien pkganme.rpm; dpkg -i pkganme.deb
 

60. Which of the following when installing the software step requires root privileges? The make A.
B. the make deps
C. the make config
D. the make install

61. What command is used to update only the rpm package already installed? -U RPM A. .rpm
B. -F * .rpm RPM
C. RPM -e
.rpm
D. .rpm RPM * -q

62. At the start of the double windows and Linux systems, if you want LILO boot management, should be placed in the LILO: A. the MBR
B. /
head sector C. root partition
D. / LILO

63.ldconfig profile is A. /lib/ld.so
B. /etc/ld.so.conf
C. /etc/ld.so.cache
D. the /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 *

Daemon 65. Network services are: A. LPD
B. NETD
C. httpd
D. inetd

66.Linux and windows leading ranks of online Internet, need to provide any daemon? A. the bind
B. smbd
C. nmbd
D. Shard

67. For the Apache server, the default sub-process is provided by the user: A. root
B. apached
C. httpd
D. the nobody

68.sendmail not issued a letter in the default storage location is: A. / var / mail /
B. / var / spool / mail /
C. / var / spool /, mqueue, /
D. / var / mail / The deliver /

69.apache main configuration file is:. A the httpd.conf
B. httpd.cfg
C. access.cfg '
D. apache.conf

70. loadable module, loading parameters, such as I / O address of the storage location is:. A /etc/conf.modules
B. /etc/lilo.conf
C. /boot/System.map
D. / etc / sysconfig

71. In Linux, how to turn off email alerts? N-BIFF A.
B. n-mesg
C. Notify OFF
D. Notify = OFF SET

72. In the bash shell environment, when a command is being executed, press control-Z will: A. abort the foreground task
B. to the current file with EOF.
C. into the background to the foreground task
D. log off the current user

73. define the bash environment, user files are: A. bash .bashrc &
B. bashrc & .bash_conf
C. bashrc & bash_profile
D. & .bash_profile .bashrc

74. Which the following command to display a library file used by the program? Ldd A.
B. LD SO
C. modprobe
D. ldconfig

75. How do you view the storage location of a configuration file RPM software? RPM RPM1 -qc A.
B. -Vc RPM RPM1
C. --config RPM RPM1
D. RPM -qa --config RPM1

76. How to view the revision history of a RPM software? RPM -Vc postfix A.
B. RPM -qpil postfix
C. RPM --changelog postfix
D. RPM -q postfix --changelog

77. The command to install the code has been compiled by the Makefile is: A. the make
B. install
C. the make the depend
D. the make install

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

79. XF86Config configuration file, which segment is used to set the font file? Fonts Section at The A..
B. at The Files Section.
C. at The xfsCodes Section.
D. at The Graphics Section.

80.8 bit color 指的是:A. 64K colors
B. 16K colors
C. 256 colors
D. 16M colors

81. The following file which is used to set the X window display resolution? Xinit A.
B. xinitrc
C. XF86Setup
D. XF86Config

82. Which variable is used to specify a remote X applications on which the output into the X server? The DISPLAY A.
B. TERM
C. ECHO
D. the OUTPUT

83. xdm configuration directory, the file which is used to set the application after the user login through xdm automatically started? The Xsession File at The A.
B. at The Xsetup_0 File
C. at The Xstart_up File
D. at The GiveConsole File

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

85.ping protocol used is: A. TCP
B. UDP
C. SMB
D. ICMP

86. Which is not following command to view a network failure? The ping A.
B. the init
C. the Telnet
D. netstat

87. Dial-up Internet protocol used is usually: A PPP.
B. UUCP
C. SLIP
D. Ethernet

88.TCP / IP, the protocol which is used for automatic assignment of IP? ARP A.
B. NFS
C. the DHCP
D. the DNS

89. Which of the following file defines the port network services? A. / etc / NetPort
B. / etc / Services
C. / etc / Server
D. / etc / NETCONF

90. Which of the following function is used to generate a checksum file? MD5 A.
B. tar
C. crypt
D. md5sum

91. default, the message in the user: A. ~ / mail /
B. / var / mail /
C. / var / mail / spool /
D. / var / spool / mail /

92. Which of the following file contains a list of directories for NFS daemon use? A. / etc / NFS
B. /etc/nfs.conf
C. / etc / Exports
D. / etc / the netdir

93. How do you stop a machine's telnet service? NONE /etc/telnet.allow of Put in A.
B. Line A of Put 'ALL: ALL' in /etc/hosts.deny
C. The Telnet it Comment entry in / etc / inittab
D. The Telnet it Comment entry in / etc / xinetd .conf

94. Save the sendmail aliases in which file? A. / etc / aliases
B. / etc / MailAliases
C. /etc/sendmail.aliases
D. / etc / the sendmail / aliases

95.smbd and nmbddaemons profiles are: A. / etc / Exports
B. /etc/smb.conf
C. / etc / Samba / config
D. /usr/local/samba.cfg

96. Which of the following command to unload a kernel module? Rmmod A.
B. unmod
C. delmod
D. modprobe

97. Under what circumstances must run LILO A. Once A Day from cron
B. Once A Week from cron
C. the After Installing A new new Kernel
D. the After Installing A new new Module

98. What command displays all modules loaded? Lsmod A.
B. dirmod
C. modules
D. modlist

99. Which of the following commands to refresh the printer queue? Lpflush A.
B. lprm -
C. lpclear
D. All lprm

Which 100. The following command to view the card interrupt? CAT A. / proc / ioports
B. CAT / proc / interrupts
C. CAT / proc / memoryinfo
D. Which interrupts

Guess you like

Origin www.cnblogs.com/fan-gx/p/11465135.html