Quantcast
Channel: Notes of a SysAdmin » One-Liners
Browsing latest articles
Browse All 4 View Live

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 Article



One-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 Article

Find 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 Article

Reverse 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
Browsing latest articles
Browse All 4 View Live




Latest Images