Linux common commands--name files or folders

1. Name a file or folder (mv command and rename command)

1. The mv command can both rename and move files or folders.
(1) Rename the directory A to B
mv AB
(2) Move the /a directory to /b and rename it to c
mv /a /b/c
Note that if there is also a 1234 file in the current directory, this file will overwrite it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325648748&siteId=291194637