Unix Question
Unix Question
a. An operating system
b. A programming language
c. A hardware platform
d. A database management system
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
38.Which command is used to display the last few lines of a file in Unix?
a. head
b. tail
c. more
d. less
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
52.Which command is used to check the free space on a file system in Unix?
a. df
b. free
c. space
d. checkfs
55.Which command is used to display the first few lines of a file in Unix?
a. head
b. tail
c. more
d. less
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
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
84.Which command is used to display the disk usage of files and directories in
Unix?
a. ls
b. du
c. df
d. diskusage
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
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
114. Which command is used to display the current user's home directory
in Unix?
a. pwd
b. home
c. userdir
d. homedir
116. Which command is used to display the first 10 lines of a file in Unix?
a. head
b. tail
c. first
d. top
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
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
136. Which command is used to display the current date and time in Unix?
a. date
b. time
c. clock
d. datetime
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
159. Which command is used to display the free memory and swap space
in Unix?
a. free
b. mem
c. swap
d. memory
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
168. Which command is used to set the default file permissions in Unix?
a. umask
b. setperm
c. defaultperm
d. chmod
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
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
190. Which command is used to display the manual page for a Unix
command?
a. man
b. help
c. commandhelp
d. manual
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
204. Which command is used to list the files and directories in a directory
in Unix?
a. ls
b. list
c. dir
d. show
207. Which command is used to terminate a process and all its child
processes in Unix?
a. killall
b. terminateall
c. stopall
d. endprocessall