About 891,000 results
Open links in new tab
  1. How do I make "find" exclude the folder it searches in?

    The problem is that find returns the current directory (.) along with the other directories, so it deletes the processing folder as well as the subdirectories. A quick way to get around that would be to append …

  2. linux - How to find the largest directories or largest files ...

    Mar 5, 2015 · Under Linux, I'm looking for a command to list the largest file and/or the largest directories under a directory.

  3. How to get rid of errors when running find command in Linux?

    In bash, 2> /dev/null would actually work, as long as you add it as part of the find command itself, i.e., before the pipe. For example, this will work: find -type f -printf "%s %p\n" 2> /dev/null | sort -nr | head …

  4. linux - find command: search for files owned by many users in one ...

    Nov 7, 2013 · In Linux, is there a way to do a search for files owned by multiple users (or group(s) of users) with the "find" command? Something like this? find . -user john, akido

  5. Get a list of Open Ports in Linux - Super User

    Jan 8, 2013 · I need a Linux command to list all free open ports for use in an application lsof -i TCP| fgrep LISTEN Does not seen to be helping as the Ports it lists are not necessarily free for use. How …

  6. linux - Supresss the 'no such file or directory' message from 'find ...

    Apr 7, 2016 · The find command won't print "no such file or directory" if the search path (/users/dan, in this case) exists, even if there are no matches. Are you sure this directory exists?

  7. What is the difference between 'locate' and 'find' in Linux?

    Oct 14, 2010 · 5 Both the locate and find commands will find a file, but they work in quite different ways. locate will work in an offline mode: For a simple explanation, the file indexing database in Unix …

  8. Find and delete files with linux command line - Super User

    Jan 23, 2024 · Find and delete files with linux command line Ask Question Asked 1 year, 10 months ago Modified 10 months ago

  9. linux - find + how to delete files that exists only on specific folder ...

    Jul 3, 2022 · to delete files on under folder we can use the following approach with find find /home -type f -delete but how to delete recursive only the files that exists under temp folder ? lets say we have the

  10. linux - Faster alternatives to "find" and "locate"? - Super User

    Sep 29, 2011 · I will like to use "find" and locate" to search for source files in my project, but they take a long time to run. Are there faster alternatives to these programs I don't know about, or ways to spee...