Skip to main content

Posts

Showing posts with the label Advance Unix Command Part1

Advance Unix Command Part1 #DOTC_Mdb

  Advance Unix Command Part1 .   Hello Everyone, In Previous blogs I discussed about basic Unix command which is commonly used. Today I will discuss some advance command of Unix which is mostly used in organization.   Please see my below blogs related to Basic Unix command for your reference. https://dheeraj60.blogspot.com/2020/08/basic-and-some-advance-command-in-unix.html https://dheeraj60.blogspot.com/2020/08/basic-and-commonly-used-command-in-unix.html Let’s Start with Unix command. Find Command to find the modified files 30 days ago. Note : We can give any number of days Important : -mtime +30 means you are looking for a file modified 30 days ago and -mtime -30 means less than 60 days. Command is as below: find /home -iname "*.txt" -mtime - 30 –print Find Command to Display   content of file on screen that were last modified 30 days ago. find /home/   -iname "*.txt" -mtime -30 -exec cat {} \; Below is the output of above commands in putty Termina