Interview questions-Linux command interview questions for Linux cloud computing operation and maintenance learning

1.1 Linux tools

1.1.1 Selection

1.1.1.1 The name of a file is rr.Z, when it can be used to decompress the command ()

tar

gzip

compress

uncompress

1.1.1.2 You can end the process command ()

kill

ctrl+c

shutdown

halt

1.1.1.3 The command to archive files under Linux is: (multiple choice)

dd

tar

zip

unzip

1.1.1.4 Linux command to check files older than 30 days in the current directory and move to /dev/null: (multiple choice)

find . -mtime 30 -type f xargs mv {} /dev/null ;

find . -mtime +30 -type xargs mv {} /dev/null ;

find . -mtime +30 -type f -exec mv {} /dev/null ;

find . -mtime +30 -type f -exec rm –rf {} ;

1.1.1.5 Which of the following commands is similar to dstat

vmstat

sar

iotop

abc

1.1.1.6 rpm installation software parameters

rpm -ivh

rpm -Ivh

rpm -Uvh

rpm -Iuvh

1.1.1.7 yum upgrade package option

rpm -uvh

rpm -Uvh

1.1.1.8 What is the command for viewing network traffic?

iftop

nsload

ifstatd

All of the above commands

1.1.1.9 Who else is the command to stop the process besides kill?

pkill

killa

allkill

None of the above commands

1.1.1.10 What are the commands for transferring files between servers?

wget

scp

ftp

All of the above commands

1.1.1.11 The command to archive files is

dd

cpio

gzip

tar

1.1.1.12 In the rpm command, the parameter used to install the new rpm package software is ()

-i

-v

-h

-e

1.1.1.13 In the du command, the parameter to display information in a friendly way is ()

-h

-f

-a

-t

1.1.1.14 Archive and compress the /home/stud1/wang directory, generate the wang.tar.gz file after compression, and save this file in the /home directory to achieve the tar command format for this task ___

tar zxvf /home/stud1/wang.tar.gz /home/wang

tar xcvf /home/stud1/wang /home/wang

tar zcv /home/stud1/wang /home/wang

tar zcvf /home/stud1/wang /home/wang.tar.gz

1.1.1.15 Commands and operations that may be used to terminate a foreground process () A: kill

B:CTRL+C

C:shutdown

D : stop

1.1.1.16 Shut down the Linux system (without restarting), use the command ()

A : Ctrl + Alt + Del

B : stop

C:shutdown -r now

D:reboot

1.1.1.17 Among the following formulations, the one that does not belong to the scope of the ifconfig command is __

A: Configure the local loopback address

B: Configure the IP address of the network card

C: Activate the network adapter

D: Load the network card into the kernel

1.1.1.18 Regarding the archive and compression commands, which of the following descriptions is correct ()

A: Use the uncompress command to decompress the compressed file with the suffix .zip generated by the compress command

B: Upzip command and gzip command can decompress the same type of files

C: The compressed file of tar archive can be decompressed with gzip command

D: The file archived by the tar command is also a compressed file

1.1.1.19 Commands and operations that may be used to terminate a total of foreground processes

kill

ctrl+c

shut down

halt

1.1.1.22 In order to extract the archive files myftp and tar in the current directory to the /tmp directory, the user can use the command

tar xvzf myftp.tgz -C /tmp

tar xvzf myftp.tgz -R /tmp

tar vzf myftp.tgz -X /tmp

tar xvzf myftp.tgz / tmp

1.1.1.23 What is wrong about the Linux command to check the system load?

The uptime command is mainly used to obtain the host running time and query the Linux system load and other information

The vmstat command can view the cpu load

The sar command can view network interface information

The free command can view the disk load

1.1.1.24 Which of the following methods/commands cannot check whether an ip is reachable?

telnet

ping

tracert

top

1.1.1.25 What are the parameters of the tar command for decompression? -v -x -c -f

1.1.1.26 Which of the following commands is not used to view network faults?

telnet

ping

init

netstat

