Question1
To get the PID of last background process
- echo $#
- echo $!
- echo $0
- echo $$
Question 2
The -v option of sh causes the shell to
- Debugs if shell script has any error
- Does nothing
- Echo each command before it is executed
- Gives verbal output
Question 3
The option to o test for zero length string is
- -s
- -z
- -a
- -d
Question 4
A file is identified by _____ associated with it
- Inode number
- Process-id number
- Group-id number
- User-id number
Question 5
The default value of umask is
- 777
- 644
- 022
- 422
Question 6
Which of the following command is used to find the largest capacity of a file (maximum bytes a file can hold)
- Umask
- Ulimit
- FLargeLimit
- None of the above
Question 7
Using ___ you can accept input from the standard input, process it and send the output to the standard output
- Filters
- Pipe
- Both A and B
- None of the above
Question 8
What is the internal value associated with the standard error device?
- 0
- 1
- 2
- None of the above
Question 9
Block commands work
- On group of lines
- On single line
- On a single file
- None of the above
Question 10
In which of the following modes vi (editor) works
- Command mode
- Insert mode
- Ex command mode
- All of the above
Question 11
Which commands help in viewing lines at the beginning or at the end of the file?
- Touch and cat
- Head and tail
- Touch and head
- Cat and tail
Question 12
Which of the following commands are used to save disk space?
- Ulimit
- Compress
- Pack
- Both B and C
Question 13
What is the command for viewing a compressed file?
- cat
- touch
- zcat
- acat
Question 14
Password created for a user is stored in a file
- /dev/passwd
- /usr/passwd
- /etc/passwd
- /bin/passwd
Question 15
Which of the following is true?
- A DOS formatted floppy can be used in Unix and a Unix formatted floppy can be used in DOS
- A DOS formatted floppy can be used in Unix but a Unix formatted floppy cannot be used in DOS
- A Unix formatted floppy can be used in DOS but a DOS formatted floppy cannot be used in Unix
- None of the above
Question 16
Which of the following is a metacharacter?
- m>
- &&
- $1..$9
- All of the above
Question 17
Block command works in
- Command mode
- Insert mode
- Ex command mode
- All of the above
Question 18
How can you create hidden files in Unix
- *filename
- .filename
- $filename
- #filename
Question 19
What happens when the following command is executed?
(date; banner welcome; ls)> one 2>two
- date along with the banner and list of all the files is written into files one and two
- date along with the banner and list of all the files is written only into file two
- date along with the banner and list of all the files is written only into file one
- syntax error
Question 20
Which of the following command is used to execute commands at specified date and time?
- nohup
- cron
- fgrep
- None of the above
Answers
Answer 1 - B
Answer 2 - C
Answer 3 - B
Answer 4 - A
Answer 5 - C
Answer 6 - B
Answer 7 - A
Answer 8 - C
Answer 9 - A
Answer 10 - D
Answer 11 - B
Answer 12 - D
Answer 13 - C
Answer 14 - C
Answer 15 - B
Answer 16 - D
Answer 17 - C
Answer 18 - B
Answer 19 - C
Answer 20 - B
No comments:
Post a Comment