servercheap dmesg

Dmesg Explained

3 min read The Linux kernel is the core of the operating system that controls access to the system resources, such as CPU, I/O devices, physical memory, and file systems. The kernel writes various messages to the kernel ring buffer during the boot process, and when the system is running. These messages include various information about the operation of the system. The kernel ring buffer is a portion of the physical memory that holds the kernel’s log messages. It has a fixed size, which means once the buffer is full, the older logs records are overwritten. The dmesg command-line utility is used to print and…

7 basic steps to secure your Linux server

3 min read This tutorial will introduce you to basic Linux server security. While it focuses on Debian/Ubuntu, you can apply everything presented here to other Linux distributions. I also encourage you to research this material and extend it where applicable. 1. Update your server The first thing you should do to secure your server is to update the local repositories and upgrade the operating system and installed applications by applying the latest patches. On Ubuntu and Debian: On Fedora, CentOS, or RHEL: 2. Create a new privileged user account Next, create a new user account. You should never log into your server…

Command line tools for data analysis in Linux

6 min read So you’ve landed on some data you want to analyze ? The Linux terminal can be faster, more powerful, and more easily scriptable. So let’s try out a few of the many simple open source tools for data analysis and see how they work. head and tail First, let’s get started by getting a handle on the file. What’s in it? What does its format look like? You can use the cat command to display a file in the terminal, but that’s not going to do us much good if you’re working with files more than a few dozen lines. Enter head and tail. Both…