Linux questions (with answers)

Source: Internet
Author: User
Linux-general technology-Linux technology and application information. For more information, see the following. (B) 1. Which command can be used to create the abbreviation or alias of a command?
A. awk
B. alias
C. echo
D. alien
(D) 2. Which of the following directories is first entered after logging on to the system?
A./home
B. root main directory
C./root
D. user's home directory
(A) 3. the system configuration file is in the ______ directory.
A./etc
B./home
C./usr
D./dev
(D) 4. Which command can be used to find lines containing only four characters in the file TESTFILE?
A. grep '???? 'Testfile
B. grep '... 'testfile
C. grep '^ ???? $ 'Testfile
D. grep '^... $ 'testfile
(B) 5. Which of the following programs is run after the Linux kernel detects and activates swap partitions?
A./sbin/reboot
B./sbin/init
C./sbin/startup
D./bin/sh
(B) 6. With "rm-I", the system will prompt you for confirmation.
A. Each option of the command line
B. Are you sure you want to delete it?
C. Is there write permission?
D. File Location
(A) 7. Which of the following commands can be used to switch files without exiting the vi editor?
A.: e for edit command
B. map command
C. export command
D. set command
(B) 8. Unless otherwise specified, cp assumes that the file to be copied is in the directory below
A. home Directory
B. Current Directory
C. root directory
D. user directory
(B) 9. The founder of Linux is a student at Helsinki University in Finland. Who is he?
A. Andrew Tanenbaum
B. Linus Torvalds
C. Bill Gates
D. Richard Stallman
(A) 10. Which of the following commands is A full-screen text editor?
A. vi
B. ed
C. pr
D. cw
(C) 11. Which of the following options can be used to explain Linux commands?
A. Core
B. User Interface
C. shell
D. Application Manager
(A) 12. What are the characters required to run multiple commands in one line?
A .;
B. $
C .*
D .@
(D) 13. In the vi Editor, run the "dd" command to delete the current?
A. Word
B. Character
C. Variables
D. Rows
(B) 14. Which shell is used in Turbolinux?
A. tcsh
B. bash
C. ash
D. csh
(B) 15. If you get a message that the command is denied, which command can you use to modify its permissions so that it can run properly?
A. path =
B. chmod
C. chgrp
D. chown
(A) 16. What is the command for displaying the user's main directory?
A. echo $ HOME (uppercase)
B. echo $ USERDIR
C. echo $ ECHO
D. echo $ ENV
(D) 17. What is the unique identifier of the Linux file and directory?
A. maps
B. stems
C. keys
D. inodes Node
(A) 18. What are the characters used to separate the directory name and file name?
A. backslash (/)
B. Period (.)
C. Minus (-)
D. asterisk (*)
(C) 19. Determine the file type command of myfile
A. type myfile
B. type-q myfile
C. file myfile
D. whatis myfile
(A) 20. What is the default shell in Linux?
A. bash
B. ash
C. csh
D. gnush
(D) 21. Which command is used to delete characters at the cursor in vi Mode?
A. dd
B. d
C. xd
D. x
(C) 22. How to Use the letter "new" instead of the letter "old" to open a file with vi"
A.: r/old/new
B.: s/old/new
C.: 1, $ s/old/new/g
D.: s/old/new/g
(B) 23. In the vi Editor, which command can move the cursor over 200th lines?
A.200g
B: 200
C. g200
D. G200
(B) 24. Which of the following keys can be used to abort the currently running command?
A. Ctrl-D
B. Ctrl-C
C. Ctrl-B
D. Ctrl-F
(C) 25. Use the standard output redirection (>) image "> file01" to make the data of the file file01 _____
A. copied
B. Moved
C. Overwrite
D. Printed
(B) 26. Which symbol can be used to execute the program in the background after the command?
A .@
B .&
C .#
D .*
(B) 27. to execute a command through shell, you must first input _____
A. Parameters
B. Commands
C. Operators
D. terminal ID
(B) 28. Which of the following programs can execute commands in certain order?
A. shell variable
B. shell script
C. Pipelines
D. shell syntax
(D) 29. in Linux, which is the command interpreter?
A. MPS queue
B. Hierarchical File System
C. Balanced Processor
D. shell
(D) 30. in Linux, when "link" is used, which of the following options can be used to access a file?
A. Only one name can be used.
B. No more than two names
C. Each directory can only be one name
D. Two or more names
(A) 31. When you log on to Linux, A shell with A unique process ID will be called.
What is ID?
A. PID
B. UID
C. NID
D. CID
(B) 32. Which command can convert a common user to a Super User?
A. super
B. su
C.tar
D. passwd
(D) 33. What is the first line of a bash shell script?
A. #/bin/csh
B. #/bin/bash
C./bin/bash
D .#! /Bin/bash
(C) 34. Which of the following commands can convert uppercase letters into lowercase letters?
A. upper
B. translate
C. tr
D. lower
(D) 35. Which of the following commands is used to define the global variables of shell?
A. alias
B. exports
C. exportfs
D. export
(B) 36. How can I find the directory where system-config-network is located?
A. whereis system-config-network
B. which system-config-network
C. look system-config-network
D. show system-config-network
Asdasd (A) 37. Which of the following commands can display the content of A text file (test) and display it from the back to the front?
A. tac test
B. cat test
C. vi test
D. tail test
(B) 38. Which of the following commands can be used to print the current working directory?
A. cd
B. pwd
C. ls
D. ls-l
(C) 39. this machine has two hard disks, which are placed on the primary disks of IDE1 and IDE2 respectively. The primary disks mounted on IDE2 have three primary partitions, in Grub, the name of the second primary partition of the primary disk on IDE2 is:
A. hdb2
B. hd2
C. hd2, 1
D. hd3, 2
(C) 40. this machine has two hard disks, which are placed on the primary disks of IDE1 and IDE2 respectively. The primary disks mounted on IDE2 have three primary partitions, in Linux, the name of the second primary partition of the primary disk on IDE2 is:
A. hda2
B. hdb2
C. hdc2
D. hdd2
(A) 41. Which of the following commands can be used to list the current resource settings?
A. xrdb-query
B. show lib
C. xrdb-load
D. xrdb-lib
(D) 42. In which file does the configuration information of the Xorg server be stored? You can change the display mode of X window by changing the information in this configuration file.
A./etc/xorg. conf
B./etc/inittab
C./etc/X11
D./etc/X11/xorg. conf
(B) 43. Which of the following commands can be used to change the current window manager to gnome?
A. Change gnome
B. switchdesk gnome
C. gnome
D. system-config-display
(B) the protocols used internally in the 44.X window system are
A. TCP/IP
B. X Protocol
C. IPX/SPX Protocol
D. NetBEUI Protocol
(C) 45. In some emergency situations, which buttons can we use to close X window?
A. Ctrl + c
B. Ctrl + d
C. Ctrl + Alt + Backspace
D. Ctrl + Alt + del
(C) 46. In the graphic interface of Turbolinux, which of the following tools can be used to uninstall a software package?
A. system-config-kdump
B. system-config-authentication
C. system-config-packages
D. system-config-securitylevel
(B) 47. Which of the following tools can be used to configure services at a running level under the graphic interface of Turbolinux?
A. system-config-boot
B. system-config-services
C. system-config-display
D. system-config-network
(B) 48. Linux installation requires at least several partitions
A.1
B .2
C.3
D.4
(B) 49. Which operation can be used to interrupt the currently running command?
A. Ctrl +
B. Ctrl + c
C. Ctrl + d
D. Ctrl + q
(B) 50. Which type of user logon is recommended in daily use of Linux?
A. Authenticate the user
B. Common users
C. Process User
D. superuser
(C) 51. in Linux, the Directory of the resource configuration file is
A./bin
B./home
C./etc
D./boot
(A) 52. What is the interactive command interpreter in Linux?
A. shell
B. she
C.X window
D. init
(A) 53. Which of the following options can cancel the shutdown command?
A. shutdown-c
B. shutdown-x
C. shutdown-u
D. shutdown-n
(B) 54. We can modify the default startup level to _______ to enable automatic acquisition after the system is restarted.
Use XWindow to log on.
A.3
B .5
C.2
D.1
(A) 55. init to start the process, which of the following configuration files must be read.
A./etc/inittab
B. sbin/init
C./etc/sysvinit
D./bin/sh
(C) 56. Once the root file system is installed, the kernel starts the program named ___, which is the first program to run after the guidance process is complete.
A. login
B. rc. d
C. init
D. startup
(A) 57. What is the command to unmount the CD/dev/hdc?
A. umount/dev/hdc
B. unmount/dev/hdc
C. umount/mnt/cdrom/dev/hdc
D. unmount/mnt/cdrom/dev/hdc
(C) 58. What is the command to install the CD CD-ROM (hdc) to the/mnt/cdrom directory of the file system?
A. mount/mnt/cdrom
B. mount/mnt/cdrom/dev/hdc
C. mount/dev/hdc/mnt/cdrom
D. mount/dev/hdc
(B) 59. If the system starts to run level 3, which of the following scripts is executed first in the/etc/rc. d/rc3.d/directory?
A. K20rwhod
B. S30syslog
C. K96pcmcia
D. S99linuxcof
(B) 60. What command is used to view the space occupied by the hard disk and the remaining space?
A. du
B. df
C. free
D. vmstat
(C) 61. What is the command to force the disk to be saved and exited when the vi is used to edit the text read-only?
A.: w!
B.: q!
C.: wq!
D.: e!
(A) 62. Which of the following scripts (relative paths) run first when the system is started?
A. rc. sysinit
B. sysinit
C. rc. local
D. inittab
(D) 63. Which running level is used to restart the system?
A.1
B .2
C.4
D.6
(D) 64. Which of the following buttons is used to switch the console?
A. Alt + Ctrl
B. Alt + ESC
C. Ctrl + F #
D. Alt + F #
(D) 65. Which command can be used to transfer the system to a text control terminal if the system is started graphically by default?
A. level
B. runlevel
C. stopx
D. init 3
(D) 66. Which of the following files can view the running level of the current system?
A./etc/rc. d/rc/local
B./etc/rc. d/rc/sysinit
C./etc/fstab
D./etc/inittab
(D) 67. Which command can change the password of user larry when using root login?
A. Su larry
B. change password larry
C. password larry
D. passwd larry
(D) 68. The system boot process generally includes the following steps:
1) User Login 2) Linux operating system kernel run 3) Grub in MBR start 4) Init process run 5) BIOS self-check. Which of the following is the correct order?
A.1 2 3 4 5
B .5 1 2 3 4
C.5 2 3 4 1
D.5 3 2 4 1
(C) 69. Which function is executed at runtime Level 2?
A. restart the system.
B. Single-User System Management Mode
C. Multi-user mode not supported by nfs
D. Complete Multi-user mode with network and graphics Functions
(B) 70. Which linux utility is generally responsible for loading the core?
A. boot
B. Grub
C. loadin
D. vmlinuz
(A) 71. Can you use the ______ command to view the current running level?
A./sbin/runlevel
B./sbin/fdisk
C./sbin/fsck
D./sbin/halt
(C) 72. How many virtual user terminals can be switched using ALT + F * when running in multi-user mode?
A.1
B .3
C.6
D.12
(B) 73. Who provided most of the management tools, including linux release?
A. Microsoft
B. GNU
C. Novell
D. Solaris
(C) 74. Which of the following statements about Linux commands is correct?
A. It is not case sensitive.
B. All are in uppercase.
C. Case Sensitive
D. All are in lower case.
(B) 75. Which command is used to display the file name in/home and Its subdirectories?
A. ls-a/home (hide)
B. ls-R/home
C. ls-l/home (list object attributes)
D. ls-d/home (directory)
(D) 76. What does startup Level 3 represent?
A. disable the system.
B. Single-User Management Mode
C. Multi-user mode without network functions
D. Multi-user mode with network functions
(A) 77. Use the "useradd jerry" command to add A user. What is the main directory of this user?
A./home/jerry
B./bin/jerry
C./var/jerry
D./etc/jerry
(C) 78. What does the command "tail myfile" mean?
A. It sets A flag at the end of myfile to prevent it from being appended.
B. It displays the first 10 rows of myfile.
C. It displays the last 10 rows of myfile.
D. It displays the modification history of myfile.
(C) 79. What permissions should I grant to access a specified directory freely?
A. drw
B. rw
C. drwx
D. Dx
(A) 80. What is the directory for storing basic Linux commands?
A./bin
B./tmp
C./lib
D./root
(D) 81. Assuming that the kernel supports vfat partitions, which of the following operations is to load/dev/had1 and a Windows98 partition to the/win directory?
A. mount-t windows/win/dev/hda1
B. mount-fs = msdos/dev/hda1/win
C. mount-s win/dev/hda1/win
D. mount-t vfat/dev/hda1/win
(A) 82. Which directory stores user password information?
A./etc
B./var
C./dev
D./boot
(C) 83. What is the Linux core license?
A. NDA
B. GDP
C. GPL
D. GNU
(D) 84. Who is the founder of Linux?
A. Turbolinux
B. AT&T Bell Laboratry
C. University of Helsinki
D. Linus Torvalds
(A) 85. If the current directory is/home/sea/china, which directory is the parent directory of "china "?
A./home/sea
B./home/
C ./
D./sea
(B) 86. Which of the following statements about the vi editor is incorrect?
A. in command mode, keyboard input is considered as A command.
B. In text input mode, the keyboard input is regarded as text, and the shift key can be used to switch to the command mode.
C. In Search and extended command mode, you need to type a command at the bottom of the screen and press ENTER to execute.
The D. vi editor is highly versatile and can be used on various terminals without rewriting.
(A) 87. The Sort command is A very powerful sorting program. Which of the following statements is correct?
A. The default value is ascending: uppercase letters and lowercase letters with spaces
B. The default value is ascending: Numbers, spaces, uppercase letters, lowercase letters
C. in descending order by default: uppercase letters and lowercase letters with spaces
D. The default value is in descending order: space, numbers, lowercase letters, uppercase letters
(B) 88. In the standard input and output, stdin, stdout, and stderr correspond to numbers respectively:
A.1, 2, 3
B .0, 1, 2
C.2, 1, 3
D.1, 2, 0
(A) 89. chmod 755 what is the permission for file1 to set permissions?
A. rwxr-xr-x
B. r-xr-x
C. rw-r-xr-x
D. rwxr-x -- x
(A) 90. Which command can be used to delete A directory and delete all its subdirectories and files?
A. rm-r
B. mkdir
C. touch
D. rmdir
(C) 91. If the current directory is/home/zhang/qiuqiu, which directory is the parent directory of "qiuqiu? ()
A./home/
B./zhang
C./home/zhang
D ./
(A) 92. Which command can be used to create the abbreviation or alias of A command?
A. alias
B. alien
C. awk
D. echo
(A) 93. Which of the following commands can convert uppercase letters into lowercase letters?
A. tr
B. upper
C. lower
D. translate
(D) 94. Which of the following directories should I first enter after logging on to the system?
A. root main directory
B./root
C./home
D. user's home directory
(A) 95. What is the directory for storing basic Linux commands?
A./bin
B./lib
C./root
D./tmp
(D) 96. Use standard output redirection (>) like ""> test "" to make the file test data?
A. Moved
B. copied
C. Printed
D. Overwrite
(C) 97. Run the "" useradd momo "" command to add a user. What is the main directory of this user?
A./etc/momo
B./var/momo
C./home/momo
D./bin/momo
(A) 98. Which shell is used in Turbolinux?
A. bash
B. csh
C. tcsh
D. ash
(B) 99. Which of the following options can be used to explain linux commands?
A. Application Manager
B. shell
C. Core
D. User Interface
(B) 100. Which of the following commands is used to start X window?
A. runx
B. startx
C. openx
D. xwin
(D) 101. What does runlevel 3 represent?
A. Single User Management Mode
B. Multi-user mode without network functions
C. Shut down the system
D. Multi-user mode with network functions
(C) 102. What characters should I use to separate multiple commands in one line?
A .@
B. $
C .;
D .*
(A) 103. In the vi editor, the command "" dd "" is used to delete the current?
A. Rows
B. Variables
C. Capital
D. Character
(B) 104. In vi mode, which command is used to delete characters at the cursor?
A. xd
B. x
C. dd
D. d
(C) 105. Which linux utility is usually responsible for loading the core?
A. boot
B. vmlinux
C. lilo
D. loadin
(C) 106. How can I replace the letter "a" with the letter "B" "When opening a file with vi ""?
A.; s./a/B/g
B.: s/a/B
C.: 1, $ s/a/B/g
D.: r/a/B
(A) 107. What is the default shell in linux?
A. bash
B. csh
C. gnush
D. ash
(D) 108. Which of the following commands can be used to redirect the output of the pipeline to the standard output and specified files?
A. wee
B. cat
C. less
D. tee
(C) 109. What does the "tail myfile'' "command mean?
A. It displays the first 10 rows of myfile.
B. It sets a flag at the end of myfile to prevent it from being appended.
C. It displays the last 10 rows of myfile
D. It displays the modification history of myfile.
(C) 110. Under what directory is the system configuration file?
A./home
B./dev
C./etc
D./usr
(D) 111. If you get a message that the command is denied, which command can you use to modify its permissions so that it can run properly?
A. path =
B. chown
C. chgrp
D. chmod
(A) 112. Which of the following programs is used to select the window manager and workbench environment _____.
A. turbowmcfg
B. turbohwdetect
C. turboservice
D. turboFScfg
(A) 113. Which of the following commands can shut down the linux system normally?
A. init 0
B. shutdpwn-r now
C. init 6
D. shutdown-h
(A) 114. The third logical partition of the first IDE hard disk is _____.
A./dev/hda7
B./dev/hda3
C./dev/hda5
D./dev/fd7
(B) What command is used to run the 115./etc/rc. d/Script script that starts with K?
A. start
B. stop
C. on
D. off
(A) 116. Which of the following commands can switch from the current running level to level 2?
A. init 2
B. level 2
C. inittab 2
D. runlevel 2
(A) 117. Which of the following files represents the system initialization information?
A./etc/inittab
B./etc/init
C./etc/proc
D./etc/lilo. conf
(D) 118. Which of the following running levels represents the startup of multiple users with network functions?
A.0
B .1
C.2
D.3
(B) 119. Which of the following methods can interrupt running applications?
A. Press Ctrl-.
B. Press Ctrl-C.
C. Press Ctrl-F.
D. Press Ctrl + H.
(A) 120. Which of the following files is the configuration file of X server?
A. XF86Config
B. XF86CONFIG
C. xf86config
D. XF86config
(A) 121. What are the most important components in the X Window System?
A.X Server
B. Window Manager
C. Display Manager
D. X client
(D) 122. Which of the following tools can be used in both root and normal user environments?
A. turbopkg
B. turboxcfg
C. turbonetcfg
D. turbowmcfg
(D) 123. Which of the following tools can be used to view and set
?
A. turbohwdetect
B. turboxcfg
C. turbonetcfg
D. turboservice
(B) 124. The command for creating an installation disk in Linux is ____.
A. ls
B. dd
C. mkdir
D. rawite
(C) 125. Which of the following statements about Linux commands is true ____.
A. Both use uppercase letters
B. All are in lower case.
C. Case Sensitive
D. Case Insensitive
(B) 126. The normal user's prompt is ___.
A .#
B. $
C.>
D. <
(D) 127. What is a Linux system?
A. Single User
B. Multi-user single task
C. Single User multitasking
D. Multi-User multitasking
(B) 128. the Linux kernel version license is ____.
A. GNU
B. GPL
C. NDA
D. MS
(C) 129. Who is the founder of Linux?
A. Bill Gates
B. Bell Laboratry
C. Linuz Torvalds
D. Turbolinux
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.