1. What is Unix?
a. An operating system
b. A programming language
c. A hardware platform
d. A database management system
2. Who created Unix?
a. Bill Gates
b. Steve Jobs
c. Linus Torvalds
d. Ken Thompson and Dennis Ritchie
3. What is the shell in Unix?
a. A graphical user interface
b. A command line interpreter
c. A file system
d. A programming language
4. What is a Unix file system?
a. A hierarchical structure for organizing files and directories
b. A database management system
c. A programming language
d. A collection of utilities for managing files
5. What is a Unix process?
a. A user account
b. A running program
c. A file system
d. A database management system
6. What is the role of a Unix system administrator?
a. Writing code for Unix applications
b. Managing the system resources
c. Interacting with users
d. All of the above
7. What is the Unix command for displaying the contents of a file?
a. ls
b. cd
c. cat
d. rm
8. What is the Unix command for creating a new directory?
a. ls
b. cd
c. mkdir
d. rm
9. What is the Unix command for copying a file?
a. cp
b. mv
c. ln
d. rm
10.What is the Unix command for changing the permissions of a file?
a. chown
b. chmod
c. chgrp
d. cp
11.Who developed the Unix operating system?
a. Steve Jobs
b. Bill Gates
c. Ken Thompson and Dennis Ritchie
d. Linus Torvalds
12.What is the default shell in Unix?
a. Bash
b. Zsh
c. Ksh
d. Csh
13.What command is used to display the current working directory in Unix?
a. ls
b. pwd
c. cd
d. echo
14.What command is used to list the contents of a directory in Unix?
a. ls
b. cd
c. cp
d. mv
15.What command is used to create a new directory in Unix?
a. mkdir
b. rmdir
c. rm
d. touch
16.What command is used to copy files in Unix?
a. cp
b. mv
c. rm
d. touch
17.What command is used to move files in Unix?
a. cp
b. mv
c. rm
d. touch
18.What command is used to remove files in Unix?
a. cp
b. mv
c. rm
d. touch
19.What command is used to change the permissions of a file in Unix?
a. chmod
b. chown
c. chgrp
d. touch
20.What is the command to create a new directory in Unix?
A) mkdir
B) touch
C) ls
D) rm
21.What is the purpose of the "cd" command in Unix?
A) To create a new directory
B) To remove a directory and its contents
C) To change the current working directory
D) To list the contents of a directory
22.What is the command to display the contents of a file in Unix?
A) cat
B) mv
C) cp
D) rm
23.What does the command "pwd" do in Unix?
A) Displays the contents of a file
B) Changes the current working directory
C) Creates a new file
D) Displays the current working directory
24.What is the command to remove a file in Unix?
A) rm
B) cp
C) mv
D) touch
25.What does the command "grep" do in Unix?
A) Searches for a pattern in a file
B) Displays the contents of a file
C) Renames a file
D) Creates a new directory
26.What is the command to copy a file in Unix?
A) cp
B) mv
C) rm
D) mkdir
27.What is the command to move a file in Unix?
A) mv
B) cp
C) rm
D) mkdir
28.What is the command to change the permissions of a file in Unix?
A) chmod
B) chown
C) chgrp
D) chdir
29.What is the purpose of the "tar" command in Unix?
A) To compress files into a single archive file
B) To list the contents of a directory
C) To remove a directory and its contents
D) To copy files from one directory to another
30.Which command is used to display the contents of a file on the terminal in
Unix?
a. ls
b. cat
c. cp
d. mv
31.Which command is used to create a new directory in Unix?
a. cd
b. ls
c. mkdir
d. rm
32.Which command is used to list all the files and directories in a directory in
Unix?
a. ls
b. cd
c. pwd
d. mkdir
33.Which command is used to delete a file in Unix?
a. mv
b. cp
c. rm
d. mkdir
34.Which command is used to change the current working directory in Unix?
a. ls
b. cd
c. pwd
d. mkdir
35.Which command is used to display the current working directory in Unix?
a. ls
b. cd
c. pwd
d. mkdir
36.Which command is used to copy files in Unix?
a. cp
b. mv
c. rm
d. mkdir
37.Which command is used to move files in Unix?
a. cp
b. mv
c. rm
d. mkdir
38.Which command is used to display the last few lines of a file in Unix?
a. head
b. tail
c. more
d. less
39.Which command is used to search for a string in a file in Unix?
a. grep
b. find
c. locate
d. search
40.Which command is used to display the manual pages for a command in
Unix?
a. man
b. info
c. help
d. cmd
41.Which command is used to display the current date and time in Unix?
a. time
b. date
c. datetime
d. clock
42.Which command is used to set permissions on a file or directory in Unix?
a. chown
b. chmod
c. chgrp
d. chfile
43.Which command is used to display the environment variables in Unix?
a. env
b. set
c. export
d. variables
44.Which command is used to compress a file in Unix?
a. tar
b. zip
c. gzip
d. compress
45.Which command is used to extract files from a tar archive in Unix?
a. unzip
b. tar
c. untar
d. extract
46.Which command is used to display the contents of a directory in Unix in a
long format?
a. ls
b. dir
c. ll
d. list
47.Which command is used to find and replace a string in a file in Unix?
a. replace
b. sed
c. awk
d. cut
48.Which command is used to rename a file in Unix?
a. rename
b. mv
c. cp
d. ln
49.Which command is used to create a symbolic link in Unix?
a. link
b. symlink
c. ln
d. slink
50.Which command is used to list the processes running on a Unix system?
a. ps
b. top
c. pr
d. list
51.Which command is used to terminate a process in Unix?
a. kill
b. stop
c. terminate
d. exit
52.Which command is used to check the free space on a file system in Unix?
a. df
b. free
c. space
d. checkfs
53.Which command is used to display the contents of a file in reverse order in
Unix?
a. tac
b. rev
c. reverse
d. back
54.Which command is used to display the process status in real-time in Unix?
a. ps
b. top
c. pr
d. watch
55.Which command is used to display the first few lines of a file in Unix?
a. head
b. tail
c. more
d. less
56.Which command is used to display the disk usage of a file or directory in
Unix?
a. du
b. df
c. usage
d. space
57.Which command is used to create a new file in Unix?
a. touch
b. create
c. new
d. file
58.Which command is used to copy a directory in Unix?
a. cpdir
b. mvdir
c. cpr
d. cp -r
59.Which command is used to delete a directory in Unix?
a. deletedir
b. rmdir
c. rm -r
d. removedir
60.Which command is used to change the ownership of a file in Unix?
a. chown
b. chmod
c. chgrp
d. own
61.Which command is used to change the group ownership of a file in Unix?
a. chown
b. chmod
c. chgrp
d. group
62.Which command is used to sort the contents of a file in Unix?
a. sort
b. order
c. arrange
d. group
63.Which command is used to display the contents of a compressed file in
Unix?
a. tar
b. gzip
c. gunzip
d. zip
64.Which command is used to display the process hierarchy in Unix?
a. pstree
b. ptree
c. prtree
d. tree
65.Which command is used to display the history of commands executed in a
Unix shell?
a. history
b. log
c. commands
d. execute
66.Which command is used to suspend a process in Unix?
a. stop
b. suspend
c. kill
d. pause
67.Which command is used to resume a suspended process in Unix?
a. resume
b. continue
c. fg
d. start
68.Which command is used to display the network connections on a Unix
system?
a. netstat
b. ifconfig
c. ping
d. traceroute
69.Which command is used to display the available network interfaces on a
Unix system?
a. netstat
b. ifconfig
c. ping
d. traceroute
70.Which command is used to search for a specific string within a file in Unix?
a. grep
b. find
c. locate
d. search
71.Which command is used to display the manual page for a Unix command?
a. help
b. man
c. info
d. manual
72.Which command is used to create a symbolic link in Unix?
a. ln
b. link
c. sym
d. symbolic
73.Which command is used to set the permissions of a file or directory in
Unix?
a. chmod
b. chown
c. chgrp
d. own
74.Which command is used to rename a file in Unix?
a. rename
b. move
c. mv
d. renamefile
75.Which command is used to display the environment variables in Unix?
a. env
b. set
c. displayenv
d. printenv
76.Which command is used to kill all processes owned by a specific user in
Unix?
a. killall
b. killuser
c. kill -u
d. killprocesses
77.Which command is used to display the current date and time in Unix?
a. date
b. time
c. datetime
d. timestamp
78.Which command is used to send a signal to a running process in Unix?
a. signal
b. sigsend
c. kill
d. send
79.Which command is used to display the system information in Unix?
a. uname
b. info
c. systeminfo
d. sysinfo
80.Which command is used to display the size of a file in Unix?
a. ls
b. size
c. stat
d. du
81.Which command is used to display the contents of a file in Unix?
a. cat
b. grep
c. head
d. tail
82.Which command is used to delete a file in Unix?
a. remove
b. delete
c. rm
d. del
83.Which command is used to create a new directory in Unix?
a. mkdir
b. newdir
c. createdir
d. makedir
84.Which command is used to display the disk usage of files and directories in
Unix?
a. ls
b. du
c. df
d. diskusage
85.Which command is used to display the list of processes running on a Unix
system?
a. ps
b. process
c. proclist
d. showprocesses
86.Which command is used to set the sticky bit permission on a directory in
Unix?
a. chmod +s
b. chmod -s
c. chmod +t
d. chmod -t
87.Which command is used to create an empty file in Unix?
a. touch
b. create
c. makefile
d. newfile
88.Which command is used to display the available disk space on a Unix
system?
a. df
b. space
c. diskspace
d. freespace
89.Which command is used to terminate a Unix shell session?
a. exit
b. terminate
c. quit
d. stop
90.Which command is used to copy files and directories in Unix?
a. cp
b. mv
c. copy
d. duplicate
91.Which command is used to list the files and directories in a specific
directory in Unix?
a. ls
b. dir
c. list
d. files
92.Which command is used to create a compressed archive file in Unix?
a. tar
b. zip
c. gzip
d. compress
93.Which command is used to change the owner of a file or directory in Unix?
a. chown
b. chmod
c. chgrp
d. own
94.Which command is used to change the group of a file or directory in Unix?
a. chgrp
b. chown
c. chmod
d. group
95.Which command is used to change the permissions of a file or directory in
symbolic mode in Unix?
a. chmod
b. chown
c. chgrp
d. own
96.Which command is used to display the contents of a file in reverse order in
Unix?
a. tac
b. cat
c. tail
d. head
97.Which command is used to display the process ID of the current shell
session in Unix?
a. pid
b. getpid
c. ppid
d. currentpid
98.Which command is used to display the last 10 lines of a file in Unix?
a. head
b. tail
c. last
d. end
99.Which command is used to display the network connection information in
Unix?
a. ifconfig
b. netstat
c. ipconfig
d. connectioninfo
100. Which command is used to display the system date and time in Unix?
a. date
b. time
c. datetime
d. sysdate
101. Which command is used to search for a specific string in a file in
Unix?
a. grep
b. search
c. find
d. match
102. Which command is used to change the current working directory in
Unix?
a. cd
b. chdir
c. dir
d. changedir
103. Which command is used to display the manual pages for a Unix
command?
a. man
b. help
c. info
d. guide
104. Which command is used to display the current user's login name in
Unix?
a. whoami
b. username
c. login
d. user
105. Which command is used to terminate a running process in Unix?
a. kill
b. stop
c. terminate
d. endprocess
106. Which command is used to display the total number of lines in a file
in Unix?
a. wc -l
b. wc -w
c. wc -c
d. wc -L
107. Which command is used to display the system uptime in Unix?
a. uptime
b. time
c. boottime
d. sysuptime
108. Which command is used to display the size of a file in bytes in Unix?
a. ls -l
b. du -b
c. stat
d. size
109. Which command is used to display the current environment variables
in Unix?
a. env
b. showenv
c. printenv
d. listen
110. Which command is used to display the contents of a file in Unix?
a. cat
b. dog
c. mouse
d. pig
111. Which command is used to remove a directory in Unix?
a. rmdir
b. rm
c. remove
d. del
112. Which command is used to create a new directory in Unix?
a. mkdir
b. newdir
c. createdir
d. makedir
113. Which command is used to display the process status in Unix?
a. ps
b. pstree
c. status
d. process
114. Which command is used to display the current user's home directory
in Unix?
a. pwd
b. home
c. userdir
d. homedir
115. Which command is used to append the contents of one file to
another file in Unix?
a. cat
b. cp
c. mv
d. append
116. Which command is used to display the first 10 lines of a file in Unix?
a. head
b. tail
c. first
d. top
117. Which command is used to display the size of a directory in Unix?
a. du
b. size
c. ls
d. diskusage
118. Which command is used to display the list of currently running
processes in Unix?
a. ps
b. top
c. jobs
d. tasklist
119. Which command is used to change the permissions of a file or
directory in numeric mode in Unix?
a. chmod
b. chown
c. chgrp
d. own
120. Which command is used to create an empty file in Unix?
a. touch
b. create
c. newfile
d. mkfile
121. Which command is used to display the contents of a compressed file
in Unix?
a. gzip
b. tar
c. gunzip
d. zip
122. Which command is used to compress a file in Unix?
a. gzip
b. tar
c. gunzip
d. zip
123. Which command is used to extract the contents of a compressed file
in Unix?
a. gunzip
b. tar
c. gzip
d. unzip
124. Which command is used to display the current user's group
memberships in Unix?
a. groups
b. grouplist
c. memberof
d. usergroups
125. Which command is used to display the total size of a directory and its
subdirectories in Unix?
a. du -sh
b. ls -l
c. pwd
d. stat
126. Which command is used to display the contents of a directory in
Unix?
a. ls
b. dir
c. cd
d. pwd
127. Which command is used to display the contents of a directory in a
long format in Unix?
a. ls -l
b. ls -s
c. ls -a
d. ls -t
128. Which command is used to rename a file in Unix?
a. mv
b. rename
c. cp
d. move
129. Which command is used to copy a file in Unix?
a. cp
b. copy
c. mv
d. move
130. Which command is used to search for a file or directory in Unix?
a. find
b. search
c. locate
d. scan
131. Which command is used to change the owner of a file or directory in
Unix?
a. chown
b. chmod
c. chgrp
d. own
132. Which command is used to display the last 10 lines of a file in Unix?
a. tail
b. head
c. last
d. bottom
133. Which command is used to find and replace text in a file in Unix?
a. sed
b. grep
c. awk
d. replace
134. Which command is used to display the manual pages of a command
in Unix?
a. man
b. help
c. manual
d. command
135. Which command is used to display the environment variables in
Unix?
a. env
b. set
c. vars
d. variables
136. Which command is used to display the current date and time in Unix?
a. date
b. time
c. clock
d. datetime
137. Which command is used to terminate a running process in Unix?
a. kill
b. stop
c. exit
d. end
138. Which command is used to display the current working directory in
Unix?
a. pwd
b. cd
c. dir
d. ls
139. Which command is used to create a symbolic link in Unix?
a. ln -s
b. sym
c. link
d. shortcut
140. Which command is used to display the disk usage of a file or
directory in Unix?
a. du
b. df
c. space
d. usage
141. Which command is used to create a new directory in Unix?
a. mkdir
b. mkdir
c. newdir
d. createdir
142. Which command is used to remove a file in Unix?
a. rm
b. del
c. erase
d. remove
143. Which command is used to remove a directory and its contents in
Unix?
a. rm -r
b. rmdir
c. deletedir
d. removedir
144. Which command is used to display the IP address of a Unix machine?
a. ifconfig
b. ipconfig
c. config
d. network
145. Which command is used to display the number of lines, words, and
characters in a file in Unix?
a. wc
b. count
c. lines
d. words
146. Which command is used to change the permissions of a file or
directory in Unix?
a. chmod
b. chown
c. chgrp
d. permiss
147. Which command is used to compress multiple files into a single
archive file in Unix?
a. tar
b. gzip
c. zip
d. compress
148. Which command is used to change the group ownership of a file or
directory in Unix?
a. chgrp
b. chown
c. chmod
d. own
149. Which command is used to create a new user account in Unix?
a. useradd
b. adduser
c. newuser
d. createuser
150. Which command is used to display the contents of a file in Unix?
a. cat
b. dog
c. print
d. type
151. Which command is used to create a new file in Unix?
a. touch
b. create
c. newfile
d. makefile
152. Which command is used to copy files and directories in Unix?
a. cp
b. copy
c. cpy
d. duplicate
153. Which command is used to move or rename files and directories in
Unix?
a. mv
b. move
c. rename
d. rn
154. Which command is used to display the contents of a directory in
Unix?
a. ls
b. dir
c. list
d. display
155. Which command is used to list the running processes in Unix?
a. ps
b. process
c. running
d. listproc
156. Which command is used to create a new symbolic link in Unix?
a. ln -s
b. symlink
c. link
d. shortcut
157. Which command is used to display the contents of a compressed
archive file in Unix?
a. tar -xvf
b. gzip -d
c. unzip
d. compress -d
158. Which command is used to display the current user in Unix?
a. whoami
b. user
c. currentuser
d. me
159. Which command is used to display the free memory and swap space
in Unix?
a. free
b. mem
c. swap
d. memory
160. Which command is used to search for a pattern in a file or files in
Unix?
a. grep
b. find
c. search
d. locate
161. Which command is used to display the current date and time in Unix?
a. date
b. time
c. clock
d. datetime
162. Which command is used to display the size of a file or directory in
Unix?
a. ls -l
b. du
c. size
d. filesize
163. Which command is used to display the environment variables in
Unix?
a. env
b. variables
c. displayenv
d. showvars
164. Which command is used to display the manual pages of a command
in Unix?
a. man
b. help
c. manual
d. doc
165. Which command is used to kill a running process in Unix?
a. kill
b. stop
c. end
d. terminate
166. Which command is used to create a backup copy of a file in Unix?
a. cp -p
b. backup
c. cp -b
d. duplicate
167. Which command is used to display the permissions of a file or
directory in Unix?
a. ls -l
b. perm
c. permissions
d. displayperm
168. Which command is used to set the default file permissions in Unix?
a. umask
b. setperm
c. defaultperm
d. chmod
169. Which command is used to display the number of files and
directories in a directory in Unix?
a. ls -a
b. ls -c
c. ls -l
d. ls -R
170. Which command is used to change the permissions of a file or
directory in Unix?
a. chmod
b. chperm
c. setperm
d. permchange
171. Which command is used to create a new directory in Unix?
a. mkdir
b. newdir
c. createdir
d. makedir
172. Which command is used to delete a file in Unix?
a. rm
b. delete
c. del
d. erase
173. Which command is used to delete a directory in Unix?
a. rmdir
b. deletedir
c. rmd
d. erasedir
174. Which command is used to display the contents of a compressed file
in Unix?
a. zcat
b. gunzip
c. tar -xvf
d. unzip
175. Which command is used to set the password for a user account in
Unix?
a. passwd
b. setpass
c. password
d. changepass
176. Which command is used to display the list of users currently logged
in to the system in Unix?
a. who
b. wholist
c. listusers
d. displayusers
177. Which command is used to copy a file from a remote system to the
local system in Unix?
a. scp
b. ftp
c. sftp
d. rsync
178. Which command is used to list the available shells in Unix?
a. cat /etc/shells
b. listshells
c. shells
d. showshells
179. Which command is used to display the version of the Unix operating
system?
a. uname -a
b. version
c. showversion
d. osversion
180. Which command is used to display the last few lines of a file in Unix?
a. tail
b. head
c. last
d. bottom
181. Which command is used to display the first few lines of a file in Unix?
a. head
b. tail
c. first
d. top
182. Which command is used to display the current working directory in
Unix?
a. pwd
b. currentdir
c. showdir
d. path
183. Which command is used to rename a file in Unix?
a. mv
b. rename
c. move
d. renamefile
184. Which command is used to display the list of running processes in
Unix?
a. ps
b. listprocesses
c. processlist
d. showprocesses
185. Which command is used to change the owner of a file or directory in
Unix?
a. chown
b. ownerchange
c. setowner
d. changeowner
186. Which command is used to change the group of a file or directory in
Unix?
a. chgrp
b. groupchange
c. setgroup
d. changegroup
187. Which command is used to create a symbolic link in Unix?
a. ln -s
b. link
c. symlink
d. createlink
188. Which command is used to display the disk usage of a file or
directory in Unix?
a. du
b. df
c. diskusage
d. displaydiskusage
189. Which command is used to compress a file or directory in Unix?
a. tar -czvf
b. gzip
c. compress
d. zip
190. Which command is used to display the manual page for a Unix
command?
a. man
b. help
c. commandhelp
d. manual
191. Which command is used to search for a pattern in a file in Unix?
a. grep
b. search
c. find
d. locate
192. Which command is used to terminate a running process in Unix?
a. kill
b. terminate
c. stop
d. endprocess
193. Which command is used to create a new file in Unix?
a. touch
b. newfile
c. createfile
d. filecreate
194. Which command is used to display the contents of a file in Unix?
a. cat
b. display
c. show
d. contents
195. Which command is used to display the environment variables in
Unix?
a. env
b. displayenv
c. showenv
d. envvariables
196. Which command is used to set an environment variable in Unix?
a. export
b. setenv
c. envset
d. variableset
197. Which command is used to display the disk space usage of a file or
directory in Unix?
a. du
b. df
c. diskspace
d. displaydiskspace
198. Which command is used to display the current date and time in Unix?
a. date
b. time
c. datetime
d. showtime
199. Which command is used to display the list of currently running
background processes in Unix?
a. jobs
b. processjobs
c. background
d. backgroundjobs
200. Which command is used to copy a file in Unix?
a. cp
b. copy
c. duplicate
d. clone
201. Which command is used to remove a file in Unix?
a. rm
b. delete
c. remove
d. erase
202. Which command is used to create a directory in Unix?
a. mkdir
b. createdir
c. newdir
d. makedir
203. Which command is used to remove a directory in Unix?
a. rmdir
b. deletedir
c. removedir
d. erasedir
204. Which command is used to list the files and directories in a directory
in Unix?
a. ls
b. list
c. dir
d. show
205. Which command is used to change the permissions of a file or
directory in Unix?
a. chmod
b. permissionchange
c. setpermission
d. changepermission
206. Which command is used to display the current user in Unix?
a. whoami
b. currentuser
c. showuser
d. username
207. Which command is used to terminate a process and all its child
processes in Unix?
a. killall
b. terminateall
c. stopall
d. endprocessall
208. Which command is used to display the current hostname in Unix?
a. hostname
b. showhostname
c. currentname
d. displayname
209. Which command is used to archive a group of files and directories in
Unix?
a. tar
b. archive
c. compress
d. pack