1.1.1.28 In order to know who is registering to your machine, you can use the command: ___

Who users finger ping

1.1.1.29 To view the MAC addresses of other computers in this network segment, you can ping the other host first, and then;

arp -g

arp -n

arp -a

arp -d

What is the output time of date +%y%m%d%H%M at 2 pm on 1.1.1.3014

201711141212

1711141212

2017111412

201711021212

1.1.1.31 Which of the following commands can get the thread running status of the 1487 process ()

top -Hp 1487

top -Pp 1487

ps -mp 1487

sat -p 1487

1.1.1.32 Search for a log file alert.log from /home/oracle, which of the following methods can achieve the purpose ()

find /home./oracle -name alert.log

locate alert.log

find ./ -mtime 7 alert.log

find /home/oracle -exec alert.log

1.1.1.34 Which of the following commands can be used to test whether port 80 of a specific host in the network can be accessed ()

Ping telnet netstat lsof

1.1.2 Fill in the blanks

1.1.2.1 What command is used to test the connectivity of the host in the network

1.1.2.2 How to check whether numa is closed **

1.1.2.3 Archive and compress the /home/stud1/wang directory, generate the wang.tar.gz file after compression, and save this file in the /home directory to achieve the tar command format for this task_**

1.1.2.4 A process uses port 7001, how to quickly find the PID of the process

1.1.2.5 The command to end the background process is _

1.1.2.6 Archive and compress the /home/studl/wang directory, generate the wang.tar.gz file after compression, and save it in the /home directory to achieve the tar command format for this task ** __ **

1.1.2.7 ping 100 packets command——

1.1.2.8 Under linux, the command to decompress bz2 format files is _

1.1.2.9 Under linux, the command to view the network connection status is ___

1.1.2.10 The Linux command to view the file system is __, and the command to display the disk occupied by a directory or file is ___

1.1.2.11 Usually we use the ping command to test network connectivity, it works through the ____ protocol

1.1.2.12 Briefly describe the respective functions of the following commands

nslookup

you

top

traceroute

1.1.2.13 Archive and compress the /home/stud1/wang directory, and generate the wang.tar.gz file after compression, and save the quotation in the /home directory to achieve this task tar command format ** _ **

1.1.2.14 Linux system command to view the number of processes ___

1.1.2.15 Linux system command to view system memory: __,** **

1.1.2.16 Command to view cpu usage in Linux system: __,** **

1.1.2.17 Command for viewing hard disk space usage in Linux system: ___

1.1.2.18 Linux system packs and compresses all .log files under a certain file, the command is ___

1.1.2.19Linux commonly used performance monitoring command is: , , , , , ** ** etc.

1.1.2.20 Assuming that the output program may output standard output and standard error, please write a command to ignore both __

1.1.2.21 rpm package installation command _

1.1.3 Short answer

1.1.3.1 Command to view the display of hard disk structure? View document command? Edit document command?

1.1.3.2 Commands to configure the network environment, manually modify IP, hostname, DNS and gateway

1.1.3.3 There is a compressed package a.tar.gz, how to decompress the package? How to not unzip the package and how to view the contents of the package?

1.1.3.4 A certain process abcd has a lot in the system, and the number is difficult to count, resulting in a high system load. How to ensure that all the processes are killed with one command

1.1.3.5 The path of a log is /data/logs/a.txt. How to track the log to view the current running status?

1.1.3.6 What information is displayed by the dmesg command

1.1.3.7 Find the file named mytest.log

1.1.3.8 Write the difference between du -sh and df -h

1.1.3.9 Check whether the current linux server is listening on port 80. If it is listening, please find out its process ID and end the process.

1.1.3.10 Use curl or wget to get the header information of the http service.

1.1.3.11 Write commands to view the performance of the Linux system, such as cpu, memory, traffic, io, etc.

1.1.3.12 Explain the meaning of the following commands

dd if=/dev/random of=/dev/sda

1.1.3.13 How to view the processes occupying port 8080

