如何查找排除符号链接的文件? [英] How to find files excluding symbolic links?

查看:145
本文介绍了如何查找排除符号链接的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Linux中找到遵循特定模式的文件,但我对符号链接不感兴趣。

对于 find 命令似乎没有选项。



我该怎么办?

解决方案

检查 man page again):

  find / path / to / files -type f 

type f 仅搜索常规文件 - 不包括符号链接。

I want to find files in Linux that follow a certain pattern but I am not interested in symbolic links.

There doesn't seem to be an option to the find command for that.

How shall I do ?

解决方案

Check the man page again ;) It's:

find /path/to/files -type f

type f searches for regular files only - excluding symbolic links.

这篇关于如何查找排除符号链接的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