Q1 In Unix, which of the following commands is used to count the total number of lines, words, and chanracters contained in a file?
A. count p
Q2 In Unix, which of the following commands is used to count just the number of lines, contained in a file?
A. wc -l
B. we -c
C. wc -w
D. wc -r
Q3 In Unix, which command is used to sort the lines of data in a file in alphabetical order?
D. sort -r
Q4 In Unix, which of the command is used to copy a file?
Q5 In Unix, which of the following commands is used to rename a file?
Q6 In Unix, which command is used to remove a file?
Q7 The cat command is used to
A. capture a file
B. display a file
C. print a file
D. copy a file
Q8 The Unix, which command is used to print a file
Q9 In Unix, which of the following commands is used to cat directory one level up?
Q10 The ls -l command tells
A. who the owner of the file is
B. the name of the group owner of the file
C. how large the file is and when the file was last modified
D. All of the above
Q11 In Unix, which command is used to create a directory?
Q12 In Unix, which command is used to remove a directory?
Q13 Which of the following commands is used to display the filenames in multiple columns?
B. ls -l
C. ls -x
Q14 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
Q15 In Unix, which of the following directories contain all the files created by a user. Including his login directory?
Q16 In Unix, which of the following commands is used to display the directory attributes rather than its contents?
A. ls -l -d
B. ls -l
C. ls -x
D. ls -F
Q17 In Unix, which command is used to set the three permissions for all three categories of users of a file?
Q18 In Unix, 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
Q19 In Unix, which command is used to assign executable permission to all of the files named 'letter'?
A. chmod ugo+r letter
B. chmod ugo+rw letter
C. chmod u+x letter
D. chmod ugo+x letter
Q20 In Unix, which command is used with file named 'note' to remove the executable permission from the user and assign read permission to the group and others ?
A. chmod u-x, go+r note
B. chmod go+r, u+x note
C. chmod g-x, uo+r note
D. chmod go+x, u-x note
Q21 In Unix, which operator will be used with chmod command to assign absolute permission?
Q22 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
Q23 What format of partition tables does Linux use?
C. Unix Ware
Q24 What command do you use to add routes to a Linux router?
Q25 Which is used to access an SMB share on a Linux system?
Q26 Which command is used to see which services an NFS server is running?
Q27 Which command is used to mount NFS file systems?
Q28 Which of the following command is used to create a boot disk for Linux by using DOS or Windows?
Q29 In Unix, which of the following commands is used to list contents of directories?
Q30 In Unix, which of the following commands is used to remove files?
Q31 The command used to remove the directory in the Unix system, is
Q32 In Unix, which of the following commands is used to summarize the disk usage?
Q33 In Unix, which of the following commands is used to change the working directory?
Q34 In Unix, which of the following commands is used to absolutely assign all permissions to the onwer, 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
Q35 In Unix, which option is used with rm command to make the command prompt the user with each filename and a ? Before acting on it
Q36 In Unix, which of the following commands is used to view your file 24 lines at a time ?
Q37 In Unix, which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?
Q38 In Unix, which command is used to display the device name of the terminal you are using?
Q39 In Unix, if you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
A. tty ^c
B. stty intr \^c
C. stty echoe
D. stty echo \^a
Q40 The agency that sits between the user and the UNIX system is called the
Q41 Which is the earliest and most widely used shell that came with the UNIX system?
A. C shell
B. Korn shell
C. Bourne shell
D. Smith shell
Q42 In Unix, which command is used to change protection mode of files starting with the string emp and ending with 1, 2, or 3?
A. chmod u+x emp[1-3]
B. chmod 777 emp*
C. chmod u+r ??? emp
D. chmod 222 emp?
Q43 In Unix, which command is used to copy all files having the string 'chap' and any two characters after that to the 'progs' directory?
A. cp chap?? progs
B. cp chap* progs
C. cp chap /progs/*.*
D. cp chap?? /progs/*
Q44 In Unix, which commnad is used to move all files to the bin sub-directory of the parent directory?
A. mv *.* /bin/
B. mv * /bin/*
C. mv * ../bin
D. mv * ../bin *.*.
Q45 In Unix, which command sends the word count of the file infile to the newfile?
A. we infile >newfile
C. we infile - newfile
D. we infile l newfile
Q46 In Unix, which of the following commands is used to save the output of the who command in a file named user. Ist as well as display it?
A. who l tee user.lst
B. who > user.lst
C. who >> user.lst
D. who < user.lste
Q47 In Unix, which command is used to extract specific columns from the file?
Q48 In Unix, which command will be used with vi editor to append text at end of line?
Q49 Which command will be used with vi editor to insert text to left of cursor?
Q50 Which command will be used with vi editor to replace text from cursor to right?
Q51 Which command is used with vi editor to save file and remain in the editing mode?
Q52 Which command will be used with vi editor to move back to the beginning of a word?