Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

find

Find files which are created a certain time after or before a particular file was created

August 7, 2022 by Magenaut

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.

Categories Q&A, Unix & Linux Tags date, find, shell, shell-script Leave a comment

Getting size with du of files only

August 7, 2022 by Magenaut

How can I get the size of all files and all files in its subdirectories using the du command.

Categories Q&A, Unix & Linux Tags aix, disk-usage, files, find, ksh Leave a comment

Open a file given by the result of a command in vim

August 7, 2022 by Magenaut

I find myself doing the following almost every day

Categories Q&A, Unix & Linux Tags bash, find, linux, vim Leave a comment

How to use “cat” command on “find” command’s output?

August 7, 2022 by Magenaut

I want to redirect the output of the find command to cat command so I can print the data of the given file.

Categories Q&A, Unix & Linux Tags cat, find Leave a comment

Find the top 50 directories containing the most files/directories in their first level?

August 7, 2022 by Magenaut

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. /.

Categories Q&A, Unix & Linux Tags files, find Leave a comment

Get list of subdirectories which contain a file whose name contains a string

August 7, 2022 by Magenaut

How can I get a list of the subdirectories which contain a file whose name matches a particular pattern?

Categories Q&A, Unix & Linux Tags command-line, find Leave a comment

Find directories and files with permissions other than 775 / 664

August 7, 2022 by Magenaut

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.

Categories Q&A, Unix & Linux Tags find, permissions Leave a comment

Preserve directory structure when moving files using find

August 7, 2022 by Magenaut

I have created the following script that move old days files as defined from source directory to destination directory. It is working perfectly.

Categories Q&A, Unix & Linux Tags bash, find, rename, shell-script Leave a comment

How to find and delete files older than specific days in unix?

August 7, 2022 by Magenaut

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.

Categories Q&A, Unix & Linux Tags find Leave a comment

Find files in multiple folder names

August 7, 2022 by Magenaut

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:

Categories Q&A, Unix & Linux Tags bash, find, regular-expression Leave a comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 Page10 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress