linux (command)

Copyright: qq836678589 https://blog.csdn.net/weixin_43924623/article/details/91351578

cd

$cd ..Into the parent directory
$cd /into the root directory
$cd -to fall back to the last directory

pwd

$pwd -PPhysical path to display the current directory
$pwd -Ldisplays links to current directory

mkdir

$mkdir -p zhou/testCreating multiple directories.
$mkdir -m 777 wuWu directory permissions set to [rwxrwxr-x].
$mkdir -vp zhou/wuCreate a directory and display.

rm

$rm * rfExecuting this command will destroy the entire system under the root directory.
$rm *.logYou can speak suffix .log file interactive deleted.

mv

$mv a b Will file a renamed b, or move a file into a directory b

which

$which gcc If the installation is determined whether the installation is given gcc path.

whereis

$whreeis Retrieve the file and determine location.

Guess you like

Origin blog.csdn.net/weixin_43924623/article/details/91351578