Unix Braindumps Questions and Answers

If the owner doesn’t have write permission on a file, but his/her group has, can he/she edit it?

No. He/she can't,because the owner's permission overrides the group's.

To see list of files and directories, what permission required?

Read permission

What are PIDs? 

They are process IDs given to processes. A PID can vary from 0 to 65535.

How do you list currently running process? 
ps

How do you stop a background process? 

kill pid

How do you find out about all running processes? 

ps -ag

How do you stop all the processes, except the shell window? 

kill 0

How do you fire a process in the background?

 ./process-name &

What does the command "kill -9 $! " do?

kills the last background process

If there is a process you want to run even after exiting the shell what is the command used?

Nohup

Which command will get executed even after you log out?

Nohup

Which signal cannot be trapped?

kill –9

How to redirect standard error to a file? 

Answer
2> filename

What does the top command display?

top command displays the current ammount of memory occupied by the currently executing processes and the details. In addition to memory usage top command displays cpu usage and process details

What is the command to send message to all users who are logged in?

Wall

What is the command to send mail to other user?

Mail username

How to open secondary mail box?

Mail -f

What do you do if you don't want to be interrupted by other users' messages?

Ans. mesg n

Unix Tips

Have a Unix Problem
Unix Forum - Do you have a UNIX Question?

Unix Books :-
UNIX Programming, Certification, System Administration, Performance Tuning Reference Books

Return to : - Unix System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.