Documente Academic
Documente Profesional
Documente Cultură
COMPREHENSIVE VIVA-VOCE
UNIX
c
c
c
cccccccccccccccccBY
c
cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccUNIX QUESTIONS
a)2> /dev/null
cccb)2> filename
c)1> filename
d)&> filename
2. Which command can be used to display the contents of a file on the screen?
a)ls
b)grep
c)who
cccccd)cat
a)True b)False
a)ls *[rgi]*
b)ls [..i*]
cccccccc)ls ??[rgi]*
d)ls **[rgi]?
e)ls ?3[rgi]*
a)touch filename
b)more filename
c)less filename
d)pico filename
e)cat filename
6.cThe permission bits of a file ³noname´,can be set to _rws_ _x_ _x_ by the command.
a)chmod 711 noname b)chmod go-rw noname
b)it should allow users who don¶t have write permission to /etc/passwd to write to it
8. if one doesn¶t want anyone else to read or write to a file name datfile,except through a
program in file filex,then he may use
9. consider the following command that invokes the executable file a.out,with the following
command line arguments
c)serves no purpose
a)int p
b)int p[2]
c)char *p
d)FILE *p
Main()
int p[2];
pipe(2);
fork();
d)the pipe will be shared by both the parent and the child processes.
read $answer
20. which of the following shell scripts looping features does not recognize the break command?
21. which of the following displays the exit status of the last executed command
a)/etc/passwd b)/bin/.login
c)/etc/utmp d)/usr/user_dat
a)the cpu time slice expires b)a higher priority process arrives
c)it has to wait for an event to happen d)it executes an exit statement
c) In resource allocation
30.The command
Date
b)it gives the desired output only if the execute permission of file x is set.
c)the desired output can be got by the command $h x,which works even if x has its execute
permission not set«..
33. Files that store data in the same format as used in program are called
a)results in an error
a)stdin
c)it has features for redirecting its output d)none of the above
44. which of the following UNIX tools, receives input only from the standard input?
Cat $1 >$1. $$
a) results in an error
b) is equivalent to cp $1 $1.$$
c) Copies the contents of file1 to another file that has the PID of the executing shell as its
extension
d) Shell is a program
50. which of the following metacharacters will be recognized by the shell, even if it comes
within double quotes