|
List of unix questions to self test your own knowledge:
The permission bits of a file noname. can be set to _rws_ _x_ _x by the comma nd. A. chmod 711 noname
Explanation : We can use the command chmod 711 noname, followed by chmod
u+s noname (use ls -1 noname and check). Else use the single command chmod
4711 noname. What is this "s" anyway? Only the super user has the permission
to change /etc/ passwd file. But any user can update it through the
passwd (bin/passwd) command. If you type ls-l /bin/passwd you can see the
user execution bit set to s instead of x).
/bin/passwd has the user execution permission set to 's' because A. This facility assigns to the user, permissions of the
program owner. temporarily
If one doesn't want anyone else to read or write to a file named datfile, except through a program in a file filex , then he may use A. chmod u+s filex ; chmod go_rw datfile
Ans D
Shell script is preferable to other forms of programming because it A. Makes programming task easier
Files that store data in the same format as used in program are called A. binary files
To allow only one user to work with a particular file at a particular time, one has to use A. Semaphore
The differences between malloc( ) and calloc() are: A. Malloc is used for dynamic allocation of memory, while
cal:1?c can't be used for that purpose.
The main reasons for the success of pipes are A. The availability of many filter programs
Which of the following are not filter programs? A. date
Ans A
Redirection in pipes can be achieved by using A. >
Ans C |
|
See Also
Have a Unix Problem
Unix Books :-
Return to : - Unix System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|