BÀI TẬP TRẮC NGIỆM TIẾNG ANH MÔN HỆ ĐIỀU HÀNH LINUX_3 pot

16 414 0
BÀI TẬP TRẮC NGIỆM TIẾNG ANH MÔN HỆ ĐIỀU HÀNH LINUX_3 pot

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

BÀI TẬP TRẮC NGIỆM TIẾNG ANH MÔN HỆ ĐIỀU HÀNH LINUX- TRƯỜNG CD CÔNG NGỆ THÔNG TIN Chuyên ngành: Công nghệ phần mềm Năm học: 2010-2011 122.Which two programs will allow you to change the priority of a program already running? (Choose two) A. top B. nice C. niceit D. renice E. chnice Answer: B, D 123.Which command removes all subdirectories in /tmp, regardless of whether they are non-existent or in use? A. del /tmp/* B. m –rf /tmp C. rm –Ra /tmp/* D. rm –rf /tmp/* E. delete /tmp/*,* Answer: D 124.What utility would use to remove/display columns from each line of a file? A. pwd B. col C. cut D. tail E. extract Answer: C 125.If you set the umask to 022, by default what permissions will your files have? A. 0220 B. 0557 C. 0644 D. 0755 Answer: C 126.Which of the following commands may be used to view PCI devices seen by the Linux kernel? (Choose two) A. less lspci B. less /dev/pci C. less /proc/pci D. less /proc/devices/pci E. lspci | less Answer: C, E 127.You have the following file: -rwxrwxr-x 1 foo root 0 Feb 23 07:48 /bin/foo Which of the following commands will change the owner of the file /bin/foo from the foo user to the bar user without affecting group ownership? A. chown /bin/foo bar B. chown bar /bin/foo C. chown bar.foo /bin/foo D. chown.foo.bar /bin/foo Answer: C 128.Your machine has two working NIC's with proper addresses. You want to split your network into two new subnets. What single command will accomplish this? A. ifconfig B. route C. default D. netstat E. None of the choices Answer: A 129.What command will set a regular users password to force changing it every 60 days? Choose all that apply. A. passwd -x 60 user1 B. chage -M 60 user1 C. passwd +x 60 user1 D. useradd -e 60 user1 E. usermod -f 60 user1 Answer: A, B 130.Where are the default settings for the useradd command kept? A. /etc/default/useradd B. /etc/sysconfig/useradd.cfg C. /etc/.useradd D. /etc/defaults/useradd E. /etc/login.defs Answer: A 131.How can you determine who has scheduled at jobs? A. at –l B. at –q C. at –d D. atwho Answer: A 132.You are covering for another system administrator and one of the users asks you to restore a file for him. You locate the correct tarfile by checking the backup log but you do not know how the directory structure was stored. What command can you use to determine this? A. tar fx tarfile dirname B. tar tvf tarfile filename C. tar ctf tarfile D. tar tvf tarfile Answer: D 133. You need to find out which package owns a file called /etc/paper.config. Which command will answer this question? A. rpm -qf /etc/paper.config B. rpm –qa | grep /etc/paper.config C. rpm -Fq /etc/paper.config D. rpm -q /etc/paper.config E. rpm requires /etc/paper.config 134. Which of the following TCP/IP network utilities is the BEST tool to use to establish if a given IP address is reachable under the current network configuration? A. ping B. finger C. route D. host 135.How could you monitor the amount of free inodes on /dev/hda3 ? A. inode free /dev/hda3 B. ls -i /dev/hda3 C. du -i /dev/hda3 D. ** -i /dev/hda3 E. df -i /dev/hda3 136. You want to install the tarball foobar.tar.bz2. What command would unpack the achive? A. tar x foobar.tar.bz2 B. untar foobar.tar.bz2 C. tar tzvf foobar.tar.bz2 D. tar xjf foobar.tar.bz2 E. bzcat foobar.tar.bz2 | tar xf – 137.You have to move the whole directory-tree /home/foo to /oldusers. What command would you use? A. move /home/foo /oldusers B. mv /home/foo /oldusers C. mv -r /home/foo /oldusers D. mv -R /home/foo /oldusers E. cp move /home/foo /oldusers 138.You want to stop the inetd process immediately. It has a process id of 15. How would you do this? A. kill -9 15 B. kill -15 9 C. kill -1 15 D. kill -3 15 139. How could you display any line of text from the file foo which starts with an upcase letter? A. grep "^[A-Z]" foo B. grep "[A-Z]" foo C. grep "$[A-Z]" foo D. grep [A-Z] foo 140.You want to list the contents of the directory “directory1” with any errors going to the file “error1”. How would you do this? A. ls directory1 0>error1 B. ls directory1 2>error1 C. ls directory1 >error1 D. ls directory1 1>error1 141.What is the default priority that processes start with? A. 1 B. 100 C. 0 D. 10 142.What would you type to mount an MS-DOS formatted floppy (without relying on /etc/fstab shortcuts)? A. mount /mnt/floppy B. mount -t msdos /mnt/floppy /dev/fd0 C. mount /dev/fd0 /mnt/floppy D. mount -t vfat /dev/fd0 /mnt/floppy 143. Which command creates a soft link? A. link –s B. link –soft C. ln –soft D. ln –s 144. . You have a text file named mytextfile. How would you sort the lines of file in reverse alphabetical order? A. sort –a mytextfile B. sort mytextfile C. sort –r mytextfile D. sort –ra mytextfile 145.Using vi, you want to save changes to the file myfile with :w!, but vi complains it cannot write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type: A. :!ls -l myfile B. :\ls -l myfile C. esc :ls -l myfile D. :?ls -l myfile Answer: A 146.While using the vi editor, you wish to move ahead one page. You should press the control key and: A. A B. D C. F D. U Answer: C 147.Type in the VI command line that would open the file mytestfile.txt and line number it? Answer: vi +"set number" mytestfile.txt Answer: -vi mytestfile.txt +"set number" Answer: vi "+set number" mytestfile.txt Answer: vi mytestfile.txt "+set number" 148.Select all the ways of exiting and saving a vi session. A. :wq B. :w C. :ZZ D. Shift ZZ E. F. :exit Answer: A, D, E 149.A user needs to search a file for lines that contain the asterisk character. Which grep search command will accomplish this? Choose all that apply. A. grep \* textfile B. grep '*' textfile C. grep "*" textfile D. grep \<*\> textfile E. grep "'*'" textfile Answer: A, B, C 150.Which command would you use to change the priority of a running process? A. renice B. nice C. kill D. pstree E. killall Answer: A 151.Which two programs will allow you to change the priority of a program already running? A. top B. nice C. niceit D. renice E. chnice Answer: A, D 152.You wish to kill a process with a PID of 123. Select the command, which will allow the process to "clean up" before exiting. A. kill -1123 B. kill -9123 C. kill -15123 D. kill -17123 Answer: C 153.What command changes the priority of the process running with process id of 12345 to the highest priority? A. /usr/bin/renice +20 1234 B. /usr/bin/renice -20 12345 C. /bin/setpriority +20 12345 D. /bin/setpriority -20 12345 Answer: B 154.What key sequence will suspend the current process and return you to a shell prompt? A. Ctrl-z B. Ctrl-c C. Ctrl-x D. Ctrl-d Answer: A 155.Which of the following commands is equivalent to kill 1234? A. kill -1 1234 or kill -s SIGHUP 1234 B. kill -2 1234 or kill -s SIGINT 1234 C. kill -3 1234 or kill -s SIGQUIT 1234 D. kill -9 1234 or kill -s SIGKILL 1234 E. kill -15 1234 or kill -s SIGTERM 1234 Answer: E 156.What is the default process priority when a process is started using the nice command? . BÀI TẬP TRẮC NGIỆM TIẾNG ANH MÔN HỆ ĐIỀU HÀNH LINUX- TRƯỜNG CD CÔNG NGỆ THÔNG TIN Chuyên ngành: Công nghệ phần mềm Năm học: 2010-2011 122.Which. kill 1 234 ? A. kill -1 1 234 or kill -s SIGHUP 1 234 B. kill -2 1 234 or kill -s SIGINT 1 234 C. kill -3 1 234 or kill -s SIGQUIT 1 234 D. kill -9 1 234 or kill -s SIGKILL 1 234 E. kill -15 1 234 or. D. host 135 .How could you monitor the amount of free inodes on /dev/hda3 ? A. inode free /dev/hda3 B. ls -i /dev/hda3 C. du -i /dev/hda3 D. ** -i /dev/hda3 E. df -i /dev/hda3 136 . You want

Ngày đăng: 27/07/2014, 15:21

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan