Create shortcut command

ln -s Source file Target directory // The target directory can be a full path , It can also be the path under the current directory 
ln Source file Target directory

Add a , Create a folder ( Here is work) Shortcut to

// Source 
cd ~/work
bogon:work didi$ pwd
/Users/didi/work // Switch to desktop
bogon:work didi$ cd ~/Desktop // Create soft link ( and windows It's the same as the shortcut )
bogon:Desktop didi$ ln -s /Users/didi/work workLink

// So I have a link on my desktop

The difference between soft link and hard link

linux create shortcut ln More about the command

  1. linux useradd(adduser) Command parameters and usage (linux Create a new user command )

    linux useradd(adduser) Command parameters and usage (linux Create a new user command ) useradd Can be used to create user accounts . After the account is set up , Reuse passwd Set the password of the account . And available userdel Delete the account ...

  2. Learn together linux Create user useradd command

    linux Create user useradd command Original address :linux Create user useradd command  http://www.xfcodes.com/linuxcmd/user/24308.htm One ,adduser And ...

  3. LINUX Create the user's command

    LINUX Create the user's command useradd -g test -d /home/test1 -s /etc/bash -m test1 annotation :-g Subordinate to the group -d Home directory -s Used SHELL Delete user command u ...

  4. Linux establish / edit / see file / Folder command summary

    Linux establish / edit / see file / Folder command summary Linux The command to create a file Linux, The command to edit a file Linux Command to view files ,touch,vim,vi,gedit,cat,ls -a, ls ...

  5. linux Simple commands on the server

    linux command 1.ifconfig see Set up ip: 2. Connect to another linux command ssh; 3. Look at the tail New additions tail -f; 4.ln -s The original order New command path : 5. Create an empty file ...

  6. Linux Some simple commands for ( Two )

    1. View firewall status :service iptables status 2. Turn on the firewall :service iptables start 3. Turn off firewall :service iptables stop 4. Create an item ...

  7. linux Order Daquan ln Detailed command ( Create soft links and hard links )

    ln yes linux Another very important order in , Its function is to create a synchronous link for a file in another location , Divided into soft links . Hard links . Soft links are equivalent to windows Shortcut to , Here's how to use it and an example   ln yes linux Another one in China ...

  8. linux Create connection command ln -s Soft link

    This is a linux It's a very important order in , Please be familiar with . 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 different ...

  9. linux Create connection command ln -s Soft connection

    This is a linux It's a very important order in , Please be familiar with . 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 different ...

Random recommendation

  1. git Create multiple accounts ssh

    Create an account establish ssh Local secret key . $ ssh-keygen -t rsa -C "youremail@xxx.com" Enter all the way , Will be in ~/.ssh/ Generate under directory id_rsa and id_ ...

  2. ( turn )linux Import below 、 export mysql Database command

    Link to the original text :http://www.xiaohuai.com/2902 One . Export database with mysqldump command ( Be careful mysql Installation path for , The path of this command ):1. Export data and table structure :mysqldump -u use ...

  3. Out of the MFC The labyrinth of subclassification

    Out of the MFC The labyrinth of subclassification KEY WORDS: Subclass  SUBCLASSWINDOW  MFC Message mechanism many Windows Programmers are skipping SDK Go straight ahead RAD development tool [ or VC, I think VC Should not belong to RAD] Learning from ...

  4. java_eclipse_ Set global encoding _utf-8_ compile class Appoint _ function jar The code to solve _ Not dependent on the environment

    sketch : javac When you specify   code UTF-8   [ javac -encoding UTF-8 Test.java], Runtime  java Specified encoding UTF-8 In this way, there will be no garbled code problem [ javac ...

  5. ExtJS3.4 upgrade ExtJS4.2 A summary of our problems ( turn )

    ExtJS3.4 upgrade ExtJS4.2 A summary of our problems I had a whim yesterday , I want to use myself extjs3.4 As UI Upgrade to the latest extjs4.2.2. A few years ago, the prototype was transferred from 2.1 Upgrade to 3.4, about extjs Version of ...

  6. linux Synchronization mechanism complete【 turn 】

    from : http://blog.csdn.net/wealoong/article/details/8490654 stay Linux The kernel ,completion It's a simple synchronization mechanism , sign "thi ...

  7. Simple applications of graphs (C/C++ Realization )

    The archive : #include <stdio.h> #include <stdlib.h> #define maxv 10// Define the maximum number of vertices typedef char elem;// ...

  8. window iis restart

    WINDOWS server The task plan can automatically restart at a fixed time IIS Write batch file IIS.bat@echo offnet stop iisadmin /yesnet start iisadminnet sta ...

  9. Decorator pattern of design pattern -java example

    Decorator pattern of design pattern Demand scenarios We have products from others , But the products provided by others are not perfect for us , We need to strengthen the function of this product , Consider using decorator mode at this time . We already have products , And the function of this product is very ...

  10. database -1055 Report errors - hold only_full_group_by Get rid of

    [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c ...