博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux基础命令:cd
阅读量:4349 次
发布时间:2019-06-07

本文共 722 字,大约阅读时间需要 2 分钟。

命令简介:

  该命令用来切换当前目录。cd 是change directory 的缩写

命令语法:

  cd  [-L|-P]  [dir]  

命令用法

1. 切换到指定目录

[test@VM_0_15_centos ~]$ cd  python/

2. 切换到上级目录

[test@VM_0_15_centos ~]$ cd  python/[test@VM_0_15_centos python]$ pwd/home/test/python[test@VM_0_15_centos python]$ cd  ../[test@VM_0_15_centos ~]$ pwd/home/test

3. 切换到用户家目录

[test@VM_0_15_centos linux]$ cd  ../linux/[test@VM_0_15_centos linux]$ pwd/home/test/linux[test@VM_0_15_centos linux]$ cd  ~[test@VM_0_15_centos ~]$ pwd/home/test

4. 切换到根目录

[test@VM_0_15_centos ~]$ cd  /[test@VM_0_15_centos /]$ pwd/

5. 返回上次所在目录

[test@VM_0_15_centos ~]$ pwd/home/test[test@VM_0_15_centos ~]$ cd  linux/[test@VM_0_15_centos linux]$ cd  -/home/test

 

转载于:https://www.cnblogs.com/wzy23/p/11374311.html

你可能感兴趣的文章
构建基于Jenkins + Github的持续集成环境
查看>>
CodeForces - 1183E Subsequences (easy version) (字符串bfs)
查看>>
Pile 0003: RSSI
查看>>
Python简介
查看>>
voa 2015 / 4 / 13
查看>>
搭建一个Flv视频播放服务器
查看>>
rownum和order by的执行顺序问题
查看>>
hive学习(三) hive的分区
查看>>
Android搜索自动提示功能 AutocompleteTextView
查看>>
PLSQL Developer 客户端没有TNS监听,无法连接数据库
查看>>
跨域iframe高度自适应(兼容IE/FF/OP/Chrome)
查看>>
第三次作业
查看>>
JS_高程3.基本概念(6)函数
查看>>
CentOS下配置防火墙 配置nat转发服务
查看>>
Django(二)
查看>>
Remove Duplicates from Sorted List II
查看>>
根据访问ip的地区跳转到指定地址
查看>>
List集合分页显示
查看>>
取石子。。。nyoj---23
查看>>
java POI读取excel 并保存在数据库中
查看>>