1.1.3.14 Check the process that takes up the most memory

1.1.3.15 Compress and decompress directory /opt/gjsy/ all files command

1.1.3.16 How to check the status of programs running on port 8080 under Linxu system

1.1.3. What does VSZ in 17ps aux mean, and what does RSS mean?

1.1.3.18 PING uses the _ protocol in the TCP/IP protocol

1.1.3.19 Write commonly used commands for network troubleshooting __

1.1.3.20 write your favorite network capture tool, the software name __

1.1.3.21 Archive and compress the /home/stud1/wang directory, generate the wang.tar.gz file after compression, and save this file in the /home directory to achieve the tar command format for this task ___

1.1.3.22 Explain the meaning of this command: nohup zcat test.gz|grep "x6game"> ~/log.txt 2> /dev/null &

1.1.3.23 View system hardware load tools or commands

1.1.3.24 Use the lsof command to view the processes occupying port 80

1.1.3.25 How to use CURL to test the POST interface

1.1.3.26 How to find a file with the extension txt under the directory /home/user/training/

1.1.3.27 What are the most commonly used network test commands?

1.1.3.28 What parts are included in the test results of ping?

1.1.3.29 How to find the process and process number occupying port 22?

1.1.3.30 How to delete all files with the suffix of .log created 30 days ago in the current directory (including the word directory)

1.1.3.31 What are the functions of the following Linux commands?

init 0

chkconfig --level 3 sendmail on

tar -czvf test.tar.gz ./

chown -R www.www /usr/local/apache/htdocs

ln -s / data / log / / var / log / sina_log

umount -f /data0

rpm -ivh baihui.rpm

rpm -qf /bin/ls

1.1.3.32 What do the commonly used LINUX commands pwd, top, df, ifconfig, and cat mean?

1.1.3.33 Common Linux commands: What are the commands for shutting down, restarting, editing a document file, deleting a file, and changing the operating system password?

1.1.3.34 Please use the command: delete ordinary files 10 days ago under the /backup directory

1.1.3.35 How to view the list of IP currently connected to the server

1.1.3.36 Write the functions of the five commonly used commands diff, chmod, grep, kill, and tar in the liunx system

1.1.3.37 Briefly describe the error and the cause of the error in the tar -cjvf /tmp/test.tar.gz /root command

1.1.3.38 The Linux system tests from server A to whether a tcp port of server B is connected to use ___

1.1.3.39 Write a script to find the files whose last creation time is 3 days ago and the suffix is ​​*.log and delete them

1.1.3.40 How does linux find the path of the startup program according to the process ID

1.1.3.41 View the process id occupying swap

1.1.3.42 List common Linux packaging tools and write corresponding decompression parameters (at least three)

1.1.3.43 What command is used to lock a file in Linux? What is the difference between he and md5sum?

1.1.3.44 How to find all files with user1 in the system

1.1.3.45 Command to view the amount of disk space occupied by a file or folder

1.1.3.46 How to check how long the remote linux system has been running? What is the memory, cpu, and hard disk of my server, the system version, and Linux will cache data in the memory first. What is the actual memory consumption of my machine?

1.1.3.47 Check which ports are currently open on the server? How to check whether there is IO pressure on a server

1.1.3.48 How to check which processes occupy a certain file system.log

1.1.1.21 After exiting the unix system account, you need to continue to run a certain process, then you can use ()

awk sed crontab nohup screen

1.1.1.20 The purpose of using the trace command is ()

Usable and very successful test method

Very basic testing method

Add IP address and DNS to the routing table

Find the point of divergence in the process of source to target transmission

1.1.1.27 Which variable is used to specify which x server a remote x application puts its output on

TERM

DISPLAY

ECHO

OUTPUT

1.1.1.33P series servers are used as file servers, all user files are stored on a non-rootvg file system, what method can be used to quickly backup and restore these data and file system definitions ()

tar

cpio

savefs

savevg

Guess you like

Origin blog.51cto.com/7681914/2547387