Linux Chapter 8

Your page rank:

Total word count: 373
Pages: 1

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

Error messages generated by commands are sent where by default?

STDERR

A successful command will print out put to STDOUT

True

Which of the following commands will direct error messages to the file, error.log?

✔ ls /root 2> error.log

A pipe allows you to

send the output of one command to another

Channel 2 is

STDERR

Which of the following commands will append its output to output.file?

echo Testing >> output.file

Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen?

sort < list.file cat list.file | sort

Which option of the head command will display only the first five lines of a file

-n 5

The grep command

will display all the lines in a file containing the specified Regular Expression

The grep command can be used with glob characters

TRue

which of the following commands will display only lines that begin with start?

Grep ^start file. txt

which of the following commands will display only lines that begin with test

grep ^test file.txt

which of the following command will display lines that contain either start or end

egrep ‘start|end’file.txt

which of the following commands can be used to scroll through a text file

less more

the find command can search for files based on the size of the file

true

which of the following commands scans the file to determine file location

find

which option for the cut command is used to specify a delimiter

-d

which option for the cut command is used to specify the field

-f

which option for wc command will print the number of lines in a file

-l

which option for the wc command will print the total number of words in a file

-w

which command can be used to print line numbers

nl

the command echo "text" &gt; file.txt will create file.txt if it does not already exist.

true

the command echo "text" &gt; file.txt will not overwrite file.txt if it already exists.

false

the command echo "text" &gt;&gt; file.txt will not overwrite file.text if it already exists

true

Share This
Flashcard

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more

NCLEX 300-NEURO

A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message
sending