NDG Linux Essentials - CISCO Networking Academy - Questions and Answers
CORRECT - See section 8.4.5
Channel 2 is:
- STDERR
CORRECT - See section 8.4.4
Which of the following commands will append its output to output.file?
- echo Testing >> output.file
CORRECT - See section 8.11
The
grep
command...- ...will display all the lines in a file containing the specified Regular Expression.
CORRECT - See section 8.12.4
Which of the following commands will display only lines that begin with start?
- grep ^start file.txt
WRONG - See section 8.6
Which of the following commands can be used to scroll through a text file?
- more
- cat
CORRECT - See section 8.10
Which option for the
cut
command is used to specify a delimiter?- -d
CORRECT - See section 8.10
Which option for the
cut
command is used to specify the field?- -f
CORRECT - See section 8.9
Which option for the
wc
command will print the number of lines in a file?- -l
CORRECT - See section 8.4.4
The command
echo "text" > file.txt
will not overwrite file.txt if it already exists.- False
CORRECT - See section 8.4.4
The command
echo "text" >> file.txt
will not overwrite file.txt if it already exists.- True
CORRECT - See section 8.4.4
The command echo "text" > file.txt will not overwrite file.txt if it already
exists.
·
False
ORRECT - See section 8.4.2
A successful command
will print output to STDOUT.
·
True
CORRECT - See section 8.4.5
Which of the following
commands will direct error messages to the file, error.log?
·
ls /root 2>
error.log
CORRECT - See section 8.11
The grep command...
·
...will display all
the lines in a file containing the specified Regular Expression.
CORRECT - See section 8.13
Which of the following
commands will display lines that contain either start or end?
·
egrep 'start|end'
file.txt
CORRECT - See section 8.5
The find command can search for
files based on the size of the file.
·
True
CORRECT - See section 8.5
Which of the following
commands scans the file to determine file locations?
·
find
CORRECT - See section 8.3
Which command can be
used to print line numbers?
·
nl
0 komentar