In this post I will show you how to use bash redirection to write to a file using the cat command. This is a very simple trick that you can use for all sorts of things when it comes to bash scripting including setting up certain configuration files when more powerful options aren’t available or aren’t worth using. You can also use this in your bash scripts to create files from scratch if need be without having to have separate files or download them remotely.
In this post I will be showing you some of the useful IPMI commands which can be used to remotely interact with your servers for things such as power cycles, serial over lan, and more. This guide will assume that your server is already setup and capable of receiving IPMI commands.
If you are coming from a Windows desktop and looking for a way to install Notepad++ on your new Linux desktop then you are in luck. You actually have 2 options available for you, one of them is to install Wine (to run Windows applications inside Linux), the other is to install Notepadqq which is a Notepad++ clone that runs natively in Linux (no wine required).
In this post I will be showing you how to pack/compress and unpack/decompress files in Linux using a variety of utilities such as the tar command as-well as others.
In this quick post I will show you how to check your available or free memory/RAM, as-well as how to see what processes are taking up what percentage (top/htop). There are multiple ways to accomplish this so if I miss any please feel free to comment below so I can add them for any future visitors.
In this post I will be showing you how to manage services in Linux. This includes listing all available services and their respective status, starting, stopping, checking status, and restarting services. This is something that everyone who runs a Linux server or desktop needs to know, and while the title may sound intimidating it’s really quite simple.
In this post I will be showing you how to use some of the basic loop functions available in bash scripting. These loops (especially a basic for loop) come in handy and are used pretty much daily for me. You can run these loops directly from the terminal, you do not need to actually save them as a script to execute them which makes them even more useful. I will get into using loops to iterate through arrays and other useful tricks on a later post so keep an eye out if you liked this one! =)
In this post I will show you how to install and run Rootkit Hunter on your Linux based servers. Rootkit Hunter does what it’s name suggests, hunts for potential rootkits on your server. If you are infected you can try to clean it but you really may want to nuke the server and start from scratch or revert to a previous backup/snapshot if possible. For more information about RKHunter please visit the official Rootkit Hunter website.
In this guide I will be showing you how to install and enable the SAR utility/command on Linux servers. The SAR command can be used to look at performance history, and is really useful for identifying when CPU spikes occurred and more. And example of one of the outputs that SAR is capable of delivering is below.
Today I will be showing you how to use a basic expect script inside of your bash scripts for automation. Expect works just like the name sounds, expect to see a prompt or other piece of text and then send the response. With this you can do things such as automatically entering password for SSH (not recommended for daily use), automatically answer prompts, etc.