Tags » Unix

Setting up Passwordless login in Linux

Objective : user abc on sourcehost (abc@sourcehost) has to ssh as user xyz on desthost (xyz@desthost) without password

  1. Run Keygen as abc on sourcehost¬† ssh-keygen -t rsa -f ~/.ssh/id_rsa…
  2. 97 more words

Bash sets the command prompt using the variable PS1, which is evaluated every time the prompt is printed. The following script, stolen from various parts of the internet (sorry, I didn’t keep references), is quite handy. 147 more words


symlink for java

java -version
which java
ls -lrt /usr/bin/java
lrwxrwxrwx 1 root root 26 Dec 24 2012 /usr/bin/java -> /usr/java/default/bin/java

cp -R /opt/java7/ /usr/java
rm latest
rm: remove symbolic link `latest’? 9 more words



DATE=`date '+%Y%m%d'`          #20120521

while [ "$number" != "3" ]
        echo "=================================================================================="
        echo "=================================  MAIN-MENU ====================================="
        echo "=================================================================================="
        echo "What do you want to do? 65 more words

Beginner's guide to file permission in Linux

When you are executing shell scripts you can execute it using (Assuming your .sh file in your current directory)

bash file_name.sh



but when you run script in ./ method you may find…

204 more words

Tracert & Traceroute (WindowsXP + Unix/Linux) - Networking

According to wikipedia, traceroute is a computer network tool used to determine the route taken by packets across an IP network. An IPv6 variant, traceroute6, is also widely available. 187 more words


Install Puppet 3 in Amazon Linux

The most recent version of the Amazon Linux VMI (2015.09.1) seems to install version 2 of Puppet by default.

However, if you need to install Puppet 3, that is also easy enough. 50 more words