UNIX MCQs > FREE SET - 1

1. Which command is used in Unix to extract specific columns from the file?
A cat
B cut
C grep
D paste

Free MCQs www.sharemcq.com     Answer: Option B
Explanation:
Available Soon.

2. Which of the following commands is used in Unix to identify the type of file by context?
A ls
B cat
C file
D more

Free MCQs www.sharemcq.com     Answer: Option C
Explanation:
Available Soon.

3. The command in Unix to count the number of files in the current directory by using pipes is
A ls | wc
B ls -l | wc -l
C ls | wc -w
D ls | ws -c

Free MCQs www.sharemcq.com     Answer: Option C
Explanation:
Available Soon.

4. Which of the following commands can be used in Unix to get information about all users who are currently logged into the system?
A which
B who
C who am i
D 1 /u

Free MCQs www.sharemcq.com     Answer: Option B
Explanation:
Available Soon.

5. Which command is used in Unix to remove the read permission of the file 'note' from both the group and others?
A chmod go+r note
B chmod go+rw note
C chmod go-x note
D chmod go-r, 4-x note

Free MCQs www.sharemcq.com     Answer: Option D
Explanation:
Available Soon.

6. Which command is used in Unix to copy all files having the string chap and any two characters after that to the progs directory?
A cp chap?? progs
B cp chap* progs
C cp chap[12] /progs/*.*
D cp chap?? /progs/*

Free MCQs www.sharemcq.com     Answer: Option A
Explanation:
Available Soon.

7. Which command is used in Unix to display a file contents in octal form?
A cd
B od
C of
D oct

Free MCQs www.sharemcq.com     Answer: Option B
Explanation:
Available Soon.

8. Which command is used in Unix to terminate a process?
A shutdown
B haltsys
C cancel
D kill

Free MCQs www.sharemcq.com     Answer: Option D
Explanation:
Available Soon.

9. Which command is used in Unix to list out all the hidden files along with the other files?
A ls -l
B ls -x
C ls -F
D ls -a

Free MCQs www.sharemcq.com     Answer: Option D
Explanation:
Available Soon.

10. Which command is used in Unix to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?
A copy wb ../misc collect ../misc mon ../misc
B cp wb collect mon ../misc
C copy wb collect mon /misc
D tar wb collect mon /misc

Free MCQs www.sharemcq.com     Answer: Option B
Explanation:
Available Soon.


No comments:

Post a Comment

Your Feedback is hearty Requested to make the MCQs Collection better.

Popular Posts