Q.1

Which command is used to save the standard output in a file, as well as display it on the terminal?

  • more
  • cat
  • grep
  • tee
  • None of the above
Q.2

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

  • +
  • -
  • =
  • %
  • None of the above
Q.3

The special shell variable $* is used

  • to exit status of ast command executed.
  • to process number of the current shell
  • to list the positional parameters
  • to name the command being executed
  • None of the above
Q.4

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

  • head - r
  • tail
  • eof
  • bof
  • None of the above
Q.5

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

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

Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?

  • ls -F -x
  • ls -l
  • ls ~ x
  • Ip
  • None of the above
Q.7

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

  • $
  • #
  • :
  • ;
  • None of the above
Q.8

Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

  • rm *
  • rm -r *
  • rm all
  • rm *.*
  • None of the above
Q.9

Which of the following command addresses all users who are currently hooked on?

  • write
  • mail
  • wall
  • mesg
  • None of the above
Q.10

Which command is used to make all files and sub-directories in the directory (progs) executable by all users?

  • chmod -R a+x progs
  • chmod -R 222 progs
  • chmod -1 a+x progs
  • chmod -x a+x progs
  • None of the above
Q.11

The command chmodnote is equivalent to

  • chmod 167 note
  • chmod u=rwx, g=rw, o=x note
  • chmo a =761 note
  • chmod 4=7, g=6,0 =1 note
  • None of the above
Q.12

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?

  • chmod u-x, go+r note
  • chmod go+r, u+x note
  • chmod g-x, uo+r note
  • chmod go+x, u-x note
  • None of the above
Q.13

The command that can be used to restrict incoming messages to a user is

  • mesg
  • grep
  • halt
  • sleep
  • None of the above
Q.14

Which command is used to link the files?

  • lk
  • ln
  • cp
  • tar
  • None of the above
Q.15

The cat command is used to

  • capture a file
  • display a file
  • print a file
  • copy a file
  • None of the above
Q.16

Which command is used to create a directory?

  • crdir
  • md
  • mkdir
  • cr
  • None of the above
Q.17

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

  • 1
  • 6
  • 5
  • 3
  • None of the above
Q.18

Which command is used with vi editor to search a pattern in the forward direction?

  • /
  • ?
  • //
  • ??
  • None of the above
Q.19

Which of the following commands is used to change the working directory?

  • cd
  • changedir
  • chdir
  • cdir
  • None of the above
Q.20

Which of the following commands is used to copy directory structures in and out

  • cp
  • cpio
  • cp - p
  • copy
  • None of the above
Q.21

Which of following commands is used for an automatic reminder service?

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

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

  • @
  • #
  • $
  • !
  • None of the above
Q.23

Which command is used to display and create files?

  • cat
  • vi
  • ed
  • lyrix
  • None of the above
Q.24

The command used to compare the files is known as

  • comp
  • cmp
  • do
  • ccp
  • None of the above
Q.25

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

  • logic
  • profile
  • shell
  • erxc
  • None of the above
Q.26

Which command is used to list all the files with extension .lst?

  • ls -l *.lst
  • ls lst*
  • ls *.*
  • ls *[lst]
  • None of the above
Q.27

The UNIX file system stores a data in physical blocks of

  • 1024 bytes
  • 2048 bytes
  • 512 bytes
  • 256 bytes
  • None of the above
Q.28

Which of the following commands is used to assign executable permission to the owner of the file named "note"?

  • chmod g+x note
  • chmod u+w note
  • chmod u+x note
  • chmod ugo+x note
  • None of the above
Q.29

Which command allows you to view your filelines at a time?

  • more
  • pg
  • cat
  • lp
  • None of the above
Q.30

Major expressions used with find command to select file is it has been accessed in more thandays, is

  • -atime +365
  • -mtime + 365
  • -atime -365
  • -mtime -365
  • None of the above
0 h : 0 m : 1 s