100 Linux Pen Questions

Source: Internet
Author: User
Tags aliases inode usage root access ide hard drive

1. Cron Background Resident Program (daemon) is used to:
A. Responsible for the sharing of files in the network
B. Managing the print subsystem
C. Tracking management system Information and errors
D. Scheduling of daily tasks of management systems

2. In most Linux distributions, which of the following belongs to block devices?
A. Serial port
B. Hard disk
C. Virtual Terminal
D. Printer

3. Which Linux command 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 your current directory?
A. Use DF
B. Use du/
C. Use Du.
D. Use DF.

5. How do I change the permission settings for 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 do this:
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 is running at level 3, how can I switch to level 5 without rebooting the system?
A. Set level = 5
B. Telinit 5
C. Run 5
D. alt-f7-5

8. Is the command used to change the IDE hard drive settings?
A. Hdparam
B. Ideconfig
C. hdparm
D. Hddparm

9. Which of the following commands lists all tasks that define a run at a specific time in the future?
A. ATQ

B. Cron
C. Batch
D. At

10. The function of the following command is: Set ps1= "[\u\w\t]\\$"; Export PS1
A. Changing the error message hint
B. Changing the command prompt
C. Change some terminal parameters
D. Changing the secondary command prompt

11. As an administrator, you want to place a file in each new user's directory. BASHRC, which directory should you drop the file in so that the new user can automatically copy the file to its own directory when it creates the home directory.
A./etc/skel/

B./etc/default/
C./etc/defaults/
D./etc/profile.d/

12. In bash, the Export command acts as:
A. Running commands in a child shell
B. Enabling command history to be used in child shells
C. Setting environment variables for other applications
D. Providing NFS partitions to other systems in the network

13. In the system using the shadow password, the permissions of/etc/passwd and/etc/shadow two files are correct:
A.-rw-r-----,-R--------
B.-rw-r--r--,-r--r--r--
C.-rw-r--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 from Monday to Friday 1 o'clock in the afternoon and 8 o'clock in the evening, which of the following crontab items can do this work?
A. 0 13,20 * * 1,5 MyBackup
B. 0 13,20 * * 1,2,3,4,5 MyBackup
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. Dismount
C. Mount-u
D. Remove this file system entry from/etc/fstab

17. If your umask is set to 022, the default permissions for the files you create are:
A.----w--w-
B.-w--w----
C. R-xr-x---
D. rw-r--r--

18. How do I find the path to a binary command xconfigurator in one command?
A. Apropos Xconfigurator
B. Find Xconfigurator
C. Where Xconfigurator
D. Which xconfigurator

19. Which command is used to load all the file systems defined in/etc/fstab?
A. Amount
B. mount-a
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 partition of a slave hard disk that is connected to a IDE0?
A./dev/hdb2
B./dev/hd1b2
C./dev/hdb6
D./dev/hd1b6

22. How do I prioritize a process when the application is started?
A. Priority
B. Nice
C. Renice
D. Setpri

23. In bash, adding "1>&2" after a command means:
A. Standard error output redirect to standard input
B. Standard input redirection to standard error output
C. Standard output redirection to standard error output
D. Standard output Redirect to standard input

24. Which of the following commands can copy F1.txt to 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 commands that display the last few lines of a file are:
A. TAC
B. Tail
C. Rear
D. Last

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

27. To convert all the characters in a stream to uppercase, which of the following commands can be used?
A. TR A-Z

B. TAC A-Z
C.sed/a-z/a-z
D. Sed--toupper

28. What commands can I use to view startup information for Linux?
A. mesg-d
B. DMESG
C. CAT/ETC/MESG
D. CAT/VAR/MESG

29. Run-level definition in:
A. In the kernel
B. In/etc/inittab
C. In/etc/runlevels
D. Using the RL command

30. How do I mount (mount) all the file systems defined in the/etc/fstab file?
A. mount-a

