In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
1..exrc
2. .profile
3.lastlogin
4..mbox
The agency that sits between the user and the UNIX system is called the
1. logic
2.profile
3. shell
4.erxc
The field separator in cut command is specified with
1. -a option
2.-d option
3. -r option
4. -x option
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
Which command is used to change directory to the name beginning with a 'p'?
1.cd p
2.cd p?
3.cd p*
4.cd [p]
Which command is used to display and create files?
1.cat
2. vi
3. ed
4. lyrix
Which command is used to list all the files with extension .lst?
1. ls -l *.lst
2.ls lst*
3.ls *.*
4.ls *[lst]
Which command is used with vi editor to search a pattern in the forward direction?
1. /
2.?
3.//
4.??
Which of the following commands is used to summarize the disk usage?
1.chkdsk
2.fdisk
3.du
4.disk
Which of the following commands is used to view your file 24 lines at a time?
1. pg
2. cat
3. lp
4. /p
The command chmod 761 note is equivalent to
1. chmod 167 note
2. chmod u=rwx, g=rw, o=x note
3.chmo a =761 note
4.chmod 4=7, g=6,0 =1 note
The command to count the number of files in the current directory by using pipes, is
1.ls | wc
2.ls -l | wc -l
3.ls | wc -w
4. ls | ws -c
Which command allows you to view your file 24 lines at a time?
1.more
2.pg
3.cat
4.lp
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?
1.chmod u+x emp[1-3]
2.chmod 777 emp*
3.chmod u+r ??? emp
4.chmod 222 emp?
Which command is used to display the characteristics of a process?
1. pid
2.du
3.ps
4.au
Which command is used to display the top of the file?
1.cat
2.head
3.more
4.grep
Which command is used to print a file?
1. print
2. prn
3. pg
4.lp
Which command is used to remove a directory?
1.rd
2.rmdir
3.dldir
4.rdir
Which command is used to terminate a process?
1. shutdown
2.haltsys
3.cancel
4.kill
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. tch
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 of the following commands is used to display the directory attributes rather than its contents?
1.ls -l -d
2. ls -l
3.ls -x
4. ls -F
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 obtain a list of all files by modification time?
1. ls -1
2. ls -t
3.ls -i
4.ls -R
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 directories contain all the Alias created by a user, including his login directory?
1. /tmp
2./etc
3./usr
4. /dev
Which of the following keys is used to move the cursor to the end of the paragraph.
1.}
2. {
3. |
4. $
Which of the following keys is used to overstrike a whole line?
1. R
2.v
3.C
4. u
Which of the following set options is used with vi editor to ignore case while searching for patterns?
1.ic
2.ai
3. sm
4.ts
Which of the following special shell variables is used to process number of the current shell?
1. $!
2. $$
3.$0
4.$*
Which option will be used with disk free command to include the total amount of disk space in the file system?
1.-t
2.-tt
3.-4
4.-i
Which option will be used with ps command to show the entire command line of the process being run?
1. -4
2.-f
3.-1
4.-2
Which option will be used with touch command to change the access time?
1.-a
2.-b
3.-t
4.-h
Which symbol is used to separate more than one command in the same command line?
1.$
2. #
3.:
4. ;