Unix OS - 2

Description: Online study material for Unix get Online Unix Notes and Test Papers, get Prepared for Unix OS, Linux, Unix Study , Linux Study
Number of Questions: 25
Created by:
Tags: Unix Study Material Unix Study Online Unix Study Free Unix Study Unix OS Linux Linux Study Operating System
Attempted 0/25 Correct 0 Score 0

Which of the following is not the cursor movement commands?

  1. n

  2. a

  3. $

  4. j


Correct Option: B

Which command is used to locate all the .rpfile files in the system?

  1. ls profile

  2. find /-name .profile - print

  3. cd /.profile

  4. l - u .profile


Correct Option: D

Which command will be used with vi editor to append text at the end of line?

  1. A

  2. a

  3. i

  4. I


Correct Option: B

Which command is used to display the end of a file?

  1. head - r

  2. tail

  3. eof

  4. bof


Correct Option: C

If a file has read and write permissions for the owner, the octal representation of the permissions will be

  1. 7

  2. 6

  3. 5

  4. 3


Correct Option: B

Which command is used to terminate all processes in your own system, except the login shell?

  1. kill 1

  2. kill 0

  3. cancel all

  4. cancel 1


Correct Option: B

Which option will be used with ps command to show the entire command line of the process being run?

  1. -4

  2. -f

  3. -l

  4. 0


Correct Option: A

Which of the following file commands is used to identify the type of a file by context?

  1. ls

  2. Cat

  3. File

  4. More


Correct Option: C

The agency that sits between the user & the UNIX system is called the

  1. logic

  2. .profile

  3. shell

  4. .erxc


Correct Option: C

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

  1. ls

  2. Is - l

  3. ls - x

  4. lc


Correct Option: C
Explanation:

 ls -x command is used to display the file names in multiple  columns.

Which of the following is not the vi input mode command?

  1. rch

  2. R

  3. S

  4. j


Correct Option: D

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


Correct Option: B

Which of the following options will be used to display number of blocks used by a file?

  1. -c

  2. -i

  3. -d

  4. -s


Correct Option: D

Which symbol is used to separate more than one command in the same command line?

  1. $

  2. #

  3. :

  4. ;


Correct Option: D

Which operator will be used with chmod command to assign absolute permission?

  1. +

  2. -

  3. =

  4. %


Correct Option: A

The commonly used UNIX commands like date, ls, cat etc., are stored in

  1. /dev directory

  2. /bin & /usr/bin directory

  3. /tmp directory

  4. /unix directory


Correct Option: B

Which of the following wildcards is used to match a single character in a shell command?

  1. *

  2. ?

  3. [ijk]

  4. [!ijk]


Correct Option: B

Which column contains all the details of the permission of a file when you issue ls-l command?

  1. Second

  2. Fourth

  3. Third

  4. First


Correct Option: D
Explanation:

 It contains all the file permissions and types of files.

Which of the following signs is used to back up over typing errors in vi?

  1. @

  2. #

  3. $

  4. !


Correct Option: B

Which command can be used to get information about all users who are currently logged in the system?

  1. Which

  2. Who

  3. Who am i

  4. l /u


Correct Option: B

Which of the following commands is used to count the number of lines contained in a file?

  1. wc - l

  2. wc - c

  3. wc - w

  4. wc - f


Correct Option: C

Which of the following commands is used to summarize the disk usage?

  1. chkdsk

  2. fdisk

  3. du

  4. disk


Correct Option: C

Which symbol will be used with grep command to match the pattern pat at the beginning of a line?

  1. ^pat

  2. $pat

  3. pat$

  4. pat^


Correct Option: B

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


Correct Option: D

While working with mail command, which command is used to save mail as a separate file?

  1. s

  2. r

  3. w

  4. d


Correct Option: C
- Hide questions