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

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

问题描述

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

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

find 命令似乎没有用于此目的的选项.

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

我该怎么办?

推荐答案

查看手册页 再次 ;) 它是:

Check the man page again ;) It's:

find /path/to/files -type f

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

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

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

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