Simple and practical instructions for Linux

Guided reading Today, what I share with you is the experience in the process of learning Linux , write it down and share it with you.

1. Command: ls

Note: ls is often used to view files in the current directory in the Console interface, including documents, scripts, software packages, etc. Similar to Windows Explorer, it can be viewed quickly and easily.

Linux Simple and Practical Instructions Introduction Linux Simple and Practical Instructions Introduction

2. Command: cd

Note: Under the Linux system , it is often necessary to switch between different paths, view, add or run scripts, etc. With the help of the cd command, you can quickly switch the current working directory.

As shown below, with the help of cd, the path is switched to the /Desktop directory, and the files under the Desktop path can be viewed with the help of ls.

Linux Simple and Practical Instructions Introduction Linux Simple and Practical Instructions Introduction

3. Command: cp

Description: Copying (copying) files is a frequent operation. With the help of the cp command, you can quickly copy from the source address of the file to the target path.

Linux Simple and Practical Instructions Introduction Linux Simple and Practical Instructions Introduction

4. Command: mv

Note: In addition to copying files, files are often moved (cut) to the specified path (directory), and file movement can be quickly achieved with the help of the mv command.

5. Command: rm

Note: In addition to copying and moving files, sometimes it is often necessary to delete files. With the help of the rm command, files can be deleted quickly and easily.

6. Command: chmod

Description: It is convenient to change file access permissions to obtain execute, modify or read permissions for specific users.

7. Command: find

Description: You can quickly find files in a specific path and perform specific operations. As shown below, find all image files with the suffix png in the current path.

8. Command: mkdir

Description: You can use this command to create a specific directory to implement categorization management. For example, create a new directory under the current path: pics

9. Command: rename

Description: You can use this command to rename files in batches. Useful when renaming to avoid file duplication.

The original text comes from: https://www.linuxprobe.com/linux-simple.html

Guess you like

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