shell里面的一些条件判断
2010-09-08 15:11
295 查看
cd
命令说明:切换进入指定目录使用方式:cd [dirName]cd [相对路径或绝对路径].代表此层目录..代表上层目录-代表前一个工作目录~代表“目前用户身份”所在的主文件夹命令实践:[root@yubinghost ~]# cd /home/yubing 绝对路径[root@yubinghost yubing]# cd. #cd后没有加空格,出现错误-bash: cd.: command not found[root@yubinghost yubing]# cd .[root@yubinghost yubing]# cd .. 目前目录位置的上一层目录[root@yubinghost home]# cd - 去到前一个工作目录/home/yubing[root@yubinghost yubing]# cd[root@yubinghost ~]# cd /home/yubing[root@yubinghost yubing]# cd ~ 去到自己的home目录[root@yubing /]# cd /home/yubing [root@yubing yubing]# pwd/home/yubing[root@yubing yubing]# cd ../.. 跳到目前目录的上上两层[root@yubing /]#
本文出自 “天道酬勤” 博客,请务必保留此出处http://yubing208.blog.51cto.com/7132995/1194406
命令说明:切换进入指定目录使用方式:cd [dirName]cd [相对路径或绝对路径].代表此层目录..代表上层目录-代表前一个工作目录~代表“目前用户身份”所在的主文件夹命令实践:[root@yubinghost ~]# cd /home/yubing 绝对路径[root@yubinghost yubing]# cd. #cd后没有加空格,出现错误-bash: cd.: command not found[root@yubinghost yubing]# cd .[root@yubinghost yubing]# cd .. 目前目录位置的上一层目录[root@yubinghost home]# cd - 去到前一个工作目录/home/yubing[root@yubinghost yubing]# cd[root@yubinghost ~]# cd /home/yubing[root@yubinghost yubing]# cd ~ 去到自己的home目录[root@yubing /]# cd /home/yubing [root@yubing yubing]# pwd/home/yubing[root@yubing yubing]# cd ../.. 跳到目前目录的上上两层[root@yubing /]#
本文出自 “天道酬勤” 博客,请务必保留此出处http://yubing208.blog.51cto.com/7132995/1194406
相关文章推荐
- shell 的一些条件判断
- shell里面if条件判断
- Shell中[]里面的条件判断
- 关于shell里面条件判断
- linux:shell 编程 条件判断 以及 判断条件
- shell脚本条件判断
- SHELL学习笔记----IF条件判断,判断条件
- shell条件判断
- shell循环sleep while例子 条件判断
- Shell 条件判断总结
- 在Shell里面判断字符串是否为空
- shell脚本--if判断(数字条件、字符串条件)
- shell脚本使用两个数组,判断一个变量是否在数组里面的例子
- [J2EE]使用 EJB 组件你需要了解些什么呢?--是一些关于使用条件的判断标准
- shell 脚本学习之判断条件
- shell中条件判断if中的-z到-d的意思
- Linux_shell条件判断if中的-a到-z的意思
- shell 条件判断语句参数介绍
- Bash_Shell if 条件判断
- Shell脚本IF条件判断和判断条件总结