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

53/57

Page

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

Which of the following command will be used to write the 4th line to file named file002?

Select an option to see the answer and solution.

We can use man command for displaying the documentation of man itself.

Select an option to see the answer and solution.

Which one of the following command will search history list for the previous command having the last occurrence of string cvf?

Select an option to see the answer and solution.

The parent id of a child is called . . . . . . . .

Select an option to see the answer and solution.

A file has a permission set as 000 i.e. — — —. Can the file be deleted?

Select an option to see the answer and solution.

. . . . . . . . command is used to display the environment variables only.

Select an option to see the answer and solution.

Which command is used for putting deleted lines or part of lines at a different location?

Select an option to see the answer and solution.

. . . . . . . . is a simple tool that will collect and show system input and output storage device statistics.

Select an option to see the answer and solution.

To delete from current cursor upto the first occurrence of }, which of the following will be used?

Select an option to see the answer and solution.

Which option is used to find command to search for files based on access time?

Select an option to see the answer and solution.

How can we escape to the UNIX shell without quitting vi editor?

Select an option to see the answer and solution.

vi environment is determined by variable settings. These variables are controlled by . . . . . . . . command.

Select an option to see the answer and solution.

Which of the following key is used to enter in ex-mode?

Select an option to see the answer and solution.

UNIX treats everything as a file.

Select an option to see the answer and solution.

The contents of file001 are:
232
25*50
What will be the contents of result.txt?
bc < file001 > result.txt

Select an option to see the answer and solution.

Which one of the following command will display the name of the shell we are working on?

Select an option to see the answer and solution.

Which command shows some attributes of a process?

Select an option to see the answer and solution.

Which of the following is an invalid command?

Select an option to see the answer and solution.

Every if is closed with a corresponding . . . . . . . .

Select an option to see the answer and solution.

Which of the following system call is used for truncating a file?

Select an option to see the answer and solution.