
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 …
unix - Using `find` for multiple file extensions - Super User
Apr 24, 2012 · I am using the following command for counting the lines of text in JAVA files: find . -name '*.java' | xargs wc -l How can I modify the find command parameters to match more than one file …
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?
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...
Unix/Linux find and sort by date modified - Super User
Sep 7, 2012 · How can I do a simple find which would order the results by most recently modified? Here is the current find I am using (I am doing a shell escape in PHP, so that is the reasoning for the …
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 …
linux - Find directories with all files inside older than X ... - Super ...
Is it possible on linux to find directories where all contained files and directories (and sub-directories' files etc.) are older than a given age? In other words, if a directory has one or more fi...
How to "find" while following specific symlinks on Linux?
Feb 20, 2024 · I would like to find files (with similar feature to find), but follow and only follow specific symlinks (by pattern matching). Apparently find itself cannot handle it: There is no option to setup s...
linux - find -exec with wildcard - Super User
Apr 20, 2021 · I am trying to use bash 'find' to process all folders that contain a .log file and get their sizes. However the wildcard is not working as expected. This returns nothing: find . -type d -exec test...
find - How to display file details (size, date, etc.) from Linux ...
The (slow) Linux “find” command has an option, “-ls”, to display size, date, etc. like the “ls -l” command. But the “locate” command doesn’t seem to have that. So how can I get the equivalent