WebJan 21, 2024 · Finding The Largest Directories On Your Server A common task on Linux is debugging large amounts of disk usage. If you’d like to view total usage for each disk, you can use df -h, or install a monitoring tool like glances which will show it more cleanly: However, this doesn’t drill down into directories and won’t find the source of the problem. WebDec 22, 2010 · Make use of find 's options There is actually no exec of /bin/ls needed; Find has an option that does just that: find . -maxdepth 2 -type d -ls To see only the one level of subdirectories you are interested in, add -mindepth to the same level as -maxdepth: find . -mindepth 2 -maxdepth 2 -type d -ls Use output formatting
linux查找文件命令find_51CTO博客_linux find命令查找文件
Webfind -mindepth 2 -maxdepth 4 -name "*.txt" 7. Display all the empty files. If you want, you can use the find command to display all the empty files in a particular directory (and its … WebFeb 28, 2024 · For example, if you tell find to search the root directory of Linux (/), it will search the entire hard drive, no matter how many subdirectories of subdirectories exist. … corona test roth vitolus
How maxdepth and mindepth works with find command?
WebJul 22, 2015 · find has option flags for printing, which are already mentioned in other answers. If we look at the problem form the perspective of executing multiple commands for the same currently processed file, find allows using multiple -exec statements. This means we could opt for using: find ./* -maxdepth 0 -exec echo {} \; -exec svnadmin verify {} \; WebApr 21, 2015 · Maxdepth option of find command not working. Can you please figure out what is the issue here. Code: $ find . -maxdepth 1 -type f -size 0 -print find: bad option -maxdepth. please find the OS details. Code: $ uname -a HP-UX g5u1216 B.11.31 U ia64 2614088426 unlimited-user license. Moderator's Comments: WebThe files exists so I would get the names using find, or mayb ls if I'm sure about the filenames, so I was looking for something like you can do with xargs ls -1q xargs ... But instead of what xargs do (turning it into one command for each file) I want a single command with many arguments with inserted before all ... corona test rewe dudenhofen