Showing posts with label Unix. Show all posts
Showing posts with label Unix. Show all posts

Tuesday, November 1, 2011

how to login as root in Ubuntu


#1 : Open Terminal/shell , (hit CTRL+ALT+T)
#2 : Then, Type the command (Followed by your Login Password).
sudo passwd root
#3 : when you will be prompted for “Enter the New Unix Password” Twice, Enter the root password.
#4 : That’s All, To enjoy root power, logout from the current user session. At the login window, Enter ‘root’ as a username and the password, you entered in above step.




Note : In root mode, don’t perform any action about which you aren’t sure, because a single mistake can cause a lot of damage.






If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

Wednesday, October 12, 2011

Unix/Linux Signal Handling

Signals are the interrupts. They are a way of providing asynchronous events. For example a user typing ctrl-c on terminal to stop a program. Most of the programs need to handle signals. Every signal has a name like SIGxxx. For example : SIGALRM is the alarm signal that is generated when the timer set by the alarm function goes off.

For complete and detailed info go here .


If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged