Reference no: EM133218245
QUESTION 1
When you are moving files, using the -o option with the mv command can be a good idea so that you don't unexpectedly overwrite a destination file with the same name.
True
False
QUESTION 2
The command rmdir can be used to delete a directory that is not empty.
True
False
QUESTION 3
UNIX/Linux store data, such as letters, product records, or vendor reports, in flat ASCII files.
True
False
QUESTION 4
When you use cat to combine two files into a third file, the first line of the output contains the first line of the first file followed by the first line of the second file.
True
False
QUESTION 5
When you use the paste command, by default, the pasted results appear in columns separated by commas.
True
False
QUESTION 6
You can use the < operator to redirect a command's output from the screen to a file.
True
False
QUESTION 7
The pipe operator can connect several commands on the same command line.
True
False
QUESTION 8
When using wc, you cannot specify all three options ( -l, -w and -c) in the command line at the same time.
True
False
QUESTION 9
A popular use of pr is to convert lowercase characters to uppercase characters.
True
False
QUESTION 10
You can use the less command with a directory to view its contents one screen at a time, such as less / sbin.
True
False
QUESTION 11
System administrators and programmers refer to standard output as ____.
sout
stout
stdout
standardout
QUESTION 12
To redirect the list of the files in a directory to a file called homedir.list, you enter ____.
ls < homedir.list
ls > homedir.list
homedir.list < ls
homedir.list > ls
QUESTION 13
You can use the ____ operator to redirect commands or program error messages from the screen to a file.
1>
2>
3>
4>
QUESTION 14
The command > accountsfile ____.
deletes the file accountsfile
is not valid in UNIX/Linux systems
displays the contents of the file accountsfile on the screen
creates an empty file called accountsfile
QUESTION 15
You can use the ____ command to create empty files.
touch
create
make
cd
QUESTION 16
When you no longer need a file, you can delete it using the ____ command.
rm
mv
rmdir
delete
QUESTION 17
To move a file, you use the ____ command along with the source file name and destination name.
cp
rename
mv
move
QUESTION 18
The ____ option of the paste command is used to specify a different separator as a delimiter.
-t
-o
-d
-s
QUESTION 19
If you execute ____, the contents of file1 are sorted and the results are stored in file2.
sort file1 -o file2
sort file1 -d file2
sort file1 > file2
sort file1 file2
QUESTION 20
The join -1 2 -2 3 f1 f2 -t: command uses ____ .
the 1st field of f1 file to join the 2nd field of f2 file with the colon separator
the 1st field of f1 file to join the 3rd field of f2 file with the colon separator
the 2nd field of f1 file to join the 2nd field of f2 file with the colon separator
the 2nd field of f1 file to join the 3rd field of f2 file with the colon separator
QUESTION 21
____ is NOT a selection command.
comm
diff
grep
sed
QUESTION 22
The ____ redirects the output of one command to the input of another command.
output redirection operator (>)
input redirection operator (<)
pipe operator (|)
tilde (~)
QUESTION 23
You use the ____ command to search for a specified pattern in a file, such as a particular word or phrase.
find
grep
sed
diff
QUESTION 24
The ____ command removes duplicate lines from a file.
grep
mv
uniq
diff
QUESTION 25
The ____ option of the uniq command instructs it to generate as output only the lines of the source file that are not duplicated successively.
-d
-s
-o
-u
QUESTION 26
The ____ command locates identical lines within two identically sorted files.
diff
sed
uniq
comm
QUESTION 27
The ____ option of the diff command ignores blanks that repeat.
-b
-B
-c
-l
QUESTION 28
The ____ function within the awk command is used to format output.
out
outln
print
printf
QUESTION 29
You use the ____ character in script files to mark comments.
tilde (~)
dollar ($)
pipe (|)
pound (#)
QUESTION 30
After you create a shell script to run in Bash, you can immediately run the script by typing ____ and then the name of the script.
run
sh
start
exec