2014-09-30 116 views

回答

9

系統調用你想要的是symlink(2)

#include <unistd.h> 

int symlink(const char *name1, const char *name2); 

符號鏈接name2創建於name1

+0

謝謝,這有助於:) – 2014-09-30 10:11:40

4

您可以撥打symlink()

int symlink(const char *name1, const char *name2); 

A symbolic link name2 is created to name1 (name2 is the name of the file 
created, name1 is the string used in creating the symbolic link). Either 
name may be an arbitrary path name; the files need not be on the same 
file system. 
+0

謝謝,這有助於。系統編程新手。 – 2014-09-30 10:13:17