To See headers only and not the HTML response from a web server, you can use the command line CURL program to do it. Output
How to Remove Spaces or Other Characters From File Names on Mac
Both these commands work on most Linux and OSX/Mac machines. Replace spaces with dashes in files in a directory Replace a range of characers using
Get Folder Sizes in Current Directory Ubuntu
This command will get you a -s summarized, -h human readable, listing of the . current directory and all subdirectories disk usage totaled to one
Search (Grep) Entire Hard Drive For String
This command will search through your hard drive using the string command piped to the grep command. Swap /dev/sdc for your actual drive which can
How to Backup and Restore with mysqldump
Backing up and restoring a MySQL or MariaDB database is super easy. I’ve listed out a few different ways you can do it. Example MariaDB/MySQL
Port Scan the Entire Internet in 5 Minutes?
One of my favorite sub-reddits is /r/coolgithubprojects. I check it out a few times a week looking for interesting open source projects. One interesting project
Using netstat to Monitor Connections and DDoS on Your Server
Netstat is a wonderful Linux command to peak into networking processes on your server. Combined with other commands such as sort netstat can become extremely
How To Setup a Swap Partition in Ubuntu on EC2
Many cloud servers don’t come with a swap partition setup by default, including Amazon EC2 servers. Luckily it’s fairly simple to setup. Below were using
How To Dump a Man Page to a Text File
Dumping a man page is easy, just redirect the output to standard outvia a bash as below.
Easy Log Rotation with Logrotate On Ubuntu
You don’t need to write your own log rotation service in Linux, you can use the built in service called logrotate super easily. Below is