资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,2011-11-6,#,答案:,B,Which command lists all files in the/home file system?,A.find .-name /home,B.find /home -print,C.find .-name all,D.find /home -type all,答案:,B,Which of the following commands should be used to list all files in the root filesystem that are named.profile?,A.find .-name .profile,B.find /-name .profile -print,C.find *-name “*profile”-ls,D.find ./.profile -exec ls -l,答案:,A,What is the function of the dot in the,“find .-print”command?,A.searches a relative path,B.uses absolute path for its search,C.restricts the search to two directory levels,D.starts the search from the parent directory,What is the function of the dot in the,“,find.,print,”,command?,searches a relative path,uses absolute path for its search,restricts the search to two directory levels,starts the search from the parent directory,答案:,C,Which of the following commands should be used to list all files in the current directory that have been changed during the current 24-hour period?,A.find /-ls -name“*”-print,B.find .-mtime 24 -ls,C.find .-ctime 1 -print,D.find ./-mtime 24 -ls,答案:,C,What is displayed by the command grep v“#”?,A.all lines that begin with a,B.all lines that begin with a or#,C.all lines that do not begin with a#,D.lines that do not begin with a#or,答案:,D,Which command will display all lines in file1 that begin with the string abc and end with the string xyz?,A.grep “abc*xyz$”file1,B.grep abc*xyzn file1,C.grep abc file1|grep -v xyz$file1,D.grep “abc”file1|grep “xyz$”,答案:,B,Which command will display all lines in file1 that,contain the string abc but NOT the string xyz?,A.grep -E“abc&!xyz”file1,B.grep abc file1|grep -v xyz,C.grep abcxyz file1,D.grep -v xyz “abc”file1,答案:,B,Which command will display all lines in file1 that,contain either the string abc or the string xyz?,A.grep abc file1|grep xyz file1,B.grep -E “abc|xyz”file1,C.grep abc-xyz file1,D.grep abc|xyz$file1,答案:,A,What is displayed by the command,grep “a-zA-Z”pgm.s,A.all lines in pgm.s that begin with a letter,B.all words in pgm.s that begin with a letter,all files in the pgm.s directory that begin with,a letter,all processes beginning with a letter that are,a child process of pgm.s,答案:,A,Which command can be used to list or modify previously executed shell commands?,A.fc,B.env,C.prev,D.edit,答案:,A,Which command can be used to modify or re-execute any previous shell command after displaying the shell history?,A.fc,B.set,C.type,D.history,答案:,D,A user is trying to read a logfile that gets updated every minute.What is the correct command to view the new incoming messages in real time?,A.more logfile,B.cat -v logfile,C.pg logfile,D.tail -f logfile,答案:,B,Which of the following commands should be used to search for a$(dolor sign)only in file1?,A.grep “$”file1,B.grep$file1,C.grep -c$file1,D.grep$file1,
展开阅读全文