Linux Multiple Choice Questions Short quiz
Hello , as i have a final exam(Degree) on linux in three weeks time , i thaught it wood be good for a bit of help ,
I love linux , but i hate mcqs
+ 5 right answer
- 3 wrong answer
have a go , i know the answers to some, but im sure u intellegent people can answer theese in a jiffy!
just reply + write the question number
and the answer below
_ _ _ _ _ _ _ _ _
_ _ _ _ _ __ _ _ _
just answer the ones that are 100 % certian of, no gambles!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Q: how do you simulate a command as root
A) su root -c
B) su -s root "command"
D)sudo root -c "command"
Q:how do you apply and entry into the sudo log file
A) put #
B) put :
C) put =
D) put %
Q: what default permissions do you need to open a directory
Q: What does this command do chmod go+rw *
A)Gives the file called go ,read&execute permissions on all files in the current Directory.
B) Gives Groups+others read & execute permissions on all files in the current working Directory
C) Gives read +execute permissions on all files were execute access is already set
D) Gives file named go read + execute permissions on all files in the current working directory only.
Q: what does rwx r-x r-- mean in octal
Q: For 700 to exist on credited directorys what u mask would you use?
C)rwx --- ---
Q: how would you print your path
A) path -p
B) uname -p
C) cat /etc/path
D) echo $PATH
(for me:This is hard)
Q:the following crontab file entry
00 17 * * 1,2,3,4,5 /usr/sbin/ckbupscd >/dev/console 2>1
The entry above says to run /usr.. at what time
A)17 mins past midnight
C)midnight on the 17 day of each month
D)0n the 17 day of each month at 1 ,2 ,3 ,4 & 5 pm
Q: how would you add new user bcd, to the system with the project as the primary default group ,and test it as a secondary group,
A) useradd -p project -s test bcd
B) useradd -G project -s test bcd
C) useradd -g project -G test bcd
D) useradd -P project -S test bcd
Q: which of the following statements is false
A) linux & HP-UX use the exportfs command to make a resource avalable to other users
B) NFS data exchange between different machines is caried out using the external data representation(XDR)
C)NFS is stateless
D)NFS is built on top if the network information system interface
Q: how do you copy an entire directory structure
eg from task to task.backup
A) cp -r task task.backup
B) cp -e ""
C) cp -d ""
D) cp -s ""
Q: how would you see files that are hard linked together
A) hl -l
B) ls -s
C) ls -i
D) link -s
Q: some commands interpet the -(minus) sign,inc cat as a shortcut for...
thats all folks for now thats part 1 , part 2 ill post tommorrow
thanks for any assistacnce given ,
Laz>( the man that wont die)