How to delete few days old log content automatically ?
In this post, we will look at an interesting command/script to delete old logs, say 5 days before. The task is useful to reduce the log file size, however we...
In this post, we will look at an interesting command/script to delete old logs, say 5 days before. The task is useful to reduce the log file size, however we...
In Linux, we use read command to take the user input. However sometimes, we may need to timeout the user input to automate the script execution in case no one...
In this post, we will look what is AWK ORS builtin variable and how to use it. To understand this, lets have a look at an example or scenario. 1....
In this post, we will look at few Regular expressions to get first or last few characters from a string. This tip is very useful to use in bash shell...
In this article, we will look at AWK NR Bultin to print the record number. Lets see few examples to understand the NR function. Example 1: Print /etc/passwd file with...
Today we will look at one interesting tip of AWK programming language or command. AWK is very interesting and useful command of Linux which can help us to perform operations...
Today we will look at a new command called “yes” on Unix or Linux system. This command echos the mentioned statement in the file endlessly until it is killed/interrupted using...
In this article, we will look an interesting topic how to recover a deleted file manually in Linux. We have gone through the debugfs introduction here. In case you are...
date command is used to display system date and time. However the default format is not very confortable to read or understand. 1. Default date format [root@nglinux ~]# date Tue...
In this article we will look how to view the filesystem journal data in Linux. I hope everyone is aware of journalism in ext3/ext4 filesystem. To check the journal metadata...