These are some of the Linux command line commands I use, often on a daily basis, in my adventures as a sysadmin.
Swapping is the process of moving data from a system’s memory (RAM) to a preconfigured space on the hard drive, known as the swap space. Enabling swap, in many cases, is an easy and cheap way to squeeze a little more from a server. The most beneficial feature of swap is that it allows your … Continued
1. Update the current hostname
sudo hostname new-hostname
This command will instantly update the hostname which prevents having to reboot. It is not, however, persistent so your changes will be lost the next time you do reboot. 2. Update hostname File
sudo nano /etc/hostname
Delete the current hostname and replace it with yours. This makes the new hostname persist … Continued
Despite what some say, There are several good reasons that you might want to have multiple IPs assigned to one server. If you’re using an AWS EC2 Linux instance then adding additional IPs is fairly simple. Here’s how it’s done.
Blocking traffic to port 22 (SSH) is one of the first steps you should take when hardening a server. Locking down port 22 not only keeps unwanted people from gaining access to your server, it also helps prevent a certain type of DDoS attacks called SYN floods. Using IPTables and a whitelist approach is the … Continued