The chmod ugo+rw note command can be represented in octal notation as
1.chmod 555 note
2.chmod 666 note
3.chmod 444 note
4.chmod 333 note
The command to count the number of files in the current directory by using pipes, is
1.ls | wc
2. ls -l | wc -l
3. ls | wc -w
4. ls | ws -c
Which command is used to print a file?
1.print
2.prn
3.pg
4.lp
Which command will be used with vi editor to replace single character under cursor with any number of characters?
1.s
2.S
3.a
4.i
Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
1.count p
2.wc
3.wcount
4.countw
Which of the following commands is used to view your file 24 lines at a time?
1.pg
2.cat
3.lp
4./p
Which shell's wild-cards is used to match a single character?
1.*
2.?
3.[ijk]
4.[!ijk]
In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
1..exrc
2..profile
3.lastlogin
4..mbox
Which of the following files contains information related to password aging?
1.Shadow
2.password
3.profile
4.All the three
The command chmod 761 note is equivalent to
1.chmod 167 note
2. chmod u=rwx, g=rw, o=x note
3.chmo a =761 note
4.chmod 4=7, g=6,0 =1 note
The commonly used UNIX commands like date, ls, cat, etc. are stored in
1./dev directory
2./bin and /usr/bin directories
3./tmp directory
4./unix directory
Which command is used to change directory to the name beginning with a 'p'?
1.cd p
2.cd p?
3. cd p*
4. cd [p]
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?
1. copy wb ../misc collect ../misc mon ../misc
2.cp wb collect mon ../misc
3. copy wb collect mon /misc
4.tar wb collect mon /misc
Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
1.rm *
2.rm -r *
3.rm all
4.rm *.*
Which command is used to list all the files with extension .lst?
1. ls -l *.lst
2.ls lst*
3.ls *.*
4. ls *[lst]
Which command is used to list out all the hidden files along with the other files?
1.ls -l
2.ls -x
3. ls -F
4.ls -a
Which command is used with vi editor to search a pattern in the forward direction?
1./
2.?
3.//
4.??
Which command will be used with vi editor to replace text from cursor to right?
1.r
2.R
3.s
4.S
Which commands is used to assign executable permission to all of the files named "letter"?
1. chmod ugo+r letter
2.chmod ugo+rw letter
3.chmod u+x letter
4.chmod ugo+x letter
Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?
1.chmod 761 note
2.chmod 671 note
3.chmod 167 note
4.chmod 4=rwx, g=rw note
Which of the following commands is used to assign executable permission to the owner of the file named "note"?
1.chmod g+x note
2.chmod u+w note
3.chmod u+x note
4. chmod ugo+x note
Which of the following commands is used to change the working directory?
1.cd
2.changedir
3.chdir
4.cdir
Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?
1.copy programs/wb misc/wbx
2.cp programs/wb misc/wbx
3.tar programs/wb misc/wbx
4. copy a:programs/wb b:misc/wbx
Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?
1. ls -F -x
2.ls -l
3.ls ~ x
4.Ip
Which of the following commands is used to get directory one level up?
1.cd
2.cd ..
3.cd/
4.chdir
Which of the following commands is used to rename a file?
1.rename
2.remove
3.mv
4.ren
Which of the following is invalid filename?
1.shutry
2.TRY
3.trial
4. None of the above
Which of the following is not a filter?
1.cat
2.grep
3. wc
4. None of the above
Which of the following set options is used with vi editor to ignore case while searching for patterns?
1.ic
2.ai
3.sm
4.ts
Which set option is used with vi editor to display line numbers on screen?
1.nm
2.nu
3.ic
4.li