Linux - 如何递归搜索具有特定扩展名的文件? [英] Linux - how to recursively search for files with certain extensions?

查看:123
本文介绍了Linux - 如何递归搜索具有特定扩展名的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的Linux系统(专用网站托管)上找到所有 .psd 文件。我试过这样的: ls -R * .psd ,但那不起作用。建议?

I need to find all the .psd files on my Linux system (dedicated web hosting). I tried something like this: ls -R *.psd, but that's not working. Suggestions?

推荐答案

您可以使用以下find命令来执行此操作:

You can use the following find command to do that:

find /path/to/search -iname '*.psd'

iname 执行不区分大小写的搜索。

iname does a case insensitive search.

这篇关于Linux - 如何递归搜索具有特定扩展名的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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