linux常用命令之目录处理
系统大全为您提供
所在路径:/bin/mkdir
权限:所有用户
?
1
2
3
[root@localhost ~]# mkdir /tmpina/test
mkdir: 无法创建目录 “/tmpina/test”: 没有那个文件或目录
[root@localhost ~]# mkdir -p /tmpina/test
命令名称:cd
所在路径:shell 内置命令
执行权限:所有用户
命令名称:pwd
所在路径:/bin/pwd
执行权限:所有用户
?
1
2
3
4
5
6
7
8
mkdir: 无法创建目录 “/tmpina/test”: 没有那个文件或目录
[root@localhost ~]# mkdir -p /tmpina/test
[root@localhost ~]#
[root@localhost ~]# cd /tmpina/test
[root@localhost test]# pwd
/tmpina/test
[root@localhost test]# cd ..
[root@localhost china]#
命令名称:rmdir (删除空目录)
所在路径:/bin/rmdir
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[root@localhost china]# rmdir /tmpina/test
[root@localhost china]# cd /tmp
[root@localhost tmp]# ll
总计 48
drwxr-xr-x 2 root root 4096 12-01 13:05 china
drwx------ 3 root root 4096 11-30 19:15 gconfd-root
drwx------ 2 root root 4096 11-30 19:15 keyring-n4KWUI
srwxr-xr-x 1 root root 0 11-30 19:15 mapping-root
drwx------ 2 root root 4096 12-01 12:10 orbit-root
-rw-r--r-- 1 root root 5 12-01 13:00 scim-bridge-0.3.0.lockfile-0@localhost:0.0
srwxr-xr-x 1 root root 0 11-30 20:10 scim-bridge-0.3.0.socket-0@localhost:0.0
srw------- 1 root root 0 11-30 19:16 scim-helper-manager-socket-root
srw------- 1 root root 0 11-30 19:16 scim-panel-socket:0-root
srw------- 1 root root 0 11-30 19:15 scim-socket-frontend-root
drwx------ 2 root root 4096 11-30 19:15 ssh-mibWGs4219
drwx------ 2 root root 4096 11-30 19:15 virtual-root.tyft1a
drwxr-xr-x 2 root root 4096 11-30 21:48 vmware-config0
drwxrwxrwt 4 root root 4096 11-30 18:13 VMwareDnD
drwxr-xr-x 2 root root 4096 11-30 19:13 vmware-root
drwx------ 2 root root 4096 11-30 19:15 vmware-root-2083992326
[root@localhost tmp]# rmdir /tmp
rmdir: /tmp: 目录非空
命令名称:cp
所在路径:/bin
权限:所有用户
?
1
2
[root@localhost tmp]# cp -pr /tmp/test /root # 复制目录 需要参数r 保持原有属性需要参数 p
[root@localhost tmp]#
命令名称:mv 剪切和改名 不需要参数-r -p
所在路径:/bin/mv
执行权限:所有用户
?
1
2
3
4
5
6
7
8
9
10
11
12
13
[root@localhost ~]# mv install.log install3.log
[root@localhost ~]# ll
总计 59964
-rw------- 1 root root 1265 11-30 20:59 anaconda-ks.cfg
drwxr-xr-x 3 root root 4096 11-30 13:52 Desktop
-rw-r--r-- 1 root root 27265 11-30 20:58 install3.log
-rw-r--r-- 1 root root 3671 11-30 20:57 install.log.syslog
drwxr-xr-x 2 root root 4096 12-01 13:09 test
-rw-r--r-- 1 root root 4207 11-30 20:27 test2.txt
-rw-r--r-- 1 root root 779 11-30 16:28 test.txt
-r--r--r-- 1 root root 61260572 11-30 21:44 VMwareTools-9.6.2-1688356.tar.gz
drwxr-xr-x 7 root root 4096 2014-03-22 vmware-tools-distrib
以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统大全官网吧。
本文来自系统大全http://www.win7cn.com/如需转载请注明!推荐:win7纯净版
相关文章
- 纯净版 Win10 直接硬盘安装方法
- 微软为 Win10 推送 4 月扩展安全更新 KB5082200
- 微软宣布 2026 年全面重构 Win11 系统
- 微信电脑版 4.1.9 正式版发布:可发送语音消息
- 微软 XGP 价格下调!《使命召唤》新作首发不进订阅库
- 免费领!4 月 21 日起,华为门店送 Pura 90 同款特调
- Epic 喜加一:《The Stone of Madness》免费领取
- 电脑终于能发语音!微信 PC 版 4.1.9 内测更新上线
- Win11 26H1 四月更新 KB5083768 发布,提升传输稳定性
- 微软 Win11 24H2 / 25H2 发布 4 月累积更新补丁 KB5083769
系统下载排行榜71011xp
【番茄花园】Win7 64位 快速稳定版
2【纯净之家】Windows7 32位 全新纯净版
3【纯净之家】Win7 64位 Office2007 办公旗舰版
4【雨林木风】Windows7 64位 装机旗舰版
5JUJUMAO Win7 64位旗舰纯净版
6【电脑公司】Windows7 64位 免费旗舰版
7【游戏专用】Windows7 64位 装机旗舰版
8【深度技术】Windows7 64位 官方旗舰版
9【纯净之家】Windows7 SP1 32位 全补丁旗舰版
10【番茄花园】Windows7 64位 旗舰装机版
【纯净之家】Windows10 22H2 64位 企业版
2【纯净之家】Windows10 32位 官方正式版
3【雨林木风】Windows10 64位稳定版系统
4【技术员】Windows10 64位 系统纯净版
5【技术员】Windows10 64位 纯净版iso镜像
6JUJUMAO Win10 64位 纯净版镜像
7【番茄花园】Windows10 64位 专业版镜像
8【雨林木风】Windows10 64位 官方专业版
9【技术员】Windows10 64位 LTSC 纯净版
10【技术员】Windows10 64位 纯净装机版
【纯净之家】Windows11 23H2 64位 纯净专业版
2【纯净之家】Windows11 23H2 64位 游戏优化版
3【纯净之家】Windows11 23H2 64位 企业版系统
4【纯净之家】Windows11 23H2 64位 中文家庭版
5风林火山Windows11下载中文版(24H2)
6雨林木风 Win11 25H2 超级纯净版系统
7JUJUMAO Win11 24H2 64位 精简版镜像
8萝卜家园 Win11 25H2 专业版镜像
9JUJUMAO Win11 24H2 64位 专业版镜像
10【纯净之家】Windows11 23H2 64位 纯净家庭版
深度技术 GHOST XP SP3 电脑专用版 V2017.03
2深度技术 GGHOST XP SP3 电脑专用版 V2017.02
3萝卜家园 GHOST XP SP3 万能装机版 V2017.03
4番茄花园 GHOST XP SP3 极速体验版 V2017.03
5雨林木风 GHOST XP SP3 官方旗舰版 V2017.03
6Win7系统下载 PCOS技术Ghost WinXP SP3 2017 夏季装机版
7萝卜家园 GHOST XP SP3 完美装机版 V2016.10
8电脑公司 GHOST XP SP3 经典旗舰版 V2017.03
9雨林木风GHOST XP SP3完美纯净版【V201710】已激活
10雨林木风 GHOST XP SP3 精英装机版 V2017.04
热门教程
装机必备 更多+
重装工具