I want to write one script where I need the below function :
List all the files which are created in last 24 hours. If I give the
find
command withctime
option then it list all files which are change (permission & woner)find . -ctime -1
But I need the list of new files which are created not modified or change in last 24 hours.
List all the files which are removed in last 24 hours. If I removed any files then how I get those files name.
How to get the birth time (Creation time) of a file. There is one format in
stat
command which give the birth time of a file%w Time of file birth, human-readable; - if unknown
%W Time of file birth, seconds since Epoch; 0 if unknown
abc@123:# stat -c %w tzls.txt - abc@123:#
But it is not giving any output. My linux filesystem is ext3.