[linux] common skills

26. How to quickly switch to the home directory of user John?
A. cd @John
B. cd #John
C. cd &John
D. cd ~John
Answer: D
27. Which of the following commands can be used to convert all characters in a stream to uppercase characters?
A. tr az AZ
B. tac az AZ
C.sed /az/AZ
D. sed --toupper
Answer: A

28. What command can be used to view the startup information of Linux?
A. mesg -d
B. dmesg
C. cat /etc/mesg
D. cat /var/mesg
Answer: B

37. How to find and display all lines starting with "*" in the file?
A. find * file
B. wc -l * < file
C. grep -n * file
D. grep '^*' file
Answer: D

38. What parameter is used to display the processes of all users in the ps command?
A. a
B. b
C. u
D. x
Answer: A

40. How to display the number of users registered 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
Answer: 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.
答案:D

44. What command can be used to run the 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
Answer: D

49. Which of the following ways of writing means that if cmd1 is executed successfully, execute cmd2 command?
A. cmd1&&cmd2
B. cmd1|cmd2
C. cmd1;cmd2
D. cmd1||cmd2
Answer: A

51. In Linux, what is the software that provides TCP/IP packet filtering function called?
A. rarp
B. route
C. iptables
D. filterAnswer
: C

60. Which of the following steps requires root privileges when installing software?
A. make
B. make deps
C. make config
D. make installAnswer
: D

61. What command is used to update only the rpm packages that have been installed?
A. rpm -U *.rpm
B. rpm -F *.rpm
C. rpm -e *.rpm
D. rpm -q *.rpm
Answer: B

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
Answer: B What is Idconfig?

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 *
Answer: C

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

66. What kind of daemon should be provided for the internet connection between Linux and Windows?
A. bind
B. smbd
C. nmbd
D. shard
Answer: B smb service

71. In Linux, how to close the mail prompt?
A. biff n
B. mesg n
C. notify off
D. set notify=off
Answer: A

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

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
Answer: B

78. What command to decompress tar file?
A. tar -czvf filename.tgz
B. tar -xzvf filename.tgz
C. tar -tzvf filename.tgz
D. tar -dzvf filename.tgz
Answer: B

84. The command netstat -a stopped for a long time without responding, what might be the problem?
A. NFS.
B. DNS.
C. NIS.
D. routing.
Answer: B

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

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
Answer: B
95. The configuration files for smbd and nmbddaemons are:
A. /etc/exports
B. /etc/smb. conf
C. /etc/samba/config
D. /usr/local/samba.cfg
Answer: B

100. Which of the following commands can check the interruption of the network card?
A. cat /proc/ioports
B. cat /proc/interrupts
C. cat /proc/memoryinfo
D. which interruptsAnswer
: B

Guess you like

Origin blog.csdn.net/weixin_40293999/article/details/129959321
Recommended