How to list directories first with sorted output in Linux bash shell ?
We all know ls command to list contents of a particular directory. In this quick tip, we will look how to list directories first when listing directory contents. 1. Default...
In this category, you can see all articles related to Unix or Linux operating System.
We all know ls command to list contents of a particular directory. In this quick tip, we will look how to list directories first when listing directory contents. 1. Default...
The default field separator in awk programming language is whitespace(\s). We can change the field separator based on our requirements. 1. Working of default AWK field separator i.e. whitespace. ##...
If you are getting below error message while running dd command. dd: `/dev/sda1′: cannot skip: Invalid argument Like Below: [root@nglinux ~]# dd if=/dev/sda1 of=/tmp/file4 bs=4096 count=1 skip=29661151 dd: `/dev/sda1': cannot...
Yesterday when i was creating a shell script, i want to input a path from user and make a check if the particular path exists or not. Hence in this...
In this post we will look how memory is allocated in RAM or in simple words, how physical memory is used in Linux. In case you dont know what is...
In this post, we will look at an interesting script/command to see how to sort a file’s data by using bash for loop instead of sort command. 1.Check out file...
People sometimes do think that page cache and buffer cache are one and the same thing, however there is slight difference in the understanding of both. Lets have a look...
In this article, we will see an interesting tip how to monitor dd command progress on Linux. dd command does not produce any output until it completes and generates final...
Here we will check various ways how to check a file on Linux bash shell by hiding the comments of the file and look for its content only. Ideally if...
In this post, we will check how to view hardware details of a Linux machine. This is a very common thing and most of you might be aware, however sometimes...