Regex: How to print starting or last few characters in Bash shell Linux ?
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 category, you can see all articles related to Unix or Linux operating System.
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...
We know in Linux, everything is a file with some blocks usage on hard disk. Suppose you want to know the starting and end blocks of any file in Linux....
In this article, we will look at one of the interesting topic “how to force a filesystem to perform filesystem check during system boot next time”. The old trick was...
Suppose you are in debugfs command line utility to debug some filesystem or file, and want to check: a. Which filesystem you ae debugging ? b. And if the filesystem...