adplus-dvertising
frame-decoration

Question

What does the following command do?

$ wc sample.txt > newfile

a.

reads word count from sample.txt

b.

reads word count from newfile

c.

reads word count from sample.txt and write it to newfile

d.

error is produced

Posted under Unix File System UNIX

Answer: (c).reads word count from sample.txt and write it to newfile

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following command do? $ wc sample.txt > newfile

Similar Questions

Discover Related MCQs

Q. Which command is used for printing a file?

Q. Which option is used with lp command if there are more than one printers in the system?

Q. Which option is used for printing multiple copies of a file using lp command?

Q. –t option prints the title on the first page.

Q. What does the following command do?

cancel prl-320

Q. Which one of the following extension is provided by gzip to the compressed filename?

Q. Which option is used with gzip command to check compression ratio for files?

Q. We can provide original filenames without .gz extension while checking compression ratio using gzip – l?

Q. Which option is used with gzip command for recursive compression?

Q. Which of the following is used for decompressing files?

Q. We cannot uncompress files using gzip.

Q. We can provide multiple filenames as arguments to gunzip.

Q. Which of the following is a better agent than gzip?

Q. Which of the following is an archival program?

Q. To create an archive named abc.tar consisting of two files, file01 and file02, which of the following command will be used?

Q. Which command will be used for extracting files from an archive named abc.tar?

Q. Which of the following command is used for viewing the attributes of contents of an archive?

Q. Which option is used by tar to append files to the end of an archive?

Q. Which command is used for compressing and archiving files together?

Q. For using zip command, the first argument should be a compressed filename.