Month: April 2010

Couple of more bash commands…

Get your external IP address and other infos… curl ifconfig.me curl ifconfig.me/ip -> IP Adress curl ifconfig.me/host -> Remote Host curl ifconfig.me/ua ->User Agent curl ifconfig.me/port -> Port intercept stdout/stderr of another process strace -ff -e trace=write -e write=1,2 -p SOME_PID Delete all files in a folder that don’t match a certain file extension Deletes…


Top commands from commandlinefu.com

Here is a list of the top 2500 or so commands from commandlinefu… enjoy! (I started to add the code view for them but got to about number 50 and said… uh, no…) commandlinefu top 2500


How to kill an unresponsive ssh session

From laszlo.nu I often find myself in the somewhat cumbersome situation that a currently running ssh session stops responding, often due to a lost connection. The normal ctrl+c of course doesn’t work, the ssh client catches all the usual commands, which is very handy while you are still connected to the host but not very…


tar.gz comamnds

.tar.gz – Archiving and Extracting files Create a .tar.gz file from a folder: tar czf /path/to/output/folder/filename.tar.gz /path/to/folder Extract a .tar.gz file: gunzip -c /path/to/folder/filename.tar.gz View a list of all files in a .tar.gz archive: gunzip -c /path/to/folder/filename.tar.gz | tar -tvf – Extract a single file from a .tar.gz file: gunzip -c /path/to/folder/filename.tar.gz | tar -xvf…


Use a ninja to help protect your server

From forkbomb.org/ninja/ and linuxpoison.blogspot.com DESCRIPTION Ninja is a privilege escalation detection and prevention system for GNU/Linux hosts. While running, it will monitor process activity on the local host, and keep track of all processes running as root. If a process is spawned with UID or GID zero (root), ninja will log necessary information about this…


Change server time to IST

Just a quick note on how to modify the servers current time to IST (India Standard Time) cd /etc/ etc >> ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime nice…


3 nameserver for Europe… Yea

European countries are now requiring three nameservers. I have dug up the information about it so we all know. When intodns.com reports are run, they recommend the following: “You have multiple nameservers. According to RFC2182 section 5 you must have at least 3 nameservers, and no more than 7” I went and looked up RFC2182…


Cpanel protect directories thing

Ran across a silly issue the other day while trying to password protect a couple of subdirectories. After I setup the folder above the 2 subdirectories, it worked fine. I did the exact same setup and was unable to login, slaved at this for about an hour with no productive results. I Finally broke down…


Centos issue with plesk

A recent CentOS update is evidently causing issues with the plesk daemon. I ran afoul of it when I discovered that plesk would not start up after being shut down. The daemon will be running fine, but will break on the next restart. I imagine this may affect all plesk servers until plesk pushes out…


No Posts

Sorry I haven’t been posting anything, I had a family issue which needed to be dealt with. I will resume posting Monday night. Thank you for your time and patience.