Unix Skill Test | Unix Shell Scripting Quiz 3 For Advance User

Register to attempt quiz.

1

Which one won't remove the file Wal*Mart?

2

Which one is not equivalent to wc < in > out?

3

Which command is used to break the output in two streams?

4

You want to concatenate two files, a and b, but also insert some text in between from the terminal. How will you do this?

5

How do you show lines 5 to 10 of the file {tt foo}?

6

How will you find out the lines common to two sorted files?

7

How do you know how many different users are logging into the system?

8

How do you remove duplicate lines from the file foo using sort?

9

Which system variable is used to store the PID of the current shell?

10

How do you find out the complete command line of a process run by user romeo?

11

Which one will you use to make sure that a process is killed?

12

Which command can you use to schedule a job?

13

Which command reveals details of users?

14

When using ftp, how do you list files in your local directory?

15

If a script is run as foo -l -t bar[1-4], what is the value of $#?

16

Which one is the here document?

17

To debug shell script, what is put into the beginning of the script?

18

When you look for a pattern in files ignoring case which one will you use?

19

Which command has the same result as head -3?

20

If x has the value 10, what is the value of x$x$?

21

Which special parameter indicates the name of the script?

22

What can be put into the first line of your script to make sure a script will use the Bourne shell?