在 Linux 中,隐藏文件通常指以 .(点)开头的文件或目录。下面是几种常见、实用的查找方法:
ls 查看隐藏文件(最常用)ls -a
. 和 ..)ls -A
ls -la
find 查找隐藏文件(推荐)find . -name ".*"
find . -type f -name ".*"
find . -type d -name ".*"
. 和 ..find . -name ".[!.]*" -o -name "..?*"
tree 查看隐藏文件tree -a
Ctrl + HAlt + ..bashrc
.ssh/
.git/
.config/
.profile
.ssh、 .config).git)结构复杂,不要随意修改如果你有具体需求(例如:只查找某种类型的隐藏文件、按时间查找、批量删除),可以告诉我,我可以给你更精确的命令。