单项选择题You are looking for an executable file foo. Select the command that would search forfoo within directories set in the shell variable, PATH.()

A. locate
B. which
C. find
D. query
E. whereis


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题Which of these commands allows you to use shared libraries that are in /usr/local/lib?()

A. export LD_PRELOAD=/usr/local/lib
B. export LD_LIBRARY_PATH=/usr/local/lib
C. Idconfig /usr/local/lib
D. Idd/usr/local/lib

3.单项选择题You wish to kill a process with a PID of 123. Select the command which exiting.()

A. kill-1 123
B. kill-9 123
C. kill-15 123
D. kill-17 123

4.单项选择题Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?()

A. tr ’\r\n’ " < userlist.txt > newlist.txt
B. tr -c ’\n\r’ " < newlist.txt > userlist.txt
C. tr -d \r¯ < userlist.txt > newlist.txt
D. tr \r¯\n¯ userlist.txt newlist.txt
E. tr -s ®^M’¡®^J’ userlist.txt newlist.tx

5.单项选择题You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?()

A. foo and bar would both be removed.
B. foo would be removed while bar would remain accessible.
C. foo would be removed, bar would still exist but would be unusable.
D. Both foo and bar would remain accessible.
E. You would be asked whether bar should be removed.

7.单项选择题What is the difference between thE.remove and thE.purge action with the dpkg command?()

A. -remove removes the program, -purge also removes the config files
B. -remove only removes the program, -purge only removes the config files
C. -remove removes a package, -purge also removes all packages dependent on it
D. -remove removes only the package file itself, -purge removes all files related to the package

8.单项选择题The command echo $! will produce what output?()

A. the process id of last background command
B. the exit status of the last command
C. the exit status of the last background command
D. the process id of the current shell
E. the name of the command being executed

最新试题

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?()

题型:单项选择题

What information is displayed by the command cat/proc/dma?()

题型:单项选择题

What is the difference between thE.remove and thE.purge action with the dpkg command?()

题型:单项选择题

Which Debian package system command will list all partially installed packages and suggest how to get them correctly installed?()

题型:单项选择题

The command echo $! will produce what output?()

题型:单项选择题

Given the following output:  prompt> myapp  [1]+ Stopped myapp  prompt>  Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?()

题型:单项选择题

Which program finds only files that are in your PATH?()

题型:填空题

With Xorg 7.0, what is the name of the default font server?()

题型:单项选择题

Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?()

题型:单项选择题

What is the output when the following shell script executes?()  cat<;<;foobar  Hello foobar  foobar

题型:单项选择题