隐藏文件现形记!银河麒麟玩家的必备技能

引言

想象一下,银河麒麟的文件夹就像一个有夹层的抽屉。平时你看到的是最常用的东西(普通文件),而一些重要的小工具(系统配置、程序设置)则藏在 隐藏的夹层 里文件名以 "."开头。想找到它们?一点儿也不神秘!无论你是习惯 点点鼠标 的普通用户,还是喜欢 敲命令行 的技术咖,都有对应的方法技巧。跟着下面的方法试试看,操作简单到超乎想象,分分钟解锁系统管理的新技能!

一、图形界面(文件管理器)

1.快捷键法

打开文件管理器,直接按 Ctrl + H 组合键,隐藏文件(以 . 开头的文件/文件夹)会立即显示。再次按Ctrl + H 可重新隐藏。

2.菜单选项

在文件管理器顶部菜单栏中,点击 “查看” → 勾选 “显示隐藏文件”(此方法只适用于桌面版银河麒麟系统)。

二、命令行终端

1.使用ls命令

示例:

[root@localhost ~]# cat /etc/.kyinfo 
[dist]
name=Kylin
milestone=Server-V10-SP3-General-Release-2303
arch=x86_64
beta=False
time=2023-03-24 14:53:53
dist_id=Kylin-Server-V10-SP3-General-Release-2303-x86_64-2023-03-24 14:53:53

[servicekey]
key=0230044

[os]
to=
term=2024-07-01

[root@localhost ~]# ls -a
.     下载             .bash_profile  .face                           rpmbuild                              .xsession-errors
..    音乐             .bashrc        .gnupg                          .rpmmacros                            .xsession-errors.old
公共  桌面             .cache         initial-setup-ks.cfg            .ssh
模板  anaconda-ks.cfg  .config        .lesshst                        syncthing-linux-amd64-v1.28.0
视频  .applet          .cshrc         .local                          syncthing-linux-amd64-v1.28.0.tar.gz
图片  .bash_history    .dbus          nginx-1.28.0-1.ky10.x86_64.rpm  .tcshrc
文档  .bash_logout     .esd_auth      .recentAppLog                   .viminfo
[root@localhost ~]# 
# -a参数:显示所有文件(包括隐藏文件,即以.开头的文件)

2.使用find命令

示例:

[root@localhost ~]# find /root -name ".*" -maxdepth 1
find: warning: you have specified the global option -maxdepth after the argument -name, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
/root/.bash_logout
/root/.bash_profile
/root/.bashrc
/root/.cshrc
/root/.tcshrc
/root/.gnupg
/root/.cache
/root/.dbus
/root/.config
/root/.esd_auth
/root/.local
/root/.face
/root/.recentAppLog
/root/.bash_history
/root/.xsession-errors.old
/root/.lesshst
/root/.ssh
/root/.rpmmacros
/root/.viminfo
/root/.xsession-errors
/root/.applet
[root@localhost ~]# 
# 查找/root目录下以.开头的文件/文件夹,-maxdepth 1 参数限制只搜索当前目录

总结

✨ 技能一键解锁!
记住这两招,银河麒麟隐藏文件再也难不倒你:
✅ 桌面党 → 狂按 Ctrl+H(魔法开关实锤了!)
✅ 极客派 → 终端甩出 ls -a(所有文件瞬间“裸奔”)
🔥 进阶提示:碰到名字带.的“神秘文件”,先查用途再动手(别问为啥系统崩了…)
快去试试——你的文件管家技能+1! 💻🔍

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

NotStrandedYet

如果对您有帮助,5毛1块不嫌少

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值