adplus-dvertising
frame-decoration

Question

To extract specific columns from a file, ____ command is used.

a.

tail

b.

head

c.

pr

d.

cut

Posted under UNIX

Answer: (d).cut

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To extract specific columns from a file, ____ command is used.

Similar Questions

Discover Related MCQs

Q. The expression cut -c -3 emp.lst will cut columns number _____

Q. ____ option is used with the cut command for cutting fields.

Q. What is the default delimiter used by the cut command for cutting fields?

Q. Which option is used with the cut command for cutting field base on the value of our specified delimiter?

Q. We have to specify whether we want to cut fields or columns while using cut command.

Q. The following command will produce an error.

$ cut -d “|” -f 1,4 emp.lst

Q. Which one of the following commands is incorrect?

Q. Which command is used for pasting files?

Q. Whatever we have cut using cut command can be pasted back using paste command but vertically.

Q. By default, sort command reorders lines in ASCII collating sequence.

Q. Sort command uses ____ as default field delimiter.

Q. Which option is used with sort command to specify the field delimiter?

Q. Which option is used for sorting a file according to primary key?

Q. The sort order can be reversed using ___ option.

Q. We can perform sorting on secondary key also using sort command.

Q. We cannot perform sorting on columns using sort command.

Q. Which option is used when we’ve to sort files containing only numbers?

Q. _____ option is used with sort command for removing repeated lines.

Q. Which option is used by the sort command to redirect the output to a specified file?

Q. To check whether the file has actually been stored in the default order, we can use ____ option.