B. mount/mnt/*
C. Mount
D. Mount/etc/fstab

31. Use the LN command to generate a symbolic link to the old file, and if you delete the file, will you be able to access the data in the file?
A. No further access

B. can still access
C. Access depends on the owner of the file
D. Ability to access dependent on file permissions

In the 32.xt2fs file system, what is the default amount of space reserved for the root user?
A. 3%
B. 5%
C. 10%
D. 15%

33. Which command is used to display the 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 distributions, the run level for graphical mode is defined as?
A. 1
B. 2
C. 3
D. 5

35. Find all the instructions for 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. Show how to use the passwd command
B. Displaying the structure of a passwd file
C. The first five elements showing the description of the passwd command
D. Display the first five documentation about passwd.

37. How do I find a file that shows all lines that begin with "*"?
A. Find \* File
B. wc-l * < file
C. grep-n * File
D. grep ' ^\* ' file

38. What parameters in the PS command are used to display the processes of all users?
A. A

B. b
C. u
D. x

39. What is the command that displays the binary file?
A. OD

B. Vil
C. View
D. Binview

40. How to display the number of registered users in the Linux system (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 at the end of a line, indicating that it is not finished and the next line 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 do I delete a non-empty directory/tmp?
A. del/tmp/*
B. rm-rf/tmp
C. rm-ra/tmp/*
D. rm-rf/tmp/*

44. What command can I use to run command 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 an incremental backup strategy, and in what order do you need to restore the backup data when the system needs to be restored?
A. Last full backup, and then from the earliest to the most recent incremental backup
B. Last full backup, then from the most recent to the earliest incremental backup
C. Oldest incremental backup, and then the last full backup
D. The most recent incremental backup, and then the last full backup

46. Which file should be placed on the variable settings for all users?
A./ETC/BASHRC
B./etc/profile
C. ~/.bash_profile
D./ETC/SKEL/.BASHRC

In 47.Linux systems, command LS is generally defined as an 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 in a Linux system usually start with?
A. $/bin/sh
B. #!/bin/sh
C. use/bin/sh
D. Set Shell=/bin/sh

49. Which of the following notation means that if CMD1 executes successfully, the CMD2 command is executed?
A. cmd1&&cmd2

B. cmd1|cmd2
C. cmd1;cmd2
D. cmd1| | Cmd2

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

What is the name of the software that provides TCP/IP packet filtering in 51.Linux?
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 from VI without saving?
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 a basic network connection?
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. In the PPP protocol, which authentication protocol does not pass the password in clear text?
A. PAM
B. PAP
C. PGP
D. CHAP

58. Which file system should be allocated the maximum space below?
A./usr

B./lib
C./root
D./bin

59. How do I 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 root access when installing the software?
A. Make
B. Make Deps
C. Make Config
D. Make install

61. What commands are used to update only the RPM packages that have already been installed?
A. Rpm-u *.rpm
B. Rpm-f *.rpm
C. Rpm-e *.rpm
D. Rpm-q *.rpm

62. In Windows and Linux dual-start systems, if you want Lilo management to boot, Lilo should be placed in:
A. MBR
B./
C. First sector of the root partition
D./lilo

The 63.ldconfig configuration file 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 daemon of network services are:
A. LPD
B. netd
C. httpd
D. inetd

What daemon do I need to provide when 66.Linux is connected to the online home of Windows?
A. Bind
B. smbd
C. nmbd
D. Shard

67. For Apache servers, the default user for the provided child process is:
A. Root
B. apached
C. httpd
D. Nobody

The default location for non-issued letters in 68.sendmail is:
A./var/mail/
B./var/spool/mail/
C./var/spool/mqueue/
D./var/mail/deliver/

The main configuration file for 69.apache is:
A. httpd.conf

B. httpd.cfg
C. access.cfg
D. apache.conf

70. For loadable modules, the storage location of parameters such as I/O addresses when loading is:
A./etc/conf.modules

B./etc/lilo.conf
C./boot/system.map
D./etc/sysconfig

71. In Linux, how do I turn off mailtips?
A. Biff N

B. MESG N
C. Notify off
D. Set Notify=off

72. In the bash shell environment, when a command is executing, pressing CONTROL-Z will:
A. Abort A foreground task
B. Add EOF to the current file.
C. Transferring front office tasks to the background
D. Log off the current user

73. User files that define 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 file used by a program?
A. ldd

B. LD so
C. modprobe
D. Ldconfig

75. How can I view the location of a configuration file for a rpm software?
A. RPM-QC RPM1

B. RPM-VC RPM1
C. RPM--config RPM1
D. Rpm-qa--config RPM1

76. How can I view a change history for a rpm software?
A. RPM-VC postfix
B. Rpm-qpil postfix
C. RPM--changelog Postfix
D. Rpm-q--changelog postfix

77. The command to install the compiled code via makefile is:
A. Make
B. Install
C. Make depend
D. Make install

78. What commands unzip 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 refers to:
A. 64K Colors
B. 16K Colors
C. Colors
D. 16M 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 placed?
A. DISPLAY

B. Term
C. ECHO
D. OUTPUT

83. In the XDM configuration directory, which file is used to set the application to automatically start 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. Command Netstat-a stopped for a long time without responding, where could this be the problem?
A. NFS.
B. DNS.
C. NIS.
D. Routing.

The protocols used by 85.ping are:
A. TCP
B. UDP
C. SMB
D. ICMP

86. Which of the following commands is not used to view network failures?
A. Ping
B. Init
C. telnet
D. Netstat

87. The protocol used for dial-up access is usually:
A. PPP

B. UUCP
C. SLIP
D. Ethernet

In 88.TCP/IP, which protocol is used for IP auto-allocation?
A. ARP
B. NFS
C. DHCP
D. DNS

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

90. Which of the following functions is used to generate a checksum for a file?
A. MD5

B. Tar
C. Crypt
D. md5sum

91. By default, user mail is placed in:
A. ~/mail/
B./var/mail/
C./var/mail/spool/
D./var/spool/mail/

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

93. How do I stop the Telnet service for 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. In which file is the SendMail alias saved?
A./etc/aliases

B./etc/mailaliases
C./etc/sendmail.aliases
D./etc/sendmail/aliases

The configuration files for 95.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 unload a kernel module?
A. Rmmod

B. Unmod
C. Delmod
D. modprobe

97. Under what circumstances must the 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 displays all loaded modules?
A. lsmod

B. Dirmod
C. Modules
D. modlist

99. Which of the following commands refreshes the printer queue?
A. Lpflush
B. LPRM-
C. lpclear
D. LPRM All

100. Which of the following commands can see the interrupt of the NIC?
A. Cat/proc/ioports
B. cat/proc/interrupts
C. Cat/proc/memoryinfo
D. Which interrupts

100 Linux Pen Questions

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.