Flickr Photos

Young Red Fox
Red Fox eating rowan berries
Roe Deer
Leopard in the rain
Lion mum taking care of cubs
Male Lion
Lion Cubs Playing
Lazy Spotted Hyena
Female Lion
Golden Jackal

Linux: Show your IP-address

Show IP-Address

How to get your IP-address:

<br /> ifconfig &quot;eth0&quot;|grep ‘inet addr’|cut -d’ ‘ -f12|cut -c6-20<br />

and if you want to use IP-address at your own scripts just use:

<br /> INTIP=`ifconfig eth0|grep ‘inet addr’|cut -d’ ‘ -f12|cut -c6-20`<br /> echo &quot;$INTIP&quot;<br />

and now you have your IP-address on $INTIP […]

Linux: History command

You can see your command history on Linux just using command history: history

and this should show you all commands which you have wrote with a line number on the beginning of the line. You can redo those commands just with ! and writing number of that line which command you want to redo: !line_of_history