Category Archives: Linux

Articles for Linux

How Do I Find Out My Kernel Version?

How Do I Find Out My Kernel Version? $ uname -mrs $ uname -a output Linux 2.6.18-194.el5 i686

Posted in Linux | Tagged | Leave a comment

How To Find Out My Linux Distribution Name and Version

$ cat /etc/*-release output CentOS release 5.9 (Final) $ lsb_release -a output LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 5.9 (Final) Release: 5.9 Codename: Final

Posted in Linux | Leave a comment

How to reset the Zeroshell password

How to reset the Zeroshell password The Zeroshell password is written in /Database/var/register/system/ldap/rootpw # mount /dev/sda1 /mnt # cd  /mnt/_DB.001/var/register/system/ldap #cat rootpw Zeroshell How to Download here  

Posted in Linux | Tagged | Leave a comment

How to change SSH port number

How to change SSH port number If you want to change your ssh port number other then 22 you can do it by editing sshd_config. Step 1 : Login to your server as Root Step 2 : edit it nano … Continue reading

Posted in Linux | Tagged | Leave a comment

Red Hat / CentOS: Check / List Running Services

Red Hat / CentOS: Check / List Running Services Q. How do I list all currently running services in Fedora / RHEL / CentOS Linux server? A. There are various ways and tools to find and list all running services … Continue reading

Posted in Linux | Tagged | Leave a comment

Linux Commands Examples

find                                              Search files and folders crontab                                       Schedules the jobs ls                                                  Directory listing iptables                                       Firewall netstat                                         Connection status

Posted in Linux | Leave a comment

How to create NFS Share on CentOS

How to create NFS Share on CentOS NFS services should be install  check the services service nfs status which folder you want to share for Example /home/ISOFiles NFS share information kept in /etc/exports file so edit the file and add … Continue reading

Posted in Linux, VMware | Tagged | Leave a comment

How to transfer files between linux and windows over ssh

1- how to transfer files between linux servers over ssh #scp source  username@destination ip:/destination path For example :- I want to transfer files from local linux machine to remote linux server over ssh #scp abc.tar  root@192.168.1.1:/var/ How to transfer files … Continue reading

Posted in Linux | Leave a comment

SSH Session recording script

SSH Session recording script If you want to record your root ssh session  create a file .bash_profile  . and copy below line by line change the email address where you want to recive the SSH log mail. nano /root/.bash_profile CURDATE=$(date … Continue reading

Posted in Linux | Tagged | Leave a comment

Backup in Linux

Backup in Linux $ tar   cvf    backup.tar  . C = create an archive V = verbose mode f = file name . = current directory Display the content of tar file $ tar  tvf   backup.tar t = table of content … Continue reading

Posted in Linux | Tagged | Leave a comment