Home > OS >  linux
linux

Time:11-15

The mkdir/test1 and mkdir test2
Both are directory, could you tell me what are the differences, their position in where

CodePudding user response:

Mkdir/test1 is directory in the root directory test1, natural under/test1
Mkdir test2 is under current path to build directory test2
You can use the PWD to view the current path

CodePudding user response:

Absolute path and the relative path

CodePudding user response:

Mkdir/the test is to create a folder in the root directory of the test
Mkdir test is created in the current folder if the current under the root directory is created under the root of the
A full path to an absolute path