[Linux]: create soft link under Linux (shortcut)

Time:2021-1-21

In Linux, we can also create a shortcut, which is exactly the same as in windows. We can directly enter the directory of the original folder or the original file without clicking the original file. The command to create a soft link (shortcut) is as follows:

ln -s exam exam2

This shows that we want to create a shortcut to exam, and the name of the shortcut is exam2. When no shortcut is created, the files in our home directory are as follows:

 

 

After we create it with the ﹣ ln command:

 

So how do we know which files are shortcuts and which links are original files? Use LS command to observe the color of the file directly on Ubuntu. If it is dark blue, it is the original file, red is the compressed package or archive file, and light blue is the shortcut. However, we generally can’t use Linux system directly. In actual development, we use other remote login methods to log in. Therefore, we can directly use LS – L command to view all the file attributes under the current file directory. If it is a shortcut, it will show an arrow “– >” pointing to the original file, as shown in the following figure:

 

You have to understand!

Recommended Today

Practice of query operation of database table (Experiment 3)

Following the previous two experiments, this experiment is to master the use of select statements for various query operations: single table query, multi table connection and query, nested query, set query, to consolidate the database query operation.Now follow Xiaobian to practice together!Based on the data table (student, course, SC, teacher, TC) created and inserted in […]