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 […]
Tips And Tricks
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 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 […]
Read the file inside compressed .gz files without extract
Read the file inside compressed .gz files without extract I would like to share 3 simple commands by which U can read the files inside the compressed .gz file without extracting. For eg.We have a log file called test.log and we compressed it by using command “gzip test.log” .It will compressed the file into test.log.gz […]
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 […]
sed: -e expression #1, char 24: Invalid range end
While working on sed command stricken with this, error : “sed: -e expression #1, char 24: Invalid range end “). To solve this problem, we have used sed and tr command. We made a bash script having expect command in it. We were passing variable value from my mysql database into the bash script. The […]