9 Linux Simple and practical instruction introduction
Today, we share with you the experience of learning Linux, write it down and share it with you.
1, instructions: LS
Description: LS is often used in the console interface to view the current directory of files, including documents, scripts, software packages, and so on. Similar to Windows Explorer, you can view it quickly and easily.
2, Instructions: CD
Description: Under the Linux system, often need to switch different paths, view, add or run scripts and so on. The CD command allows you to quickly switch to the current working directory.
As shown below, with the help of the CD, the path is switched to the/desktop directory, with LS to view the desktop path files.
3, Instructions: CP
Description: Copy (copy) files, which are frequently operated. With the CP directive, you can quickly copy files from the source address to the target path.
4, Instructions: MV
Note: In addition to copying files, often move (cut) files to the specified path (directory), with the help of MV command can quickly achieve file movement.
5, Instructions: RM
Note: In addition to copying and moving files, it is sometimes necessary to delete files. The RM directive enables you to quickly and easily delete files.
6, Instructions: chmod
Description: Easy to change file access permissions to obtain execution, modification, or read permissions for a specific user.
7, Instructions: find
Description: You can quickly find files in a specific path and perform specific actions. Find all picture files with the suffix named PNG under the current path, as shown below.
8, Instructions: mkdir
Description: You can use this directive to create a specific directory to achieve collation management. For example, create a new directory under the current path: Pics
9, Instructions: rename
Description: Can use this instruction batch to rename the file. Useful when renaming, to avoid duplicate file names.