adplus-dvertising
frame-decoration

Question

Which option is used with the cat command for displaying file with line numbers?

a.

–n

b.

–v

c.

–a

d.

–x

Posted under UNIX

Answer: (a).–n

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which option is used with the cat command for displaying file with line numbers?

Similar Questions

Discover Related MCQs

Q. Which of the following cannot be performed by cat command?

Q. What does cat file01 file01 file01 display?

Q. Which files will be displayed by the following command:

cat *file*

Q. Which command is used to create empty files?

Q. Which option is used with touch command which forces the command not to create file, if it does not exists.

Q. Which one of the following commands is incorrect?

Q. What happens if the destination file specified in cp command does not exist?

Q. Which of the following is not an option of cp command?

Q. What is the correct syntax for copying multiple files with a filename starting as ‘file’ into another file named as ‘directory_one’?

Q. How can we copy an entire directory under another directory?

Q. How can we copy a file into our current directory?

Q. What does the following command do?
cp -u * dir_file

Q. What does -i option do?

Q. To copy multiple files, the last destination file should be a directory.

Q. –n option is used with cp command for what purpose?

Q. We can delete multiple files using single rm command.

Q. To delete all files in a directory we use ______________

Q. Which option is used with rm command for interactive deletion?

Q. Which option performs recursive deletion?

Q. Which one of the following command can delete a directory which is not empty?