Vidyalelo
Computer Science · all questions

UNIX
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

1,129

Questions

9/57

Page

Pick an option on a question to see the right answer and solution.

Which of the following will be used to print lines containing 'manager' in emp.lst?

Select an option to see the answer and solution.

Which option is used with du command for finding only the summary of disk usage by a specific directory?

Select an option to see the answer and solution.

zip and unzip can perform each and every function that is performed by gzip, gunzip and tar.

Select an option to see the answer and solution.

Which of the following is a valid option with script command?

Select an option to see the answer and solution.

For creating or removing directories, the user must be positioned above the directory or in the parent directory of the directory, on which the operation is to perform.

Select an option to see the answer and solution.

Some files cannot be deleted using rm command because of the permissions associated with it.

Select an option to see the answer and solution.

In UNIX, the file name and file size are stored in the file itself.

Select an option to see the answer and solution.

Which command will be used to insert text at the beginning of the line?

Select an option to see the answer and solution.

. . . . . . . . option is used for counting frequency of occurrence.

Select an option to see the answer and solution.

Which option is used with cmp command to limit the number of bytes to be compared?

Select an option to see the answer and solution.

To restore a number of recent deletions, numbered buffers are used.

Select an option to see the answer and solution.

Options are also arguments but begin with a -.

Select an option to see the answer and solution.

Below command will change the case of text from lower to upper.
head -n 3 emp.lst | tr '[a-z]' '[A-Z]'

Select an option to see the answer and solution.

Which of the following is used with :set to customize vi to ignore case in pattern searches?

Select an option to see the answer and solution.

Which of the following is not a valid operator-command combination?

Select an option to see the answer and solution.

For what purpose bc command is used?

Select an option to see the answer and solution.

To display the last five used commands, which one of the following commands is used (in bash shell)?

Select an option to see the answer and solution.

Environment variable names can be defined only in uppercase.

Select an option to see the answer and solution.

Which command is used for reporting free space on the disk?

Select an option to see the answer and solution.

Which one of the following command is used for searching for a pattern in one or more file(s)?

Select an option to see the answer and solution.