Which of the following commands will compress all the files in some_dir, along with all of the files in all the directories under it?
A. $ gzip *
B. $ gzip -r some_dir
C. $ gzip -d some_dir
D. $ gunzip some_dir
查看答案
The command tar zcvf backup.tar.gz ~ will archive which of the following in the file backup.tar.gz?
A. The user's home directory
B. The user's entire home directory tree
C. The entire hard disk
D. The entire partition the user's home directory resides in
Which command will show you the type of the file named some_file?
A. identify some_file
B. locate some_file
C. file some_file
D. diff some_file
Which of the following commands will recursively compare two directory trees, just mentioning which files are different, new or deleted?
A. diff -wq /usr/src/linux-4.9 /usr/src/linux-4.10:
B. diff -qr /usr/src/linux-4.9 /usr/src/linux-4.10:
C. diff -sr /usr/src/linux-4.9 /usr/src/linux-4.10:
D. diff -ir /usr/src/linux-4.9 /usr/src/linux-4.10:
Where can you find the device nodes of a Linux system?
A. /etc
B. /mnt
C. /dev
D. /var