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纯净版
相关文章
- 系统之家装机大师 U 盘重装 Win10 系统详细教程
- 系统之家装机大师 U 盘重装 Win11 系统详细教程
- 系统之家装机大师 U 盘重装 Win7 系统详细教程
- 微软 Win11 24H2 / 25H2 发布 8 月累积更新补丁 KB5121003
- 微软发布 Win10 八月扩展安全更新 KB5120249!附下载地址
- iOS 27 Beta 5 细节优化:液态玻璃透明度上限提升,界面通透感更强
- 微软 8 月安全补丁修复 400 个漏洞、3 项零‑day 漏洞!
- 谷歌全方位整治 Chrome 垃圾推送通知,优化授权弹窗体验
- 微软 2026 财年数据:Win10/Win11 客户端收入仅占总营收 5%
- 微软大幅上调 Windows OEM 授权费 7%-10%!
系统下载排行榜71011xp
【番茄花园】Win7 64位 快速稳定版
2【纯净之家】Windows7 32位 全新纯净版
3【雨林木风】Windows7 64位 装机旗舰版
4【纯净之家】Win7 64位 Office2007 办公旗舰版
5JUJUMAO Win7 64位旗舰纯净版
6【电脑公司】Windows7 64位 免费旗舰版
7【游戏专用】Windows7 64位 装机旗舰版
8【深度技术】Windows7 64位 官方旗舰版
9【番茄花园】Windows7 64位 旗舰装机版
10【纯净之家】Windows7 SP1 32位 全补丁旗舰版
【纯净之家】Windows10 22H2 64位 企业版
2【纯净之家】Windows10 32位 官方正式版
3【技术员】Windows10 64位 纯净版iso镜像
4【雨林木风】Windows10 64位稳定版系统
5JUJUMAO Win10 64位 纯净版镜像
6【技术员】Windows10 64位 系统纯净版
7【技术员】Windows10 64位 纯净装机版
8【番茄花园】Windows10 64位 专业版镜像
9【雨林木风】Windows10 64位 中文精简版
10【雨林木风】Windows10 64位 官方专业版
【纯净之家】Windows11 23H2 64位 纯净专业版
2【纯净之家】Windows11 23H2 64位 游戏优化版
3【纯净之家】Windows11 23H2 64位 企业版系统
4【纯净之家】Windows11 23H2 64位 中文家庭版
5风林火山Windows11下载中文版(24H2)
6JUJUMAO Win11 24H2 64位 精简版镜像
7JUJUMAO Win11 24H2 64位 专业版镜像
8【纯净之家】Windows11 23H2 64位 纯净家庭版
9电脑公司Win11 64位高级专业版系统 V2022
10电脑公司Win11 64位专业优化版 V2021.08
深度技术 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
6萝卜家园 GHOST XP SP3 完美装机版 V2016.10
7Win7系统下载 PCOS技术Ghost WinXP SP3 2017 夏季装机版
8电脑公司 GHOST XP SP3 经典旗舰版 V2017.03
9雨林木风GHOST XP SP3完美纯净版【V201710】已激活
10雨林木风 GHOST XP SP3 精英装机版 V2017.04
热门教程
装机必备 更多+
重装工具