linux命令cd
来源:互联网 发布:手机淘宝卖家如何退款 编辑:程序博客网 时间:2024/05/17 04:44
命令简介:
该命令用来切换当前目录。cd 是change directory 的缩写
命令语法:
cd [-L|-P] [dir]
使用示例
1:切换到当前目录的上一级目录
1: [root@DB-Server sysconfig]# pwd
2: /etc/sysconfig
3: [root@DB-Server sysconfig]# cd ..
4: [root@DB-Server etc]# pwd
5: /etc
2:切换到当前目录的上上两层目录
1: [root@DB-Server etc]# cd sysconfig/
2: [root@DB-Server sysconfig]# pwd
3: /etc/sysconfig
4: [root@DB-Server sysconfig]# cd ../..
5: [root@DB-Server /]# pwd
6: /
3:切换到用户的宿主目录
1: [root@DB-Server sysconfig]# pwd
2: /etc/sysconfig
3: [root@DB-Server sysconfig]# cd ~
4: [root@DB-Server ~]# pwd
5: /root
4:切换到根目录
1: [root@DB-Server ~]# cd /
2: [root@DB-Server /]#
5:切换到某个目录,例如/etc/sysconfig/
1: [root@DB-Server ~]# cd /etc/sysconfig/
6: 返回进入当前目录前所在目录
1: [root@DB-Server ~]# cd /etc/sysconfig/
2: [root@DB-Server sysconfig]# cd -
3: /root
原文地址:http://www.cnblogs.com/kerrycode/p/3425103.html
0 0
- 【linux命令】cd命令
- linux命令:cd命令
- linux命令:cd命令
- linux 命令 cd
- Linux cd 命令
- linux cd命令介绍
- linux cd 命令
- Linux 命令之 cd
- linux中cd ~命令
- linux命令:cd
- linux cd 命令
- Linux cd命令
- Linux 学习 CD命令
- Linux cd 命令
- cd命令--linux
- linux命令-cd
- Linux常用命令:cd命令
- linux命令:cd ~/..ssh/
- 单片机控制点阵字符显示及字模提取原理
- PowerDesigner快速入门
- java的字节流与字符流
- 在Linux中使用文件系统NTFS和exFAT的小结
- 申请微信支付相关事宜
- linux命令cd
- Hibernate与MyBatis的区别
- Ipad/Iphone键盘输入慢、切换数字键盘慢的问题-iOS
- PCL在win10环境Visual Studio2015中的配置
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes) 今天要
- sdn是什么?
- Tersorflow深度学习入门—— CIFAR-10 训练示例报错及解决方案
- mac 下使用wireshark监听网络上的数据
- Android 快速开发(一),封装一个 TopBarBaseActivity