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纯净版
系统下载排行榜71011xp
番茄花园 Win7 64位 快速稳定版
2【纯净之家】Windows7 64位 最新纯净版
3【老机专用】Windows7 32位 精简旗舰版
4【纯净之家】Windows7 SP1 64位 全补丁旗舰版
5JUJUMAO Win7 64位 最新纯净版
6【纯净之家】Windows7 32位 最新纯净版
7【纯净之家】Windows7 SP1 64位 办公旗舰版
8【雨林木风】Windows7 64位 装机旗舰版
9【电脑公司】Windows7 64位 免费旗舰版
10【国庆献礼】JUJUMAO Win7 SP1 64位旗舰克隆纯净版
【纯净之家】Windows10 22H2 64位 专业工作站版
2【纯净之家】Windows10 22H2 64位 游戏优化版
3【纯净之家】Windows10 企业版 LTSC 2021
4【纯净之家】Windows10企业版LTSC2021 纯净版
5【深度技术】Windows10 64位 专业精简版
6联想Lenovo Windows10 22H2 64位专业版
7JUJUMAO Win8.1 Up3 X64 极速精简版v2019.11
8【纯净之家】Windows10 22H2 64位 专业精简版
9【雨林木风】Windows10 64位 专业精简版
10【纯净之家】Windows10 22H2 64位 专业办公版
【纯净之家】Windows11 23H2 64位 游戏优化版
2【纯净之家】Windows11 23H2 64位 专业工作站版
3【纯净之家】Windows11 23H2 64位 纯净专业版
4风林火山Windows11下载中文版
5【纯净之家】Windows11 23H2 64位 最新企业版
6【纯净之家】Windows11 23H2 64位 中文家庭版
7JUJUMAO Win11 24H2 64位 专业版镜像
8深度精简 Win11 ESD 全新优化纯净版V2024
9【纯净之家】Windows11 23H2 64位专业精简版
10【纯净之家】Windows11 23H2 64位 纯净家庭版
深度技术 GHOST XP SP3 电脑专用版 V2017.03
2深度技术 GGHOST XP SP3 电脑专用版 V2017.02
3Win7系统下载 PCOS技术Ghost WinXP SP3 2017 夏季装机版
4萝卜家园 GHOST XP SP3 万能装机版 V2017.03
5番茄花园 GHOST XP SP3 极速体验版 V2017.03
6雨林木风 GHOST XP SP3 官方旗舰版 V2017.03
7电脑公司 GHOST XP SP3 经典旗舰版 V2017.03
8雨林木风GHOST XP SP3完美纯净版【V201710】已激活
9萝卜家园 GHOST XP SP3 完美装机版 V2016.10
10雨林木风 GHOST XP SP3 精英装机版 V2017.04
热门教程
装机必备 更多+
重装工具