You can append to a file instead of overwriting by using the
1.> symbols
2.>> symbols
3.< symbols
4.<< symbols
Which of are following internal commands is used in mail to forward mail to user in user-list?
1.r user-list
2.m user-list
3.d user-list
4.e user-list
Which of are following internal commands is used in mail to forward mail to user in user-list?
1.r user-list
2.m user-list
3. d user-list
4. e user-list
Which of the following shell's wildcards are used to match any number of characters including none?
1.[ijk]
2.[!ijk]
3.?
4.*
The [line number G] key allows you
1.to move cursor left by one position
2.to move cursor right by one position
3.to move cursor down by one line
4.to move cursor to the beginning of the line specified by the number
The cat command is used to
1.capture a file
2.display a file
3.print a file
4.copy a file
The command that can be used to restrict incoming messages to a user is
1.mesg
2.grep
3.halt
4.sleep
The command used to remove the directory is;
1.rmdir
2.rd
3.remove
4.rdir
The File that contains a set of instructions which are performed when a user logs in, is
1. autoexec.bat
2. .exrc
3..profile
4..autoexec
The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has
1. executable permission only
2.write and executable permissions
3.both read and executable permissions.
4.both read and write permissions
The octal representation 652 indicates
1.Execute permission for the owner
2.Write permission for others
3. Read and write permission of groups
4. All of the above
The special shell variable $* is used
1. to exit status of ast command executed.
2.to process number of the current shell
3.to list the positional parameters
4.to name the command being executed
The UNIX file system stores a data in physical blocks of
1.1024 bytes
2.2048 bytes
3.512 bytes
4. 256 bytes
Which command allows you to view your file 24 lines at a
1.more
2.pg
3.cat
4.lp
Which command is used to assign only read permission to all three categories of the file 'note'?
1. chmod go+r note
2.chmod a-rw
3.chmod ugo=r note
4. chmod u+r,g+r,o-x note
Which command is used to display all the lines with the string 'sales' from the file empl.lst?
1. cut sales empl.lst
2./sales > empl.lst
3.grep sales empl.lst
4.cat | /sales > empl.lst
Which command is used to link the files?
1.lk
2.ln
3.cp
4.tar
Which command is used to move all files to the bin sub-directory of the parent directory?
1.mv *.* /bin/
2.mv * /bin/*
3.mv * ../bin
4.mv * ../bin *.*
Which command is used to save the standard output in a file, as well as display it on the terminal?
1.more
2.cat
3.grep
4.tee
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
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?
1. chmod u-x, go+r note
2.chmod go+r, u+x note
3.chmod g-x, uo+r note
4.chmod go+x, u-x note
Which command is used with vi editor scroll half page backward?
1.[Control-d]
2. [Control - u]
3. [Control-c]
4.[Control -P]
Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?
1.tch
2.fch
3.rch
4.ech
Which command is used with vi editor to move the cursor to the left?
1.i
2.j
3.k
4.h
Which command is used with vi editor to save file and remain in the editing mode?
1.:q
2.:w
3.q!
4.:x
Which command will be used with vi editor to append text at end of line?
1.A
2.a
3.i
4.I
Which of command is used to copy a file?
1.copy
2.cp
3.cpio
4.tar
Which of following commands is used for an automatic reminder service?
1.write
2.mesg
3.calendar
4.mail
Which of the following command is used to count just the number of lines contained in a file?
1.wc -l
2.wc -c
3.wc -w
4.wc -r
Which of the following command is used to go to home directory?
1.cd..
2.cd/
3.cd
4.cd HOME.
Which of the following commands is not the vi Input mode command?
1.rch
2.R
3.S
4.j
Which of the following commands is used to copy directory structures in and out
1.cp
2.cpio
3.cp - p
4.copy
Which of the following commands is used to display the filenames in multiple columns?
1.ls
2.ls -1
3.ls -x
4.lc
Which of the following commands is used to have a two-way communication with any person who is currently logged in?
1.mail
2.mesg
3.write
4.grep
Which of the following commands is used to remove files?
1.erase
2.delete
3.rm
4.dm
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?
1.who | tee user.lst
2.who > user.lst
3.who >> user.lst
4.who < user.lste
Which of the following keys is used to delete the character beneath the cursor?
1.x
2.X
3.dd
4.D
Which of the following signs is used to back up over typing errors in vi?
1.@
2.#
3.$
4.!
Which of the following special shell variables is used to process number of the current shell?
1.$!
2.$$
3.$0
4.$*
Which operator will be used with chmod command to assign absolute permission?
1.+
2. -
3.=
4.%
Which symbol will be used with grep command to match the pattern pat at the end of a line?
1.^pat
2.$pat
3.pat$
4.pat^