This video is about date command in linux. I’ve discussed some options commonly used in date command for the sake of getting different date formats. For example, I’ve dealt with below questions. 1. Default Date 2. Print date like Thu, 24 Jan 2019 3. Print date like DDMMYYYY 4. Print date like January, 2019 5. Print…
Category: Tips and Tricks
grep Command Tutorial – 1(Video)
How To Recover A Superblock
If fsck or mount commands give errors then pretty good chances are there that the superblock is corrupt. The dd command comes to rescue. We know that the superblock resides in 31st block also. So, to recover that we use the following command: # dd count=1 bs=4k skip=31 seek=1 if=/dev/my_lv of=/dev/my_lv count: How many blocks…
Ways To Zip The Directory Structure of Unix
How To Split or Cut A File Vertically(Column wise)
In Unix environment it’s often required to print specific columns from a file. If the rows of file are having some proper delimiters then other Unix command like awk come into picture and quite handy. But if say you want to print out the 5th character and then 7th to 16th character, then other commands fail and in such situations the cut command comes to rescue. Here is short primer of cut command.