Unix
chmod 167 note
chmod u=rwx, g=rw, o=x note
chmo a =761 note
chmod 4=7, g=6,0 =1 note E. None of the above
Answer is Wrong!
Answer is Right!
42. 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 E. None of the above
.exrc
.profile
lastlogin
.mbox E. None of the above
Answer is Wrong!
Answer is Right!
43. 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 E. None of the above
copy wb ../misc collect ../misc mon ../misc
cp wb collect mon ../misc
copy wb collect mon /misc
tar wb collect mon /misc E. None of the above
Answer is Wrong!
Answer is Right!
44. Which shell’s wild-cards is used to match a single character? A. * B. ? C. [ijk] D. [!ijk] E. None of the above
”*”
”?”
”[ijk
Answer is Wrong!
Answer is Right!
45. Which of the following commands is used to view your file 24 lines at a time? A. pg B. cat C. lp D. /p E. None of the above
pg
cat
lp
/p E. None of the above
Answer is Wrong!
Answer is Right!
46. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories? A. rm * B. rm -r * C. rm all D. rm *.* E. None of the above
rm *
rm -r *
rm all
rm *.* E. None of the above
Answer is Wrong!
Answer is Right!
47. Which of the following commands is used to change the working directory? A. cd B. changedir C. chdir D. cdir E. None of the above
cd
changedir
chdir
cdir E. None of the above
Answer is Wrong!
Answer is Right!
48. Which of the following commands is used to count the total number of lines, words, and characters contained in a file. A. count p B. wc C. wcount D. countw E. None of the above
count p
wc
wcount
countw E. None of the above
Answer is Wrong!
Answer is Right!
49. Which of the following commands is used to get directory one level up? A. cd B. cd .. C. cd/ D. chdir E. None of the above
cd
cd ..
cd/
chdir E. None of the above
Answer is Wrong!
Answer is Right!
50. Which of the following commands is used to assign executable permission to the owner of the file named “note”? A. chmod g+x note B. chmod u+w note C. chmod u+x note D. chmod ugo+x note E. None of the above
chmod g+x note
chmod u+w note
chmod u+x note
chmod ugo+x note E. None of the above
Answer is Wrong!
Answer is Right!