These Unix multiple-choice questions and their answers will help you strengthen your grip on the subject of Unix. You can prepare for an upcoming exam or job interview with these Unix MCQs.
So scroll down and start answering.
A. Disk drives
B. All are correct
C. Terminals
D. I/O devices
A. a hidden file
B. the parent directory (one level up) in the directory hierarchy
C. the current location in the directory hierarchy
D. a regular file
A. the aliases or shell functions
B. all are correct
C. the search path for an executable program or script with the given name
D. list of built-in commands
A. Control-D
B. Control-R
C. Control-M
D. Control-J
A. june
B. july
C. may
D. error
E. april
A. Disk drives
B. In Unix, everything is a file
C. Directories
D. Terminals
A. 3640
B. 570
C. 750
D. 463
A. ls -a
B. ls -d
C. ls -H
D. ls -h
A. False
B. A period is not a valid charcter in a file name
C. A period is not a valid first charcter in a file name
D. True
A. first the new filenamen and then the ame of the file you want to copy
B. first the name of the file you want to copy and then the new filename
C. -i before the name of the file you want to copy (input) and -o before the new filename (output)
D. -s before the name of the file you want to copy (source) and -d before the new filename (destination)
A. The location of the file's contents on the disk, if any
B. all are correct
C. A file reference count: the total number of names the file has
D. The time the file's inode was last modified
A. %SHELL%
B. !SHELL
C. $DEFAULT_SHELL
D. $SHELL
E. $MYSHELL
A. &
B. @
C. |
D. ;
A. first character of the filename is a '.'
B. there are no hidden files in Unix
C. located in the directory /tmp
D. extension is 'hidden'
A. time
B. tr
C. date
D. dd
A. PATH
B. DIRS
C. SEARCHPATH
D. PATHS
A. Same as the hostname
B. Same as the account name
C. There are no "default" passwords on Unix
D. Same as the Unix version and Revision numbers
A. chmod +x ac2
B. mkexec ac2
C. exec ac2
D. chgrp +x ac2
A. rm -u FFF
B. there's no way to reverse a delete operation on Unix
C. the copy left in the /.recycle directory
D. undelete FFF
A. id
B. set
C. ren
D. mv
A. you get an error message
B. the directory is emptied (all files in it are deleted)
C. you'll be entered into a sub shell to fix the problem
D. the old directory will be renamed with '.bak' extension
A. rcp
B. rcs
C. scp
D. scs
A. chpasswd
B. chpass
C. passchange
D. passwd
A. path
B. pwd
C. cwd
D. dir
A. dir-mk
B. mkdir
C. All are correct
D. None are correct
E. md
A. none are correct
B. copies a file to a new location and leaves a copy in the original location
C. moves a file to a new location
D. copies a file to a new location and leaves a copy in the original location with the '.org' extension
A. rlogin
B. telnet
C. ssh
D. rsh
A. True in networked environments only
B. Always false
C. True in BSD Unix only
D. Always true
A. print
B. cat
C. type
D. pr
A. change the nice value of processes
B. all are correct
C. send signals to processes
D. change contents of memory locations
A. Read, write, execute
B. Read, write, change
C. Read, write, delete
D. Read, write, modify
A. copy
B. cp
C. All of these
D. cat
E. file->copy
A. masq
B. su
C. logout and login
D. passwd
A. any valid character
B. $HOME
C. /
D. ~
A. chmod w+g flog
B. chmod g+w flog
C. chmod g-w flog
D. chmod u=w flog
A. All are correct
B. $HOME
C. !
D. $LOGDIR
A. mailman
B. mailx
C. outlook
D. apple
A. -r
B. -s
C. -d
D. -a
A. \
B. @
C. ,
D. /
A. it is gone forever
B. it is moved to a special directory
C. it is recoverable easily
D. it is still in the file-system
A. .
B. ..
C. true in SysV Unix only
D. Ö
E. ~
A. whoami
B. id
C. w
D. who
A. /
B. \
C. !
D. |
A. chmod o=r flog
B. chmod u=r flog
C. chmod o+r flog
D. chmod o-r flog
A. .bourne
B. .shrc
C. .sh.login
D. .profile
A. user myuser
B. verify myuser
C. None of these
D. su myuser
A. Tcl
B. Perl
C. Python
D. script
A. more than one group if the user's UID is 0
B. more than one group if the user is root, daemon, agent, uucp, lp, or news
C. exactly one group
D. more than one group
A. recovered
B. crash
C. tmp
D. lost+found
A. has what is in the sixth field of the user record in the /etc/passwd file, as its current directory
B. has the $PWD directory as its current directory
C. has its user's home directory as its current directory
D. inherits its current directory from its parent process