Danh mục

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

Số trang: 18      Loại file: pdf      Dung lượng: 87.38 KB      Lượt xem: 8      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:

68.You are adding a new user. You want to create the users home directory only if the directory does not exist. Which of the following would accomplish this? A. useradd -m B. useradd -h -y
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_2 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-201168.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: A69.Which of the following can be used to switch your system to runlevel 1?A. init 1B. inittab 1C. rlevel 1D. level 1Answer: A70.What run level represents administration mode?A. 0B. 1C. 6D. 5Answer: B71.What file does init processes use as its control file?A. /etc/inittabB. /etc/procC. /etc/initD. /etc/initprocAnswer: A72.Which of the following commands can be used to create a tar archivefile in verbose mode?A. tar -vB. tar -cvfC. tar -cD. tar -vfAnswer: B73.What option is used with the useradd command to specify the userslogin shell?A. -sB. -lC. -uD. –shAnswer: A74.Which of the following can be used to change a users homedirectory?A. usermod -dB. usermod -hC. usermod -uD. usermod -cAnswer: A75.Which of the following commands can be used to extract a tar file?A. tar -vfB. tar -xvfC. tar -eD. tar -vAnswer: B76.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: A77.What command can be used to find the current run level?A. runlevelB. levelC. show levelD. rlevelAnswer: A78.What switch is used with the useradd command to specify a usersinitial group?A. -gB. -iC. -uD. –igAnswer: A79.What run level represents a power down?A. 5B. 0C. 1D. 4Answer: B80.What run level represents a system reboot?A. 6B. 1C. 2D. 5Answer: A81.You want to find out what files are contained in a tar file. How wouldyou do this?A. Use the tar command with the -t switchB. Use the tar command with the -r switchC. Use the grep commandD. Use the find commandAnswer: A82.When a user executes the command ps ax, what is shown on theconsole? Choose atl that apply.A. Processs user-related informationB. Processes without controlling terminalsC. Processes used by the XFree86 SystemD. All regular processesE. Processes on remote machinesAnswer: B, D83.What will the command kill -HUP 1354 do?A. Kill the process 1354 destructivelyB. Kill the process 1354, allowing cleanup of memoryC. Restart the process 1354, re-reading its config filesD. Restart the process 1354, resetting its associated modemAnswer: C84.You need to have all the output from the executable myprog writtento a text log named file1.out. This program must not send any output tothe console. Which of the commands listed will accomplish this?A. myprog > file1.out 2>&1B. myprog > file1.out 1>&2C. myprog > file1.out 1> /dev/nullD. myprog 1&2> file1.outE. myprog 1> /dev/null > file1.outAnswer: A85.What are the default permissions for the Red Hat /etc/passwd file?A. 644B. 640C. 400D. 641E. 440Answer: A86.What are the default permissions on the Red Hat /etc/shadow file?A. 644B. 600C. 400D. 444E. 640Answer: C87.What are the default permissions on the Debian /etc/passwd file?A. 644B. 640C. 777D. 700E. 400Answer: A88.What are the default permissions on the Debian /etc/shadow file?A. 654B. 640C. 400D. 644E. 540Answer: B89.Which of the following directories would be the least likely to needbacking up? Choose Two.A. /usrB. /etcC. /homeD. /tmpE. /swapAnswer: D, E90.Which of the following will copy file1.txt to file2.txt? Choose Two.A. cat file1.txt > file2.txtB. cat file1.txt | file2.txtC. cp file1.txt > file2.txtD. cp file1.txt file2.txtE. cpio < file1.txt > file2.txtAnswer: A, D91.When you create a new file, the permissions show as 654. What valueis the umask likely set at?A. 012B. 002C. 123D. 022Answer: A92.When you create a new directory, you see the permissions are set to600. What umask value wouldcause this to happen?A. 177B. 066C. 244D. 155E. 333Answer: A93.You need to display all files in the current directory that start with aa and end with a v,regardless of their length or use of delimiters. Choose the best answer.A. ls a*vB. ls a.vC. ls a-vD. ls [a-v]Answer: A94.What command with switches will display the disk utilization for allmounted file systems?A. dfB. vmstatC. duD. topE. freeAnswer: A95.Which command will show the number of free and used inodes foryour systems mounted filesystems?A. du -iB. df -iC. ls -iR /D. freeinodesAnswer: B96.Which of the commands will show you only the middle 10 lines of a30 line text file named textfile?A. head -n 11-20 textfileB. head -n 20 textfile | tailC. tail -n 11-20D. cat textfile | pr -n 11-20E. nl -n 11-30 textfileAnswer: B97.Which command ...

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