Unix - Section 2 Multiple Questions and Answers.




26.In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
A. .exrc
B. .profile
C. lastlogin
D. .mbox

27.Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?
A. copy wb ../misc collect ../misc mon ../misc
B. cp wb collect mon ../misc
C. copy wb collect mon /misc
D. tar wb collect mon /misc

28.The command chmod 761 note is equivalent to
A. chmod 167 note
B. chmod u=rwx, g=rw, o=x note
C. chmo a =761 note
D. chmod 4=7, g=6,0 =1 note

29.The commonly used UNIX commands like date, ls, cat, etc. are stored in
A. /dev directory
B. /bin and /usr/bin directories
C. /tmp directory
D. /unix directory

30.Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?
A. find -mtime +365 | rm
B. grep (/usr/*) - mtime + 365 | -ok rm
C. find -name - mtime + 365 / - ok rm
D. find /user/* (-mtime + 365 - a - atime +365 ) - OK rm {} ;

«»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers