Which command is used to print a file?
A. print
B. prn
C. pg
D. lp
E. None of the above
Select an option to see the answer and solution.
Which command will be used with vi editor to replace single character under cursor with any number of characters?
A. s
B. S
C. a
D. i
E. None of the above
Select an option to see the answer and solution.
Which of the following set options is used with vi editor to ignore case while searching for patterns?
A. ic
B. ai
C. sm
D. ts
E. None of the above
Select an option to see the answer and solution.
Which command is used to list out all the hidden files along with the other files?
A. ls -l
B. ls -x
C. ls -F
D. ls -a
E. None of the above
Select an option to see the answer and solution.
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?
A. chmod 761 note
B. chmod 671 note
C. chmod 167 note
D. chmod 4=rwx, g=rw note
E. None of the above
Select an option to see the answer and solution.
The chmod ugo+rw note command can be represented in octal notation as
A. chmod 555 note
B. chmod 666 note
C. chmod 444 note
D. chmod 333 note
E. None of the above
Select an option to see the answer and solution.
Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?
A. ls -F -x
B. ls -l
C. ls ~ x
D. Ip
E. None of the above
Select an option to see the answer and solution.
Which command is used with vi editor to search a pattern in the forward direction?
A. /
B. ?
C. //
D. ??
E. None of the above
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
The command to count the number of files in the current directory by using pipes, is
A. ls | wc
B. ls -l | wc -l
C. ls | wc -w
D. ls | ws -c
E. None of the above
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
Which shell's wild-cards is used to match a single character?
A. *
B. ?
C. [ijk]
D. [!ijk]
E. None of the above
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
E. None of the above
Select an option to see the answer and solution.
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
E. None of the above
Select an option to see the answer and solution.