Linux basic commands cd

Source: Internet
Author: User

Linux basic commands cd
Switch directory command function of cd: Switch the current directory to dirName; a folder in Windows, which is called a directory in Linux. A directory is a container that contains several sets of files and other directories. All directories are extended from the root directory, which is indicated by a forward slash. For example,/usr is a sub-directory of the root directory. The/usr/spool directory is a sub-directory of/usr. The/usr/spool/mail directory is a sub-directory of/usr/spool. Command Format: [root @ ilinux ~] # Command parameters of the cd target directory:
Command instance: instance 1: Enter the system root directory [root @ ilinux data] # cd/[root @ ilinux/] # pwd/[root @ ilinux home] # cd .. [root @ ilinux/] # pwd/instance 2: Enter the current user's home directory [root @ ilinux/] # cd [root @ ilinux ~] # Pwd/root [root @ ilinux home] # cd ~ [Root @ ilinux ~] # Pwd/root instance 3: go to the [root @ ilinux data] # cd/[root @ ilinux/] # pwd/[root @ ilinux/] # cd-/data [root @ ilinux data] # pwd/data

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.