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

32/57

Page

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

. . . . . . . . system call is used for writing to a file.

Select an option to see the answer and solution.

To know the PID of your current shell, which command will be used?

Select an option to see the answer and solution.

A user-defined variable is initialized to . . . . . . . .

Select an option to see the answer and solution.

-f option when used with mv command overwrites existing files without prompting any messages.

Select an option to see the answer and solution.

Which of the following is performed by expr string handling's function?

Select an option to see the answer and solution.

Which of the following is a correct syntax for performing substitution on a file?

Select an option to see the answer and solution.

For locating the first position of a character in a string we can use expr command.

Select an option to see the answer and solution.

Which function is used by perl for displaying the length of a string?

Select an option to see the answer and solution.

What are positional parameters?

Select an option to see the answer and solution.

We can run the jobs in the background in UNIX.

Select an option to see the answer and solution.

The command is valid.
HOME > home.ls

Select an option to see the answer and solution.

Given x=10 then,
x == x.
The given statement is . . . . . . . .

Select an option to see the answer and solution.

The output of ls dir* is . . . . . . . .

Select an option to see the answer and solution.

Which one of the following is the correct syntax for performing substitution using sed?

Select an option to see the answer and solution.

The following will display :
perl -e ‘print “UNIX” x 10 . “\n” ;’

Select an option to see the answer and solution.

Which symbol is used for repeating the last command?

Select an option to see the answer and solution.

What is the value returned by fork system call, when the creation of child process is unsuccessful?

Select an option to see the answer and solution.

A file is a container for storing information.

Select an option to see the answer and solution.

For running a UNIX command within awk, we've to use . . . . . . . . function.

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.