Ubuntu system common commands (Update)

A user switching

1. Switch user to user

su username

2. Switch to the root user

sudo su

Second, catalog creation and management

1. Create a directory

移动至所要创建的目录下
mkdir name

2. Copy the files

cp name

3. Delete directory

rm name

4. Mobile Directory

进入所在目录
mv name /destination

Third, file creation and management

1. Create a file

touch name

2. File management

Copy, move, delete and other operations and directory operations is basically the same way.

Published 17 original articles · won praise 10 · views 427

Guess you like

Origin blog.csdn.net/acslsr/article/details/103711313