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)