linux - 获取隐藏文件的统计信息(ls 或 cp)
问题描述
我有一个文件夹,其中包含一个.tmux.conf
受源代码控制的文件,我想将该文件复制到~
. 这是其中的一个ls
:
ubuntu@ip-172-180:~$ ls -alh .vim/others
total 12K
drwxrwxr-x 2 ubuntu ubuntu 4.0K May 2 19:05 .
drwxrwxr-x 6 ubuntu ubuntu 4.0K May 2 19:05 ..
-rw-rw-r-- 1 ubuntu ubuntu 706 May 2 19:05 .tmux.conf
但是,当我ls
在该目录上执行操作时,我什么也得不到:
ubuntu@ip-172-30-1-180:~$ ls .vim/others/*
ls: cannot access '.vim/others/*': No such file or directory
与cp
:
ubuntu@ip-172-30-1-180:~$ cp .vim/others/* .
cp: cannot stat '.vim/others/*': No such file or directory
复制点文件时我必须添加一些额外的参数吗?
解决方案
检查这个命令
ls -ld .[!.]*
ls -ld .vim/others/[!.]*
推荐阅读
- glsl - ShaderToy 着色器转换为 PixiJS v4 的问题
- symfony - 无需登录的 HWIOAuthBundle
- spring - 使用 JPA 存储库获取架构大小
- ember.js - 我可以将对象数组传递给 filterBy 吗?
- javascript - 滚动时使元素可见
- mysql - Sqoop 导出到 Aurora RDS 非常慢
- android - INSTALL_FAILED_MISSING_SHARED_LIBRARY?
- angular - 在角材料sidenav结构中嵌入页面
- python - 将自定义级别记录到不同的文件
- ibm-mobilefirst - MobileFirst 8.0 的灾难恢复设计