Linux commands (1)

Source: Internet
Author: User

PWD: View your current path

(shell) bash is equivalent to the console, enter after the command based on the string to find the command after execution.

There should be a default path to find the corresponding command, specified by the environment variable path.

The command to view PATH is: Echo $PATH, and then several directories appear, separated by:. Find the executable program with no PWD in order.

PWD executable program in the/bin/pwd directory,/bin generally store such programs.

LS: Displays the folder under the current directory, and if you add-l later, more detailed information will be displayed.

CD: Toggle Path

Cd.. Return to the top level directory

mkdir: New Directory

RMDIR: Deleting a folder

Touch: New File

CP: Copying files

RM: Deleting files

Cat: Display the contents of the file to the terminal

Clear: Clear Screen

Summarize:

After you enter a string in the shell and return to it:

1.shell a program with the same name is found in the directory set by the environment variable path according to the first string

2. Then execute it

We can set the directory after path to add our own specified directory

Export PATH = $PATH:;/own Directory

The reason for command not found appears:

1. The program is not found in the directory specified by path

2. Find the next found that the program is not an executable program, this will show permission denied

You can open a program with a relative path, such as/home/book/xxx

  

  

  

  

  

Linux commands (1)

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.