-maxdepth 0:最大目录层级为0,表示只针对当前目录本身(比如/opt/kevin)进行搜索操作或du -sh 统计操作。 -maxdepth 1:最大目录层级为1,表示针对/opt/kevin/ 路径进行搜索操作或du -sh 统计操作。 -maxdepth 2:最大目录层级为2,表示针对/opt/kevin/xxx/ 路径进行搜索操作或du -sh 统计操作。 [root@local...
[root@pc1 dir001]# find ./ -maxdepth1-name"*.txt"## -maxdepth限制了查找了最深的目录, 是上限./ww.txt [root@pc1 dir001]# find ./ -mindepth2-name"*.txt"## -mindepth限制了查找的最浅的目录,是下限./test01/kk.txt ./test02/mm.txt ./test02/dirxx/diryy/tt.txt 。
[root@localhost kevin]# find . -maxdepth 0 -type f 但是如果当前路径加入"*"使用"-maxdepth 0" 效果和 当前路径不加"*"使用"-maxdepth 1" 是一样的! [root@localhost kevin]# find ./* -maxdepth 0 -type f ./haha ./haha1 ./haha2 ./haha3 ./haha4 [root@localhost kevin]# find . -...
通过指定-maxdepth 1选项,我们让find命令只在test目录下一级进行查找,而不会进一步查找其子目录。 在实际应用中,maxdepth选项可以帮助我们更加灵活地控制find命令的查找深度,提高查找效率同时减少不必要的递归查找。但需要注意的是,在使用maxdepth选项时,一定要慎重考虑深度的设置,避免过深或过浅的查找导致不必要的结果...
path (default: filename only) -d, --max-depth <depth> Set maximum search depth (default: none) -E, --exclude <pattern> Exclude entries that match the given glob pattern -t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l), executable (x), empty (e...
-maxdepthlevels Descends at mostlevelslevels of directories below the command line arguments. Thelevelsargument muse be a nonnegative integer. If you specify-maxdepth 0, thetestsandactionsare applied to the command line arguments only. For more information, see the TESTS and ACTIONS sections of ...
/usr/sbin:/usr/bin:/root/chengxu/JDK/jdk1.8.0_191/bin:/root/chengxu/JDK/jdk1.8.0_191...
0 4437 find命令 2019-12-20 15:43 −find /etc/ -name passwd ##查找/etc/下名称中带有passwd的文件find /etc -maxdepth 1 -name passwd ##查找/etc/下名称中带有passwd的文件,查找一层。find /etc -name *.conf ##查找/etc... 书和田 ...
path (default: filename only) -d, --max-depth <depth> Set maximum search depth (default: none) -E, --exclude <pattern> Exclude entries that match the given glob pattern -t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l), executable (x), empty (e...
Optimal parameters for the best estimator * {'boosting_type': 'gbdt', 'class_weight': None, 'colsample_bytree': 0.5989147519171187, 'importance_type': 'split', 'is_unbalance': True, 'learning_rate': 0.1, 'max_depth': -1, 'min_child_samples': 152, 'min_child_weight': 0.01, 'min...