Welcome to the ihkcl.in

Haryana 10th result available now Click here

Haryana 12th result available now Click here

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

B. wc

C. wcount

D. countw

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?

A. sort

B. sh

C. st

D. sort -r

Q4 In Unix, which of the command is used to copy a file?

A. copy

B. cp

C. cpio

D. tar

Q5 In Unix, which of the following commands is used to rename a file?

A. rename

B. remove

C. mv

D. ren

Q6 In Unix, which command is used to remove a file?

A. remove

B. rm

C. mv

D. del

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

A. print

B. pm

C. pg

D. lp.

Q9 In Unix, which of the following commands is used to cat directory one level up?

A. cd

B. cd

C. cd/

D. chdir

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?

A. crdir

B. md

C. mkdir

D. cr.

Q12 In Unix, which command is used to remove a directory?

A. rd

B. rmdir

C. dldir

D. rdir

Q13 Which of the following commands is used to display the filenames in multiple columns?

A. ls

B. ls -l

C. ls -x

D. lc.

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?

A. /tmp

B. /etc

C. /usr

D. /dev

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?

A. chgrp

B. chown

C. chmod

D. chusr

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?

A. +

B. -

C. =

D. %

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?

A. NTFS

B. BSD

C. Unix Ware

D. DOS

Q24 What command do you use to add routes to a Linux router?

A. route

B. net

C. netstat

D. rot

Q25 Which is used to access an SMB share on a Linux system?

A. smbclient

B. smbrouter

C. smbserver

D. smbgateway

Q26 Which command is used to see which services an NFS server is running?

A. rpcinfo

B. nfsinfo

C. serviceon

D. service

Q27 Which command is used to mount NFS file systems?

A. mount

B. knfsd

C. nfsmount

D. repmount

Q28 Which of the following command is used to create a boot disk for Linux by using DOS or Windows?

A. rawrite

B. fdisk

C. copy

D. cp

Q29 In Unix, which of the following commands is used to list contents of directories?

A. Is

B. Ip

C. dir

D. tar

Q30 In Unix, which of the following commands is used to remove files?

A. erase

B. delete

C. rm

D. dm

Q31 The command used to remove the directory in the Unix system, is

A. rmdir

B. rd

C. remove

D. rdir

Q32 In Unix, which of the following commands is used to summarize the disk usage?

A. chkdsk

B. fdisk

C. du

D. disk

Q33 In Unix, which of the following commands is used to change the working directory?

A. cd

B. changedir

C. chdir

D. cdir

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

A. -r

B. -x

C. -i

D. -l

Q36 In Unix, which of the following commands is used to view your file 24 lines at a time ?

A. pg

B. cat

C. lp

D. /p

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?

A. -l

B. -d

C. -r

D. -b

Q38 In Unix, which command is used to display the device name of the terminal you are using?

A. who

B. ls

C. tty

D. stty

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

A. logic

B. .profile

C. shell

D. .erxc

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[12] /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

B. we 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?

A. cat

B. cut

C. grep

D. paste

Q48 In Unix, which command will be used with vi editor to append text at end of line?

A. A

B. a

C. i

D. I

Q49 Which command will be used with vi editor to insert text to left of cursor?

A. s

B. S

C. a

D. i

Q50 Which command will be used with vi editor to replace text from cursor to right?

A. r

B. R

C. s

D. S

Q51 Which command is used with vi editor to save file and remain in the editing mode?

A. :q

B. :w

C. q!

D. :x

Q52 Which command will be used with vi editor to move back to the beginning of a word?

A. b

B. a

C. e

D. w

MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in
MCQ Questions, ihkcl.in