Fun With Linux

Standard

To see a train moving on your screen in linux , type the following command in your terminal as superuser .

yum -y install sl                ( In Redhat type os )

apt-get install sl                ( In Debian type os )

It needs internet connection for first time only to install that package .

Script To Read Two Numbers From User And Tell Which One Is Greter

Standard

#!/bin/sh
#
echo -e “Enter two numbers : \c”
read no1 no2
if
[ “$no1” -gt “$no2” ]
then
echo “$no1 is greater than $no2”
elif
[ “$no1” -eq “$no2” ]
then
echo “$no1 is equal to $no2”
else
echo “$no2 is greater than $no1”
fi

Script To View Day Of Week

Standard

#!/bin/sh
#
echo -e “Input the number to see that day of week : \c”
read no
case “$no” in
0) echo “Sunday” ;;
1) echo “Monday” ;;
2) echo “Tuesday” ;;
3) echo “wednesday” ;;
4) echo “Thursday” ;;
5) echo “Friday” ;;
6) echo “Saturday” ;;
*) echo “Invalid Input” ;;
esac

Tracing An Email And Getting Location !

Standard

Tracing an Email means locating the Original Sender and Getting to know the IP address of the network from
which the Email was actually generated.

For tracing an email Address You need to go to your email account and log into the email which you want to trace
after that you have to find the header file of the email which is received by you.
You will get Source code of the email.

For Rediffmail-

Capture

For Yahoomail

d

For Gmail

Capture

Now see from top to bottom and the first ip that comes is ip adress of the sender . Copy that ip and go to http://www.ip2location.com and enter the copied ip there . Its all you have the sender’s location .