Find files which are created a certain time after or before a particular file was created
I need a shell script which finds files which are created 1 hour before or 1 hour after a particular file (test.txt) was created.
I need a shell script which finds files which are created 1 hour before or 1 hour after a particular file (test.txt) was created.
How can I get the size of all files and all files in its subdirectories using the du command.
I find myself doing the following almost every day
I want to redirect the output of the find command to cat command so I can print the data of the given file.
How can I use find to generate a list of directories which contain the most numbers of files. I’d like the list to be from highest to lowest. I’d only like the listing to go 1 level deep, and I’d typically run this command from the top of my filesystem, i.e. /.
How can I get a list of the subdirectories which contain a file whose name matches a particular pattern?
I am moving a website from one server to another and Git does not store metadata such as file permissions. I need to find the directories and files that are not 775 / 664 respectively.
I have created the following script that move old days files as defined from source directory to destination directory. It is working perfectly.
I have got one folder for log with 7 folders in it. Those seven folders too have subfolders in them and those subfolders have subfolders too. I want to delete all the files older than 15 days in all folders including subfolders without touching folder structrure, that means only files.
I am trying to list all the files from dir1, dir2, dir3 and dir4 which might be anywhere in as a sub directory of my cwd using the find command. I tried the following with no success: