Posts

Showing posts with the label linux

Is init process the first process in Linux?

Answer is No. PID of init is 1. PID of scheduler is 0. It is created thru init_task function. Then scheduler forks (i.e. using fork()) init process. And so init forks other processes.

Manage an ssh alias from Linux or Mac terminal

in ~/bash_profile, add the following line alias alias-test ='ssh -i <path to private key - pem file> ubuntu@<Target IP address or domain name>' Example: alias-test=' ssh -i /home/dummy/alias-check.pem ubuntu@123.123.345.345' ~ stands for home directory (like /home/<username>) Now from terminal type short word and you will have done ssh login very quickly. $alias-test

How to find OS details in Ubuntu

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise This is ubuntu OS and version is 12.04 LTS* LTS - Long Term Support version