- 浏览: 129170 次
- 性别:
- 来自: 北京
文章分类
Limit Search To Specific Directory Level Using mindepth and maxdepth
Find the passwd file under all sub-directories starting from root directory.
# find / -name passwd
./usr/share/doc/nss_ldap-253/pam.d/passwd
./usr/bin/passwd
./etc/pam.d/passwd
./etc/passwd
Find the passwd file under root and one level down. (i.e root — level 1, and one sub-directory — level 2)
# find -maxdepth 2 -name passwd
./etc/passwd
Find the passwd file under root and two levels down. (i.e root — level 1, and two sub-directories — level 2 and 3 )
# find / -maxdepth 3 -name passwd
./usr/bin/passwd
./etc/pam.d/passwd
./etc/passwd
Find the password file between sub-directory level 2 and 4.
# find -mindepth 3 -maxdepth 5 -name passwd
./usr/bin/passwd
./etc/pam.d/passwd
发表评论
-
glib安装
2012-08-03 17:16 8249一、glib介绍 libc指C ... -
linux下动态库安装问题(转载)
2012-08-03 17:16 4606一般我们在Linux下执行某些外部程序的时候可能会提示找不到共 ... -
管理员必备的20个Linux系统监控工具
2012-07-27 16:11 1205需要监控Linux服务器系统性能吗?尝试下面这些系统内置 ... -
Linux VPS流量查看/监测工具 -- vnStat
2012-07-27 16:03 1810各位VPSer在使用Linux VPS的时候应该还是比较 ... -
Linux流量监控工具 - iftop (最全面的iftop教程)
2012-07-27 16:02 887在类Unix系统中可以使用top查看系统资源、进程、内存 ... -
Linux监控工具的展览馆
2012-07-27 15:49 891几乎每一个Linux发行 ... -
Linux运维不可不知的性能监控和调试工具
2012-07-27 15:46 1450前言:献给现在正在作运维或者立志作运维的朋友 syss ... -
Linux 实时查看带宽
2012-07-26 17:09 1879一、实时查看带宽bmon官方站点:http://people. ... -
Linux rpm 命令参数使用详解[介绍和应用]
2012-07-16 13:33 648RPM是RedHat Package Manager(R ... -
查看linux版本
2012-07-16 13:27 692如何得知自己正在使 ... -
查看Linux是32位还是64位
2012-07-12 10:30 826查看linux机器是32位还是64位的方法: file ... -
linux 如何显示一个文件的某几行(中间几行)
2012-07-12 10:13 964【一】从第3000行开始,显示1000行。即显示3000 ... -
linux中shell变量$#,$@,$0,$1,$2的含义解释
2012-06-25 10:45 623变量说明: $$ Shell本身的PID(Proc ... -
Linux tar打包命令
2012-06-20 16:49 826范例一:将整个 /etc 目录下的文件全部打包成为 /t ... -
linux crontab 详解
2012-05-22 17:55 1711cron名词解释:系统调度 ... -
linux下free的解释
2012-05-10 18:17 801linux下free的解释: $ f ... -
Linux free详细说明
2012-05-10 18:16 796http://www.2cto.com/os/201108/9 ... -
物理CPU、物理核和逻辑核的区分
2012-05-02 16:11 3670之前看到一篇关于cpu loa ... -
Linux下判断cpu物理个数,几核,是超线程还是多核心
2012-05-02 14:41 1093from http://hi.baidu.com/coolha ... -
Linux查看CPU个数/多核/多线程的查看
2012-05-02 14:39 1588在Linux系统中,如何详 ...
相关推荐
有时我们需要递归删除空文件夹,网上找了一下,没有... find ${1:-.} -mindepth 1 -maxdepth 1 -type d | while read -r dir do if [[ -z “$(find “$dir” -mindepth 1 -type f)” ]] >/dev/null then ec
(README.md) \ -mindepth 1 -maxdepth 1 -type d \ -exec bash -c 'mkdir -p ~/$(basename "$@")' _ {} \;在创建这些目录( ~/.ssh , ~/.vim等)之前运行stow导致stow管理整个目录,这可能会有不良的副作用(托管的...
杰特逊-MCP3008 一个简单的示例,该示例通过NVIDIA Jetson nano上的SPI通过MCP3008读取模拟输入。 MCP3008是具有8个模拟输入通道的模数转换器(ADC)芯片,具有...io/ -mindepth 1 -maxdepth 1 -type d -exec touch {}/
# Assuming we are already in the directory with go.modfor package in $( find go -maxdepth 1 -mindepth 1 -type d )do go test -v -bench . -benchmem -cpuprofile ${dir} /cpu.out -memprofile ${dir} /mem....
var District1 = new District("userDistrict",{url:'/Site/District/Json',minDepth:1,autoHide : true}); }); 说明 : select 元素必须的属性: initial : 初始值 depth: 数字,连续递增的数字,增量为 1 ...
示例 1:输出:2示例 2:输出:5* Definition for a binary tree node.int minDepth(TreeNode* roo
Au Bon Roman 这是博客的源代码。 用。 供电: 的来源 的博客引擎 用于构建和托管 ... -maxdepth 1 -mindepth 1 -type d -exec sh -c ' echo "{} : $(find "{}" -type f | wc -l)" file\(s\) ' \; | sort
-d,--directory:所有参数都作为目录处理,而且会创建指定目录的所有主目录。 -D:创建<目的地>前的所有主目录,然后将<来源>复制至 <目的地>;在第一种使用格式中有用。 -g,--group=组:自行设定所属组...
vcf2snpduo 用于将有效的多样本 VCF 文件转换为 SNPduo 兼容格式的简单 Python 脚本。 描述 基于 Web 的工具能够生成...python vcf2snpduo.py --minDepth 20 --minSampleCount 4 --filterDP myInput.vcf 1> custom_duo
找到给定二叉树的最小深度 最小深度是从根节点到最近叶子节点的最短路径上的节点数量 注意:叶子节点没有子树 Example: Given binary tree [3,9,20,null,...def minDepth(self, root): :type root: TreeNode :rty
家 换句话说,我的$HOME文件。 这是一个方便的小git存储库,我可以用来跟踪我在日常工作和个人开发中使用的所有文件。 自述文件列表。...find * -mindepth 1 -type f -iname ' readme* ' -exec echo
find -mindepth 2 -type f -iname '*.mp3' | sed 's,/[^/]*$,,' | sort | uniq| while read -r dir ; do echo mp3gain -p "$dir"/*.[Mm][Pp]3 ; done 将重播增益添加到当前目录和子目录中的所有flac文件中,并将每...
-mindepth 2型f -print -exec mv {}。 ;介绍通常,音乐音频文件可以随附与其内容有关的元数据,例如自由文本描述或标签。 事实证明,标签更有用,因为它们可以提供对音频文件的更直接描述,并且可以用于与音乐相关...