Rearrange with linux sort command
One of the best ways to order the contents of a file or an output is to use the Linux sort command instead of making a script to do so and save administration time. The sort command is one of…
One of the best ways to order the contents of a file or an output is to use the Linux sort command instead of making a script to do so and save administration time. The sort command is one of…
In this post I’m going to explain two of the openssl options to perform a certificate validation and determine whether it is revoked or not. But before jumping to the topic, let’s briefly review some PKI (Public Key Infrastructure) fundamentals.…
The pstree command works similarly to ps since it lists the current running processes in the Linux system but in a more graphical way. Is not a typical command, but it might be interesting to know about it since it…
Linux provides many commands, that can be used for many different purposes and situations, to either obtain information quickly or to solve any problem with a script. One of them serves for counting lines, words or characters in a file…
Here’s another useful Linux command, the ps, that will show which processes are running in the system to troubleshoot, audit, forensics and so on. Since it is commonly used for these purposes, the recommendation is to get familiar with it…
The cut Linux command is a useful tool to extract the desired data from a delimited format file or output like csv, xml or json. Normally, depending on the type of file, it needs some preprocessing before gathering successfully the…
When you troubleshoot or audit a system by handling its log files, it might be useful to get the first lines of them in order to know, the timestamp or date of when the file was created or newly rotated,…
One of the most commonly used commands in Linux systems to handle the date inside the files is the tail command which basically, prints the last lines of it as you may presume with the command name. Although it seems…
Running processes in the background in Linux systems represents one of the most common ways to perform some batch process or long running process in parallel, without keeping busy your current terminal and consequently forcing you to wait until the…
One of my favourite Linux commands is less which is also the one that I use the most when the troubleshooting activities needs to review some sort of logs, config files, audit files and so on. Thanks to this great…
In this post it will describe the locate command, which is a great tool to search files and directories in the system. This command does not work alone and needs to be helped by another one called updatedb used to…
The touch is one of the most basic Linux commands for empty file creation and for changing the file metadata timestamps. You normally don’t need to install it specifically because it comes with the Linux system. The touch syntax command…