Q.1

Which of the following keys is used to move the cursor to the end of the paragraph.

  • }
  • {
  • |
  • $
  • None of the above
Q.2

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

  • s
  • S
  • a
  • i
  • None of the above
Q.3

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

  • ls
  • cat
  • file
  • more
  • None of the above
Q.4

Which of the following commands is used to view your filelines at a time?

  • pg
  • cat
  • lp
  • /p
  • None of the above
Q.5

Which command is used to copy a file wb with the same name from the programs directory to the misc directory?

  • copy programs/wb misc/wb
  • cp programs/wb misc
  • tar programs/wb misc/wb
  • copy a:programs/wb b:misc/wb
  • None of the above
Q.6

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

  • /dev directory
  • /bin and /usr/bin directories
  • /tmp directory
  • /unix directory
  • None of the above
Q.7

Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?

  • cat emp[!0-9]
  • more [emp][!0-9]
  • cat emp[x-z]
  • cat emp[a-z]
  • None of the above
Q.8

The command to count the number of files in the current directory by using pipes, is

  • ls | wc
  • ls -l | wc -l
  • ls | wc -w
  • ls | ws -c
  • None of the above
Q.9

In vi editor, forward search is performed using the command.

  • :pat
  • ?pat
  • /pat
  • All of the above
  • None of the above
Q.10

The field separator in cut command is specified with

  • -a option
  • -d option
  • -r option
  • -x option
  • None of the above
Q.11

Which shell's wild-cards is used to match a single character?

  • *
  • ?
  • [ijk]
  • [!ijk]
  • None of the above
Q.12

Which is the earliest and most widely used shell that came with the UNIX system?

  • C shell
  • Korn shell
  • Bourne shell
  • Smith shell
  • None of the above
Q.13

Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?

  • find -mtime +365 | rm
  • grep (/usr/*) - mtime + 365 | -ok rm
  • find -name - mtime + 365 / - ok rm
  • find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;
  • None of the above
Q.14

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?

  • chmod 761 note
  • chmod 671 note
  • chmod 167 note
  • chmod 4=rwx, g=rw note
  • None of the above
Q.15

The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

  • tee
  • tr
  • sort
  • grep
  • None of the above
Q.16

Which of the following commands is used to get directory one level up?

  • cd
  • cd ..
  • cd/
  • chdir
  • None of the above
Q.17

Which of the following special shell variables is used to process number of the last background job?

  • $!
  • $#
  • $0
  • $*
  • None of the above
Q.18

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

  • -c
  • -i
  • -d
  • -s
  • None of the above
Q.19

In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.

  • .exrc
  • .profile
  • lastlogin
  • .mbox
  • None of the above
Q.20

Which of command is used to copy a file?

  • copy
  • cp
  • cpio
  • tar
  • None of the above
Q.21

The seventh field of /etc/password is

  • password
  • login
  • shell
  • home
  • None of the above
Q.22

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

  • chkdsk
  • fdisk
  • du
  • disk
  • None of the above
Q.23

The chmod ugo+rw note command can be represented in octal notation as

  • chmod 666 note
  • chmod 555 note
  • chmod 444 note
  • chmod 333 note
  • None of the above
Q.24

Which command is used to remove a file?

  • remove
  • rm
  • mv
  • del
  • None of the above
Q.25

Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

  • count p
  • wc
  • wcount
  • countw
  • None of the above
Q.26

Which command is used to remove a directory?

  • rd
  • rmdir
  • dldir
  • rdir
  • None of the above
Q.27

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

  • -4
  • -f
  • -1
  • -2
  • None of the above
Q.28

Which option will be used with touch command to change the access time?

  • -a
  • -b
  • -t
  • -h
  • None of the above
Q.29

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?

  • copy wb ../misc collect ../misc mon ../misc
  • cp wb collect mon ../misc
  • copy wb collect mon /misc
  • tar wb collect mon /misc
  • None of the above
Q.30

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

  • ls
  • ls -1
  • ls -x
  • lc
  • None of the above
0 h : 0 m : 1 s