Skip to content

Magenaut

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

find

find: combining -path and -prune to exclude files and directories

August 6, 2022 by Magenaut

I have a directory /srv/tftp/pxelinux.cfg and a file /etc/mtab. I want to exclude both from find. But whatever I do, either one always is not excluded

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

Why does find print a leading ‘./’ if no paths are given?

August 6, 2022 by Magenaut

Why is it that find prints out a leading ./ to results if no paths are given?

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

Is it possible to nest a ‘find -exec’ within another ‘find -exec’?

August 6, 2022 by Magenaut

Something like the following is what I what I’m after,
but my code doesn’t work, no matter how I escape {} and + ;

Categories Q&A, Unix & Linux Tags filenames, find, text-processing Leave a comment

How to copy all HTML files from a directory tree to a single directory

August 6, 2022 by Magenaut

I want to copy all the .html files from myDir and its subdirectories to ~/otherDir. Here’s what I tried, but it doesn’t work:

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

How to find files that contain newline in filename?

August 6, 2022 by Magenaut

I am trying to find files that have a newline in the filename. But I can’t figure out what pattern to use.

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

What’s the + in find /path/ -exec command ‘{}’ + do?

August 6, 2022 by Magenaut

What’s the + in find /path/ -exec command '{}' + do? as opposed to find /path/ -exec command '{}' ;

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

Finding files on a Unix server and sorting by size

August 6, 2022 by Magenaut

I have a web server where I have run out of space and it’s causing issues with the WordPress sites I am running on them.

Categories Q&A, Unix & Linux Tags find, size, sort Leave a comment
Newer posts
← Previous Page1 … Page9 Page10
  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