sam*_*sri 22 gui files hidden-files
我想将类路径添加到我的 JDK。在寻找方法时,我注意到每个人都.profile使用终端打开文件。但是当我想用文本编辑器打开和编辑它时,我在 Home 文件夹中看不到那个文件。
谁能告诉我这是为什么。如果可能的话,我如何.profile以 GUI 方式访问主文件夹。
fro*_*boo 13
在 Linux 和 Unix 系统中,以.(点)开头的文件是隐藏文件。要使用 ls 命令查看它们,请在您的 ls添加-a或-A。
ls -a /path/to/dir
Run Code Online (Sandbox Code Playgroud)
或者
ls -A ~
Run Code Online (Sandbox Code Playgroud)
从手册man ls:
-a, --all
do not ignore entries starting with .
-A, --almost-all
do not list implied . and ..
Run Code Online (Sandbox Code Playgroud)
小智 6
您无法“看到”.profile”的原因是因为 ls 命令不显示以. -开头的文件和目录名称- 这是 Unix 中“隐藏”文件的原始设备。
您仍然可以通过键入emacs .profile (或您希望使用的任何编辑器)来编辑 .profile 。
而且,您可以通过键入ls -al 要求所有指定目录或文件参数的“长格式”(更多信息)输出来“查看”所有文件。