Linux Commands--CD command

Source: Internet
Author: User

    • 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.

    • Example:
  1. CD ~
    pwd            #进入当前用户的家目录/home/~pwd/root
  2. CD-
    pwd           #进入上一个切换到现在目录的目录/home/pwd/~]# cd-/home/pwd 
  3. 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
  4. Cd. (Same as CD./Command Effect)
  5. [[Email protected] home]# CD.            pwd/home
  6. 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

  7. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.