Linux operating commands for Linux operating system multiple choice questions

knowledge points title Answer Option A option B Option C option D
Linux basic operation commands The cd command can change the user's current directory, when the user types the command "cd" and presses the Enter key C Change the current directory to the root directory The current directory remains unchanged, and the screen displays the current directory Change the current directory to the user's home directory Change the current directory to the previous directory
Linux basic operation commands What is the command to display the user's current directory? A pwd ps ls uname
Linux basic operation commands What characters need to be used to separate multiple commands in one line C @ $ ; *
Linux basic operation commands Which command can be combined to count how many users log in to the system B who| WC –W who|wc who |wc-c who| count
Linux basic operation commands The ls command form options that show hidden files are A ls -a ls - d ls -h ls -l
Linux basic operation commands Which command is used to display the file names in /home and its subdirectories A ls -R /home ls -d /home ls -a /home ls -l /home
Linux basic operation commands Which of the following commands can be used to redirect the output of a pipe to standard output and a specified file D wee cat less tee
Linux basic operation commands Using standard output redirection (> ) like "> file01 " can make the data of file file01 D was moved copied to be printed covered
Linux basic operation commands Which of the following commands is used to start X Window C runx Startx startX blood
Linux basic operation commands Press the ( ) key to terminate the currently running command A Ctrl-C Ctrl-F Ctrl-B Ctrl-D
Linux basic operation commands Unless otherwise specified, cp assumes that the file to be copied is in which of the following directories D user home directory home directory root directory Current directory
Linux basic operation commands Among the following commands, the command that cannot display the contents of the text file is D more less tail join
Linux basic operation commands In the redhat Linux system, which of the following commands can be used to view the kernel version information: D check ls kernel kernel uname
Linux basic operation commands Which of the following options can shut down? A init 0 init 1 init 5 init 6
Linux basic operation commands The Linux system terminal can be opened with the key combination ( ). B Ctrl+C Ctrl+Alt+T up arrow key Alt+T 
Linux basic operation commands Use the ( ) key to automatically align commands? A Tab up down
Linux basic operation commands The command to view the current system path is ( ). C echo  $HOME  echo  $SHELL echo  $PATH echo  $HOSTNAME
Linux basic operation commands The command to compress all directories starting with f and their subdirectories under the current directory into tt.zip is ( ). D zip tt.zip   f*.*   zip   tt.zip   f* zip  -r  tt.zip   f*.* zip  -r  tt.zip   f*
Linux basic operation commands Unzip tt.rar to the current directory, and create a subdirectory, the command is ( ). C tar -c tt.rar takes -e tt.rar tar -x tt.rar takes -a tt.rar
Linux basic operation commands Use the tar command to compress all files starting with f and extension py in the main directory to test.tar, with gzip compression attribute, and display the compression process, the correct one is ( ). D tar -cjvf test.tar f*.py  tar -xzvf test.tar f*.py tar -xjvf test.tar f*.py  tar  -czvf  test.tar  f*.py
Linux basic operation commands Which of the following commands can copy file f1 to f2? C cp f1 | f2  cat f1 | f2  cat f1 > f2 copy f1 f2 
Linux basic operation commands When the user types cd and presses enter ( ) B The previous directory is the root directory Change the current directory to the user's home directory Change the current directory to the previous directory The current directory has not changed, and the screen displays the current directory
Linux basic operation commands The command to view only the hostname of the Linux system is ( ). A hostname ifconfig uname ps 
Linux basic operation commands To list all files (including hidden files) in a directory, what is the command to use? B ls -l  ls -a  ls -F  ls -r
Linux basic operation commands View the current path command as () C ls ps pwd cd
Linux basic operation commands Which command can move files and directories and also rename files and directories? B cp mv chmod cat
Linux basic operation commands The () command is used to display the file names under /home and its subdirectories. B ls -a /home ls -R /home ls -l /home ls -d /home
Linux basic operation commands If you forget the usage of the ls command, you can use the ( ) command to get help. C ?ls help ls man ls get ls
Linux basic operation commands Linux中有多个查看文件的命令,如果希望在查看文件内容过程中用光标可以上下移动来查看文件内容,则符合要求的那一个命令是(    )。 C cat more less head
Linux基本操作命令 (    )命令可以把f1.txt复制为f2.txt。 C cp f1.txt | f2.txt cat f1.txt | f2.txt  cat f1.txt > f2.txt copy f1.txt | f2.txt

Guess you like

Origin blog.csdn.net/qq_64314976/article/details/131433318