Chapter 4 Practice Quiz

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

-c

this option prevents the touch command from creating a file, if it does not already exist

-r

when deleting a directory with rm, this option is used to recursively delete its files and subdirectories

key

A sorting ____ is a field position within each line.

key

The join command is used to associate information in two different files on the basis of a common field or ____ in those files.

stdout

The paste command normally sends its output to ____.

mv

To move a file, you use the ____ command along with the source file name and destination name.

ls > homedir.list

To redirect the list of the files in a directory to a file called homedir.list, you enter ____.

./myscript

To run the myscript shell script located in the current directory, you should enter: ____.

gt;

can be used with cat to combine the contents of two files

paste

combines files side by side

-name

is an option of the find command

-i

option of the cp command that provides a warning before an existing file with the same name is overwritten

-d

option of the cut command used to indicate that a specific character separates the fields

-u

option of the mv command that overwrites a destination file with the same name, if the source file is newer than the one in the destination

-t

option of the sort command used to indicate that a specific character separates the fields

creates an empty file called accountsfile

The command > accountsfile ____.

raw

Character special files are used by input/output devices for communicating one character at a time, providing what is called ____ data.

True

The command rmdir can be used to delete a directory that is not empty.

-s

The cp ____ option creates a symbolic link or name at the destination rather than a physical file.

sort file1 > file2

If you execute ____, the contents of file1 are sorted and the results are stored in file2.

regular

In UNIX/Linux, text files and binary files are considered to be ____ files.

stdin

System administrators and programmers refer to standard input as ____.

stdout

System administrators and programmers refer to standard output as ____.

awk

The ____ command is used to look for patterns in files.

-mtime n

The ____ option of the find command displays files that have been changed within the last n days.

-mmin n

The ____ option of the find command displays files that have been changed within the last n minutes.

-d

The ____ option of the paste command is used to specify a different separator as a delimiter.

True

UNIX/Linux store data, such as letters, product records, or vendor reports, in flat ASCII files

False

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.

rmdir

When you no longer need a directory, you can use command ____ to remove it.

rm

When you no longer need a file, you can delete it using the ____ command.

False

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.

-print

When you use find, it is useful to note that some UNIX versions require the ____ option after the file name to display the names of files.

False

When you use the paste command, by default, the pasted results appear in columns separated by commas.

True

You can complete a project using awk that you cannot complete using a combination of paste, cut, sort, and join.

touch

You can use the ____ command to create empty files

2>

You can use the ____ operator to redirect commands or program error messages from the screen to a file.


संबंधित स्टडी सेट्स

Chapter 6: How Cells Harvest Chemical Energy

View Set

30 - Ethics, Morals, Principles, and Laws

View Set

Certify Teacher PPR exam questions

View Set

A&P lab week one and i guess A&P too

View Set

2018 Payroll Source: Sections 1 - 15 REVIEW QUESTION

View Set

Cats and Dogs: ALAT Chapters 24 and 25

View Set

General Cost classification Acct 226

View Set