Run the script using nohup without hitting enter key two times
|

Run the script using nohup without hitting enter key two times

Run the script using nohup without hitting enter key two times As we have seen when we run the command with ‘nohup’ and ‘&’ so that the command should run at background even the terminal get disconnected we have to press enter key 2 times. To overcome from this problem,use the below given method. Note:…

How to encode and decode the strings with base64
|

How to encode and decode the strings with base64

In this post we will learn how to encode and decode the strings with base64. We will also see some example on this as well. Introduction Base64 is a group of similar encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The Base64 term originates from…

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server
|

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server

rsync all files,hidden files,symlinks,hardlinks to remotes Linux Server I have used these flags -ravpzHogt along with rsync command many times in server migration. And I always get good results. Key features** (1) Date Time stamp of files and folder remain same as you find in source server. (2) Hidden files or directory recursively transfer to…

Terminal Recording with script and scriptreplay command
|

Terminal Recording with script and scriptreplay command

Learn how to do terminal recording with script and scriptreplay command.It is one of the useful command to record the activities on terminal. Morever after recording the terminal session you can play the session activity with the help of scriptreplay command. root@tuxworld:~# script -t 2>sample.time sample.log Script started, file is sample.log root@tuxworld:~# The script will…

How to change hostname in Ubuntu 12.04 and 12.10 without system restart
|

How to change hostname in Ubuntu 12.04 and 12.10 without system restart

In this post learn,how to change hostname in Ubuntu 12.04 and 12.10 without system restart. Here, there are few steps through which we can change the hostname of system without reboot. System OS: Ubuntu 12.04 LTS n l Follow steps to change hostname in Ubuntu 12.04 LTS and Ubuntu 12.10 Step 1: Edit the /etc/hosts…

Convert hyphen to underscore in between all filenames shell script
|

Convert hyphen to underscore in between all filenames shell script

In this post we will learn, how we can convert hyphen to underscore in between of all filenames with the help of shell script or bash script. For eg. if you want to convert the file haveing hyphen sign in between its name to Underscore . Use the below given method. After using the script…

Non interactive ,without typing password do ssh to Server : By sshpass
| |

Non interactive ,without typing password do ssh to Server : By sshpass

Non interactive ,without typing password do ssh to Server : By sshpass Most of the time I found that there is always a question How to do ssh to Server without typing the passwd. I have one posted on bash scripting method with using expect command and there is one more method of passing RSA-DSA…

GNU Screen
|

GNU Screen

GNU Screen: It is a terminal multiplexer.By using GNU Screen, we can run many number of applications,interactive command shells, text editors, etc. within a single terminal. InsideĀ  the terminal user can open many windows terminal and sub-terminal. Installation: It can be installed in many flavours of Unix System.(I checked in all linux distro,AIX,Sun Solaris –…

How to increase Password Expire date without resetting the password
| |

How to increase Password Expire date without resetting the password

How to increase Password Expire date without resetting the password It is commonly used that when we have to increase the password expire date of any user we simply reset the password of that user . But we can increase the Password Expire date of user without resetting the password. Here is the below scenario…

df command not showing correct free space in linux
|

df command not showing correct free space in linux

df not showing correct free space in linux In this post,I am sharing the troubleshooting. When we find the disk is full,we generally remove the files from that partition.Sometimes it is also observed that after removing files from the partiton. The df -h command,still shows partition is full. For this problem,follow the given below steps…