One-Liner: Swap Space Usage (Linux Only!)
Here’s a one-liner I wrote awhile back for Linux systems to display the current usage of swap space. It only works on Linux, so it is not compatible with Unix-based operating systems such as Solaris or...
View ArticleOne-Liner: Backup File with Timestamp
I have found that one of the most useful ways of creating simple file backups before changing a configuration file, is to copy it over and append a timestamp to the end of the filename. This can easily...
View ArticleFind MAC Addresses via /proc
Sometimes, it’s easier and more reliable to use /proc as your source of information regarding devices on Linux servers. This time, we will discuss network devices. Typically, you can retrieve a MAC...
View ArticleReverse DNS Lookup from Remote netstat Connections
The other day, I needed to find out what connection were connecting to one of my Linux boxes. I’ve written a shell script one-liner that will pull all the uniq IP addresses, perform a reverse lookup,...
View Article
More Pages to Explore .....