This is a linux It's a very important order in . Its function is to create a different link for a file in another location , The most common parameter for this command is -s, The specific usage is :ln -s Source file Target file . 
When we need to be in a different directory , When using the same file , We don't need to put the same file in every directory we need , We just need to be in a fixed directory , Put the file on , And then on the other side Use... In the directory ln Command link (link) It can. , No need to occupy disk space repeatedly .

for example :

ln -s /usr/local/nginx/sbin/nginx nginx

Soft link :

1. In the form of a path . Be similar to Windows operating system Shortcuts in
2. Sure Cross file system , Hard links cannot
3. You can link to a file name that doesn't exist
4. You can link to the directory

Command parameter :

-b  Delete , Overwrite previously established links
-d  Allow super users to make hard links to directories
-f    Enforcement
-i    Interactive mode , Prompt the user whether to overwrite if the file exists
-n  Treat symbolic links as general directories
-s  Soft link ( A symbolic link )
-v  Show detailed process

Linux Soft connection (ln command ) More articles about

  1. linux Next ln command -- note

    linux Next ln command ln The command is used to create a connection to a file , There are two types of connection: hard connection and symbolic connection , The default connection type is hard connection . If you want to create a symbolic link, you must use "-s" Options . Be careful : The symbolic link file is not a stand-alone ...

  2. linux Soft connection ln -s

    <pre>linux Soft connection ln -sln -s /home/ /home/ss/</pre> according to win To create a shortcut in /home/ss/ Folder ( The name is hom ...

  3. Linux On ln Command details and the difference between soft link and hard link

    Hard links (hard link) UNIX The file system provides a mechanism for linking different files to the same file , We call this mechanism linking . It enables a single program to use different names for the same file . The advantage is that the file system There is only one copy of the file in the system , ...

  4. 【 turn 】linux And ln command

    from :http://www.cnblogs.com/peida/archive/2012/12/11/2812294.html ln yes linux Another very important order in , Its function is to place one file in another bit ...

  5. linux On ln The command details

    ln yes linux Another very important order in , Its function is to create a different link for a file in another location , The most common parameter for this command is -s, The specific usage is :ln –s Source file Target file . When we need to be in a different directory , Use the same ...

  6. Linux Next ln Detailed command

    This is a linux It's a very important order in , Please be familiar with . Its function is to establish a synchronous link for a file or directory in another location , similar Windows Hyperlinks under . The most common parameter for this command is -s, The specific usage is : sudo ...

  7. linux Next ln command

    from :http://www.cnblogs.com/peida/archive/2012/12/11/2812294.html ln yes linux Another very important order in , Its function is to place one file in another bit ...

  8. LINUX note -ln command

    Create soft links to files command :ln -s log2013.log link2013 Create hard links to files command :ln log2013.log ln2013

  9. linux --- 10. Common command

    1. In the login Linux when , One has a unique process ID The no. shell Will be called , This ID What is it? ()A.NID B.PID C.UID C.CID 2. The user below stores the password information ()A./boot B./etc ...

Random recommendation

  1. Datatable filter 、 Sort And access datagrid Current page data

    1. Turn into DataView Filter and sort  DataTable dt = BL.UserInfo();// Query returned DataTable data DataTable dt2 = new DataTable( ...

  2. codejumper Jump code for

    public void JumpToSource(vsCMPart location = vsCMPart.vsCMPartNavigate) { TextPoint startPoint = Ori ...

  3. trap ~SQL Full table scan and clustered index scan

    SqlServer In the query , We want to optimize performance , It's usually for where Index conditional fields , If the conditions are relatively fixed, a composite index will be established , Next , Let's take a look at the related knowledge and related pitfalls of index and query . SQL Table automatically adds aggregate index to primary key ...

  4. Sequential storage structure for linear tables ——java

    Sequential storage structure for linear tables : It means to store the elements of a linear table in a group of storage units with consecutive addresses at one time . To implement a linear table using a sequential structure , Programs usually use arrays to hold elements in a line , It's a random data structure , Suitable for random access .java in ArrayL ...

  5. C# partial Modifier _ Division class _ Partial methods

    I've turned over the books today , I found that I still left a lot of basic things behind , honestly , No matter some basic things are used or not, they should be understood , Because after all, the amount of basic learning is not very large . One . Division class What are partial classes ? Simply put, it is to split a type or method into two or more ...

  6. hud 1312 Red and Black

    subject : link :pid=1312"> Click to open the link The question : DFS Search for Algorithm : dfs Ideas : Simple questions Code : #include<iostream> #include<c ...

  7. Unknown return value type [java.lang.Boolean]] with root cause

    add to @responsebody Why? ? Because it's going on ajax During transmission   I have specified the type of transport as json data type If not It's just Boolean type instead of json type

  8. frameset,iframe How frameworks call variables to each other 、 function

    What we have been writing in the past is the front desk UI, Rarely used frameset.iframe, The understanding of it is also very limited , I just know that it can introduce html The file becomes part of the current page , But I've been working backstage these two days UI Interface time , I found out ...

  9. NPM Use and npm Problem solving in upgrade

    NPM It's with NodeJS Package management tools installed together , Can solve NodeJS Many problems in code deployment , Common usage scenarios are as follows : Allow users from NPM The server downloads third-party packages written by others to use locally . Allow users from NPM The server downloads and ...

  10. JavaScript: Regular expressions application

    1. var data = "<table id=\"test\"><tr class=\"light\"><td> ...