- For Linux commands here is a simple explanation (simple description Oh!!) )
- For Linux and Windows Basic operation is to switch directories, because only to enter the directory, you can see the content (for Linux This is not very accurate must have LS!) But now not introduced to the LS and other commands, here for the moment think right! Don't be too ... Be flexible! )
- Basic format of the CD command:
cd [dir] # changeThe current directory to Dir. (Here is the ' Man CD ' Out of the feeling is explained so posted out!) The general meaning is, well, that's what you think.
- CD ~
pwd #进入当前用户的家目录/home/~pwd/root
- CD-
pwd #进入上一个切换到现在目录的目录/home/pwd/~]# cd-/home/pwd
- CD directory name
1 [[email protected] ~]# cd/home/ #cd后面直接添加路径名可以直接进入其目录下2pwd3 /Home
(Here is a description, with absolute paths and relative paths are available!!) )
Just with the CD command, nothing. Direct access to the home directory of the current account
pwd #root用户/pwd/pwd/root
pwd #普通用户/pwd/home/hadoop
- Cd. (Same as CD./Command Effect)
[[Email protected] home]# CD. pwd/home
- Cd.. (with CD: /Command Effect)
[Email protected] hadoop]# pwd
/home/hadoop
[Email protected] hadoop]# CD. # : represents the top level directory
[Email protected] home]# pwd
/home
- CD!$
pwd/home/pwd/! $ pwd pwd: no file or directory
pwd #注意这里的代码和上面的区别 that can help understand the use of!$ /home/! pwd/
That's it!! On the CD command, the basic usage is these!! This command is often used, so these simple commands should be remembered!! (see what they wrote ... Feel a little more, into the book are some of the conceptual stuff) I write the concept of things are not many, but the self-feeling compared to use some!! Well... The commands on the CD say this!! (Some new things will be added later.)
Linux Commands--CD command