Q.1

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

  • ^pat
  • $pat
  • pat$
  • pat^
  • None of the above
Q.2

You can append to a file instead of overwriting by using the

  • > symbols
  • >> symbols
  • < symbols
  • << symbols
  • None of the above
Q.3

The cp command uses:

  • standard input file
  • standard output file
  • both input and output file
  • neither standard input nor standard output file
  • None of the above
Q.4

Which command is used to display a file contents in octal form?

  • cd
  • od
  • of
  • oct
  • None of the above
Q.5

Which command will be used with vi editor to replace single character under cursor with any number of characters?

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

Which of the following is invalid filename?

  • shutry
  • TRY
  • trial
  • my .file
  • None of the above
Q.7

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

  • ls profile
  • find /-name profile -print
  • cd /.profile
  • l -u .profile
  • None of the above
Q.8

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

  • s
  • r
  • w
  • d
  • None of the above
Q.9

Which command is used with vi editor scroll half page backward?

  • [Control-d]
  • [Control - u]
  • [Control-c]
  • [Control -P]
  • None of the above
Q.10

Which of the following commands can be used to get information about yourself?

  • who am i
  • i /4
  • pwd
  • which
  • None of the above
Q.11

The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has

  • executable permission only
  • write and executable permissions
  • both read and executable permissions.
  • both read and write permissions
  • None of the above
Q.12

Which command is used to display all the lines with the string 'sales' from the file empl.lst?

  • cut sales empl.lst
  • /sales > empl.lst
  • grep sales empl.lst
  • cat | /sales > empl.lst
  • None of the above
Q.13

The [line number G] key allows you

  • to move cursor left by one position
  • to move cursor right by one position
  • to move cursor down by one line
  • to move cursor to the beginning of the line specified by the number
  • None of the above
Q.14

Which of the following set options is used with vi editor to ignore case while searching for patterns?

  • ic
  • ai
  • sm
  • ts
  • None of the above
Q.15

Which command is used to list out all the hidden files along with the other files?

  • ls -l
  • ls -x
  • ls -F
  • ls -a
  • None of the above
Q.16

Which commands is used to assign executable permission to all of the files named "letter"?

  • chmod ugo+r letter
  • chmod ugo+rw letter
  • chmod u+x letter
  • chmod ugo+x letter
  • None of the above
Q.17

Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?

  • tch
  • fch
  • rch
  • ech
  • None of the above
Q.18

Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?

  • who | tee user.lst
  • who > user.lst
  • who >> user.lst
  • who < user.lste
  • None of the above
Q.19

Which of the following commands is not the vi Input mode command?

  • rch
  • R
  • S
  • j
  • None of the above
Q.20

Which of the following commands is used to remove files?

  • erase
  • delete
  • rm
  • dm
  • . None of the above
Q.21

Which of the following commands is used to have a two-way communication with any person who is currently logged in?

  • mail
  • mesg
  • write
  • grep
  • None of the above
Q.22

Which command is used with vi editor to move the cursor to the left?

  • i
  • j
  • k
  • h
  • None of the above
Q.23

Which of the following keys is used to delete the character beneath the cursor?

  • x
  • X
  • dd
  • D
  • None of the above
Q.24

Which of the following shell's wildcards are used to match any number of characters including none?

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

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

  • ^pat
  • $pat
  • pat$
  • pat^
  • None of the above
Q.26

Which of the following files contains information related to password aging?

  • Shadow
  • password
  • profile
  • All the three
  • None of the above
Q.27

The File that contains a set of instructions which are performed when a user logs in, is

  • .exrc
  • .profile
  • .autoexec
  • autoexec.bat
  • None of the above
Q.28

Which command is used to sort the lines of data in a file in reverse order

  • sort
  • sh
  • st
  • sort -r
  • None of the above
Q.29

Which command is used to display the top of the file?

  • cat
  • head
  • more
  • grep
  • None of the above
Q.30

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

  • r
  • R
  • s
  • S
  • None of the above
0 h : 0 m : 1 s