NettetMethod 1: Using the diff Command. To find out the files that differ by content in two directory trees, the diff command can be used in this format: $ diff -rq directory1/ directory2/ In the above command: -r flag of the diff command is used to compare directories recursively. -q specifies to only report if files differ. Nettet2. jul. 2014 · find is what you need: $ find -type d -name '*debugerror*' or $ find -type d -name '480debugerror' if you are certain about the folder name. Share Improve this answer Follow answered Jan 21, 2011 at 13:33 thkala 2,079 1 19 23 Add a comment 8 find . -type d \ ( -iname '*error*' -o -iname '*debug*' \) Share Improve this answer Follow
Ways to Use
NettetIf the files need to be found based on their size, use this format of the ‘ find ’ command. $ find ~/ -name "*.txt" -and -size +10k. This will recursively look for files with the .txt … NettetThis video gives you a brief introduction to the Linux commands on Files and Directories Please support and encourage our channel by Like Share Subscrib... great pyramid of giza giza
How To Find a File In Linux From the Command Line - Plesk
NettetYou could also use the -path parameter of find in place of -name: find . -path "dir2/*.c" This could allow you to find files in dir2 even if dir2 were not a direct subdirectory, E.G: # find . -path "*/dir2/*.c" ./dir_a/dir2/file.c ./dir_b/dir2/file.c Share Improve this answer answered Dec 16, 2010 at 14:16 Josh 8,151 11 53 73 Add a comment 17 Nettet18. You can use find. In your case: find /dev/ -name log4j.jar. You can also use wildcards, for example. find /dev/ -name \*.jar. would find all .jar files under /dev. Note that find … Nettet6. mar. 2024 · If you're looking for a file on your Linux system, the find command makes it easy. You can use find to search for files by name, partial name, date, modification … great pyramid of giza gold top