Question1
All Unix commands
- Must be in lower case
- Must be in upper case
- Must be in mixed case letters
- All of the above
Question 2
Unix operating system cannot run on which of the following Microprocessor?
- 8086
- 80286
- 80386
- Pentium
Question 3
Unix is
- Single user
- Multi-user
- Multitasking operating system
- Both B and C
Question 4
Which command is used for searching a given pattern in a file?
- Lookup
- Grep
- Find
- Search
Question 5
In which language Unix is written
- Perl language
- C language
- Pascal language
- None of the above
Question 6
Which of the following is a filter command?
- ls
- who
- cat
- find
Question 7
The bin directory contains
- Binary files
- Executable files for most of the Unix commands
- General application files
- None of the above
Question 8
Directory /dev contains
- user related files
- device related files
- command file
- temporary files
Question 9
Which of the following is true above Unix File System?
- It has a hierarchical file structure
- Files have access permissions
- All devices are implemented as files
- All of the above
Question 10
By default what are permissions given to the user when a file is created
- read
- write
- read and write
- None of the above
Question 11
Which of the following can be used for creating a file
- touch
- cat
- vi
- All of the above
Question 12
Identify the false statement about 'ln'
- When a file has two links, it is not physically present at two places, but can be referred by either of the names
- When a file has two links, it is physically present at two places, but can be referred by either of the names
- By default a file has one link
- By default a directory has two links
Question 13
The existing permissions of file can be changed by
- The super user
- The owner or group
- Others
- All of the above
Question 14
The exit status of Grep if it fails to find a match
- false
- true
- null
- None of the above
Question 15
Shell recognizes three types of commands
- external commands
- shell scripts
- internal commands
- All of the above
Question 16
Choose the correct option to create file "middle" consisting of keyword input sandwiched between the contents of two files start and end
- Cat start end - > middle
- Cat start - end < middle
- Cat start end - < middle
- Cat start - end > middle
Question 17
The correct way to send date and contents of file called "results" to file "final" is
- date ; cat results > final
- date | cat results > final
- (date ; cat results) > final
- (date, cat results) > final
Question 18
cp first second 2 > msg
- Errors are stored in file msg
- Syntax error
- Error message is printed on screen
- Contents of first and second are stored in msg
Question 19
To merge the standard error into the standard output
- 1 > &2
- 2 > &1
- 1& > 2
- 2 & > 1
Question 20
To compile demo.c and run, we can use
- cc demo.c ; a.out
- cc demo.c ; demo.exe
- cc -c demo.c ; a.out
- Both A and B
Answers
Answer 1 - A
Answer 2 - A
Answer 3 - D
Answer 4 - B
Answer 5 - B
Answer 6 - C
Answer 7 - B
Answer 8 - B
Answer 9 - D
Answer 10 - C
Answer 11 - C
Answer 12 - B
Answer 13 - B
Answer 14 - A
Answer 15 - D
Answer 16 - D
Answer 17 - C
Answer 18 - A
Answer 19 - B
Answer 20 - A
No comments:
Post a Comment