chp 3 linux

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the folowing will display the file "names" with line numbers at the beginning of each line?

cat -n names

If a user's current directory is /home/mary/project1, which command could she use to move to the etc directory directly under the root?

cd /etc

A user typed in the command pwd and saw the output: /home/jim/sales/pending. How could that user navigate to the /home/jim directory?

cd /home/jim cd ../..

In Linux, since there can be multiple file systems, each has a root (/) directory.

false

The Linux file system hierarchy uses letters (C:, D:, E:, etc) to designate different file systesm in much the same manner as Windows.

false

The command tail names will allow you to display the last 20 lines in the file "names"

false

The less command offers less functionality than the more command.

false

What will the following wildcard regular expression return: file[a-c] ?

filea, fileb, filec

After typing the ls -F command, you notice a file whose filename ends with an asterisk ( * ). What does this mean?

t is an executable file.

A user types the command head /poems/mary. What will be displayed on the terminal screen?

the first 10 lines of the file mary

A directory is a type of file.

true

The grep command is used to find lines in a text file which match a common regular expression.

true

The tac command displays the contents of a file in reverse order, last line first and first line last.

true

Which of the following is an absolute pathname?

/home/resume

which of the following is an absolute pathname?

/home/resume

After typing the ls -a command, you notice a file whose filename begins with a dot ( . ). What does this mean?

It is a hidden file

A regular expression will _________________

It will allow you to specify a certain pattern of text with a text document.

Using wildcard metacharacters, how can you indicate a character that is not an a or b or c or d?

[!a-d]

The command: grep -i "Unix OS I" Orientation will display all lines in the Orientation file which

all of the above. In this case the -i option allows the grep command to ignore the case of the letters and will return any or all of the answers shown.

Which of the following Linux commands will display a list of files in the current working directory?

ls, dir

Which command would a user type on the command line to find out the current directory in the directory tree?

pwd

A special device file is used to _________________?

represent hardware devices such as hard disk drives and ports

If "resume" is the name of a file in the home directory off the root of the filesystem and your present working directory is home, what is the relative name for the file named resume?

resume

Which command searches for and displays any text contents of a binary file?

strings

A relative pathname is a pathname of a file or diretory starting from:

the user's current working directory.


Kaugnay na mga set ng pag-aaral

Live Virtual Machine Lab 3.2: Module 03 Install and Configure DHCP and DNS Servers

View Set

Adding and Subtracting Fractions with Like Denominators

View Set

Series 79 Knopman Marks Limited Representative Investment Banking Exam 8th Edition

View Set

Era 3 world history--short version long answers

View Set