Danh mục

BÀI TẬP TRẮC NGIỆM TIẾNG ANH MÔN HỆ ĐIỀU HÀNH LINUX- TRƯỜNG CD CÔNG NGHỆ THÔNG TIN_4

Số trang: 20      Loại file: pdf      Dung lượng: 144.83 KB      Lượt xem: 12      Lượt tải: 0    
10.10.2023

Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

179.You logged in as user linux1, but now you want to switch users to linux2 with linuxs environment. How would you do this? A. su linux2 B. su -e linux2 C. su - linux2 D. su -m linux2 E. su -f linux2
Nội dung trích xuất từ 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 NGHỆ THÔNG TIN_4 BÀI TẬP TRẮC NGIỆM TIẾNG ANH MÔN HỆ ĐIỀUHÀ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-2011179.You logged in as user linux1, but now you want to switch users tolinux2 with linuxs environment. How would you do this?A. su linux2B. su -e linux2C. su - linux2D. su -m linux2E. su -f linux2Answer: C181.You had a contractor come into your company. You originally sethis account to expire after thirty days. You now need to change this.How can you do this?A. usermod -eB. usermod -aC. usermod -xD. usermod -dAnswer: A185.You want a users account to expire in ten days. What option usedwith the useradd command will allow you to do this?A. -eB. -uC. -dD. -tAnswer: A186.You are adding a new user. You want to create the users homedirectory only if the directory does not exist. Which of the followingwould accomplish this?A. useradd -mB. useradd -h -yC. useradd -uD. useradd -hAnswer: A188.What option is used with the useradd command to specify the usershomedirectory?A. -dB. -hC. -uD. -aAnswer: A189.What command would execute cmd1 followed by cmd2, regardlessof the exit status of cmd1?A. cmd1 cmd2B. cmd1 | cmd2C. cmd1 ; cmd2D. cmd1 && cmd2E. cmd1 || cmd2Answer: C190.You want to run three commands one after the other, but dont carewhat exit they had. What command line would do this?A. cmd1 cmd2 cmd3B. cmd1, cmd2, cmd3C. cmd1: cmd2: cmd3D. cmd1; cmd2; cmd3Answer: D191.What symbol can be placed at the end of a line to indicate that thecommand continues on the next line?A. /B. C. ;D. |E. :Answer: B192.Which command will print line numbers before each line in a file?A. lnB. nlC. cat -nD. numlineAnswer: C193.In order to append the output of ls to a file called bazz, which of thefollowingcommand lines would you use?A. ls > bazzB. ls >& bazzC. ls &> bazzD. ls >> bazzAnswer: D194.Which shell built-in command can be used to create a shortcutorpseudonym for a longer command? Assume a modern bourne-likeshell, such as bash.A. shortcutB. lnC. sudoD. linkE. aliasAnswer: E195.In which file are you likely to find the settings for umask, path, andulimit on a peruser basis?A. /etc/profileB. /etc/bashrcC. ~/.bash_profileD. ~/.bashrcAnswer: C196.Which of the following are executed ONLY during a Login session?Select all that apply.A. /etc/profileB. /etc/bashrcC. ~/.bashrcD. ~/.bash_profileE. ~/.bash_logout Answer: A, B, D197.You installed a beta rpm package, but are experiencing someproblems with it. How can you remove this package?A. rpm -qe rpmnameB. rpm -V --remove rpmnameC. rpm -r rpmnameD. rpm -d rpmnameE. rpm -ev rpmnameAnswer: E198.You want to search the file myfile for all occurrences of a stringcontaining at least five characters, where character number 2 and 5 area and character number 3 is NOT b. Which command would youuse?A. grep a*^b*a myfileB. grep .a[^b].a myfileC. grep .[a].*.[a] myfileD. grep .a*^b..a myfileAnswer: B199.You have to test a new kernel version. Which of the following is thebest way to add a new linux kernel in your system?A. rpm -fvh kernel_packageB. rpm -Uvh kernel_packageC. rpm -u kernel_packageD. rpm -u kernel_package && makeE. rpm --conflicts kernel_packageAnswer: B200.You see following output while trying to install an updated package:[root@example pub]# rpm -i gthumb-2.2.0.i386.rpm package gthumb-1.0.1.i386.rpm is already installed. Which command will allow you toinstall the updated version?A. rpm -i gthumb-2.2.0.i386.rpmB. rpm -ivh gthumb-2.2.0.i386.rpmC. rpm -U gthumb-2.2.0.i3S6.rpmD. rpm -qu gthumb-2.2.0.i386.rpmE. rpm -qiv gthumb-2.2.0.i386.rpmAnswer: C201.You want to preview where the package file, apache- xml.I386.rpm,will install its files before installing it. What command do you issue?A. rpm -qp apache-xml.i386.rpmB. rpm -qv apache-xml.i386.rpmC. rpm -ql apache-xml.i386.rpmD. rpm -qpl apache-xml.i386.rpmAnswer: D202.You have an updated RPM called screensaver-1.1.i386. rpm. Youhave version 1.0 installed. Using RPM, how do you view the changelogof this file to see if you should install the update?A. rpm -qp --changelog screensaver-1.1.i386. rpmB. rpm --changelog screensaver-1.1.i386. rpmC. rpm -qc screensaver-1.1.i386. rpmD. rpm -showchangelog screensaver-1.1.i386. rpmAnswer: B203.Which command will allow you to find a specific installed package?A. rpm -- list rpmnameB. rpm -qvl rpmnameC. rpm rpmnameD. rpm -qv rpmnameE. rpm -f rpmnameAnswer: D204.How can you update a package only if an earlier version is currentlyinstalled on the system?A. rmp -- update rpmnameB. rpm -U rpmnameC. rpm -F rpmnameD. rpm -- force rpmnameE. rpm -u rpmnameAnswer: C205.Which command will create a complete report which you cananalyze for cha ...

Tài liệu được xem nhiều: