chapter2. Managing files from the command line

简介:
  1. tree 命令 yum install tree-1.6.0-10.el7.x86_64
    tree -dL 1 / 显示/目录下的文件夹

[root@centos7-test yum.repos.d]# tree -dL 1 /

/

├── bin -> usr/bin

├── boot

├── dev

├── etc

├── home

├── lib -> usr/lib

├── lib64 -> usr/lib64

├── media

├── mnt

├── opt

├── proc

├── root

├── run

├── sbin -> usr/sbin

├── srv

├── sys

├── tmp

├── usr

└── var


2. pstree -p 0 以树式显示程序列表

3.fiel 命令识别文件是那种类型

4.state 查看文件的时间戳

5.touch 更新文件的时间戳

6、

cp -a dR 递归复制目录及复制软链接 -i 提示是否覆盖

cp -avi file1 file2 复制文件

cp -avi file1 file3 dir 复制文件至dir目录

cp -ai dir1 dir2 dir3 复制目录至dir3目录


mv -i 提示是否覆盖 -v 显示过程

mv -vi file1 file2 文件改名

mv -vi file1 file3 dir 移动文件至dir目录

mv -vi dir1 dir2 dir3  移动目录至dir3目录



本文转自 pk2008 51CTO博客,原文链接:http://blog.51cto.com/837244/1892202

相关文章
|
缓存 JavaScript
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
143 0
|
6月前
|
PyTorch 算法框架/工具
The “freeze_support()“ line can be omitted if the program is not going to be frozen
The “freeze_support()“ line can be omitted if the program is not going to be frozen
111 1
error: Your local changes to the following files would be overwritten by merge
error: Your local changes to the following files would be overwritten by merge
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
188 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
|
JavaScript 前端开发 Shell
|
JavaScript 前端开发 Shell
下一篇
无影云桌面