Open Source Software
Скачать 1.28 Mb.
|
Getting HelpLatest Submission Grade 80% 1.Question 1 Which chapter in man contains information about standard user commands? 1 2.Question 2 Which commands get a list of all man pages named "file" (Select all answers that apply)? $ whatis file 3.Question 3 Select the true statements about getting documentation on echo (Select all answers that apply). help echo gives the information about the command embedded in the bash shell man echo gives the information about the system utility at /usr/bin/echo or /bin/echo 4.Question 4 Which of the following are command line help utilities? man help Info 5.Question 5 To get a short help message about a command such as ls, listing options and arguments, type ls --help Text EditorsLatest Submission Grade 80% 1.Question 1 Which of the following statements is true? You can go back and forth between editors as much as you would like without a conversion process 2.Question 2 Which of the following methods can be used to produce a file with 3 lines in it? Select all answers that apply. $ echo line one > myfile $ echo line two >> myfile $ echo line three >> myfile $ echo -e 'line one\nline two\nline three ' > myfile $ cat << EOF > myfile > line one > line two > line three > EOF $ 3.Question 3 Which statement is true? vi involves switching between command and insert mode by hitting the Escape key 4.Question 4 Which pair of editors has partisan advocates who tend to wage war over which is better than the other? vi and emacs 5.Question 5 Which editor can always be found installed by default on virtually any Linux system? vi Shells, Bash, and the Command Line1.Question 1 Which of the following commands would add newbin, a directory in your home directory, to the PATH (Select all answers that apply)? PATH=$PATH:$HOME/newbin PATH=$HOME/newbin:$PATH 2.Question 2 To make an environment variable (VAR) effective for only one command (foobar), you should do: VAR=value ./foobar 3.Question 3 Which of the following expressions will give the correct mathematical result (7) for x = 10 (Select all answers that apply)? $ echo $(($x - 3 )) $ echo $(expr $x - 3) 4.Question 4 Which commands will get both the normal and error outputs of prog into afile? foo > file 2>&1 foo >& file 5.Question 5 Which of the following commands has the correct syntax for specifying an alias? alias doitall="make clean; make all; evince output.pdf" Filesystem Layout, Partitions, Paths, and LinksLatest Submission Grade 80% 1.Question 1 Which of the following pseudo-directories are empty when the system is not running (Select all answers that apply)? /proc /dev /sys 2.Question 2 Which of the following statements describes the best practice? The current directory should not be placed in the path 3.Question 3 If file does not exist, which command will produce an error? ln file file2 4.Question 4 Which command will list the partition information on the first hard disk and then exit? fdisk -l /dev/sda 5.Question 5 Which directory trees usually have frequently changing data, and would not be desirable on a partition that is more static? Select all answers that apply. /tmp /var /home |