Deck 1: Introduction to Unix Operating System and Shell Programming
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 1: Introduction to Unix Operating System and Shell Programming
1
Unix OS was first developed by
A)dennis ritchie
B)bjarne stroustrup
C)ken thompson
D)brian kernighan
A)dennis ritchie
B)bjarne stroustrup
C)ken thompson
D)brian kernighan
ken thompson
2
Unix OS was first developed at
A)microsoft corp. usa
B)at & t bell labs, usa
C)ibm, usa
D)borland international, usa
A)microsoft corp. usa
B)at & t bell labs, usa
C)ibm, usa
D)borland international, usa
at & t bell labs, usa
3
Unix is written in
A)c language
B)ada language
C)perl language
D)pascal language
A)c language
B)ada language
C)perl language
D)pascal language
c language
4
Unix is a
A)single user, single tasking os
B)single user, multi-tasking os
C)multi-user, multi- tasking os
D)none
A)single user, single tasking os
B)single user, multi-tasking os
C)multi-user, multi- tasking os
D)none
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following is a command for searching a pattern in a file?
A)find
B)grep
C)look up.
D)none
A)find
B)grep
C)look up.
D)none
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
Unix Command can be typed in
A)lower case
B)upper case
C)both the cases
D)none
A)lower case
B)upper case
C)both the cases
D)none
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Shell Program is stored in a file called
A)unix
B)sh
C)dd
D)cc
A)unix
B)sh
C)dd
D)cc
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
WhicBh shell offers a command history feature
A)c shell
B)visual shell
C)bourne shell
D)korn shell
A)c shell
B)visual shell
C)bourne shell
D)korn shell
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
The minimum number of links for any directory file are
A)3
B)4
C)1
D)2
A)3
B)4
C)1
D)2
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The default value of Umask is
A)1024
B)4021
C)0022
D)1001
A)1024
B)4021
C)0022
D)1001
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Binary executable required for system administration is usually placed in ________ directory.
A)letc
B)lusr
C)ldev
D)none
A)letc
B)lusr
C)ldev
D)none
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
All user directories are usually placed in _________ directory.
A)letc
B)lusr
C)ldev
D)none
A)letc
B)lusr
C)ldev
D)none
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
If there are three links for a file then the number of copies of the file would be
A)one
B)two
C)three
D)four
A)one
B)two
C)three
D)four
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
After typing the contents of file test created by you by giving the command cat>test you save the contents by
A)pressing the keys ctrl-c
B)typing save and pressing enter
C)pressing esc key
D)pressing ctrl-d
A)pressing the keys ctrl-c
B)typing save and pressing enter
C)pressing esc key
D)pressing ctrl-d
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
The file for which we do not have write permission can be deleted using the command
A)rm-i file
B)rm-i file.
C)rm-r-file.
D)rm-f-file
A)rm-i file
B)rm-i file.
C)rm-r-file.
D)rm-f-file
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
The permission 746 can be represented as
A)rwxrwx- -x
B)rw- -w-r-x
C)rwxr-xr-x
D)rwxr- -rw-
A)rwxrwx- -x
B)rw- -w-r-x
C)rwxr-xr-x
D)rwxr- -rw-
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
A Sticky bit applies to a file would mean that
A)no one can remove it
B)it would stick around in memory even when its execution is over
C)next time you login it would get executed on its own
D)none of the above
A)no one can remove it
B)it would stick around in memory even when its execution is over
C)next time you login it would get executed on its own
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
The command pwd gives
A)present working directory
B)password in encrypted form
C)password in decrypted form
D)none
A)present working directory
B)password in encrypted form
C)password in decrypted form
D)none
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is not a unix command
A)cd
B)rm
C)pwd
D)del
A)cd
B)rm
C)pwd
D)del
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
The size of any block in the unix file system is
A)512 bytes
B)1024 bytes
C)2048 bytes
D)any of the above
A)512 bytes
B)1024 bytes
C)2048 bytes
D)any of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
To find the block size on your file system the command is
A)blksz
B)szblk
C)chksz
D)cmchk
A)blksz
B)szblk
C)chksz
D)cmchk
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Each entry in inode table is of size
A)64 kb
B)32kb
C)32 bytes
D)64 bytes
A)64 kb
B)32kb
C)32 bytes
D)64 bytes
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
The program contained in boot block, that loads kernel into memory is called
A)disk bootstrap program
B)master boot program
C)shell program
D)none of the above
A)disk bootstrap program
B)master boot program
C)shell program
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
The state of the file system is contained in
A)boot block
B)a special block created by book block
C)super block
D)none of the above
A)boot block
B)a special block created by book block
C)super block
D)none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Which file gets executed when we use the passwd command
A)/etc/passwd
B)/etc/pwd
C)/bin/passwd
D)/passwd
A)/etc/passwd
B)/etc/pwd
C)/bin/passwd
D)/passwd
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck