单项选择题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-I myfile
B. :\ls-l myfile
C. esc :Is -I myfile
D. :?ls-l myfile


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题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

2.单项选择题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

3.单项选择题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.

5.单项选择题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

6.单项选择题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

9.单项选择题With Xorg 7.0, what is the name of the default font server?()

A. xfserv
B. xfs
C. fonts
D. xfstt
E. fserv

10.单项选择题You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?()

A. mount /dev/cdrom /mnt/cdrom
B. mount/dev/cdrom
C. mount -t cdrom /dev/cdrom /mnt/cdrom
D. mount /mnt/cdrom
E. automount /mnt/hdd /mnt/cdrom

最新试题

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

题型:单项选择题

You ran out of space and added a eighth disk to your SCSI-1 system. When you try to start, the system no longer boots. What is most likely the cause of this problem?()

题型:单项选择题

Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. What command entered into a bash initialization file will have bash recognize vi keystrokes after login?()

题型:单项选择题

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

题型:单项选择题

What application can be used in place of xhost? Please enter only the name without path. Answer:()

题型:填空题

Which system administration command you can use to update Id.so.cache after the installation of new shared libraries?()

题型:单项选择题

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?()

题型:单项选择题

What does the Filesystem Hierarchy Standard enable? ()

题型:多项选择题

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

题型:单项选择题

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

题型:单项选择题