-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathting destination files
120 lines (82 loc) · 4.99 KB
/
ting destination files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
LN(1) User Commands LN(1)
NNAAMMEE
ln - make links between files
SSYYNNOOPPSSIISS
llnn [_O_P_T_I_O_N]... [_-_T] _T_A_R_G_E_T _L_I_N_K___N_A_M_E _(_1_s_t _f_o_r_m_)
llnn [_O_P_T_I_O_N]... _T_A_R_G_E_T _(_2_n_d _f_o_r_m_)
llnn [_O_P_T_I_O_N]... _T_A_R_G_E_T... _D_I_R_E_C_T_O_R_Y _(_3_r_d _f_o_r_m_)
llnn [_O_P_T_I_O_N]... _-_t _D_I_R_E_C_T_O_R_Y _T_A_R_G_E_T... _(_4_t_h _f_o_r_m_)
DDEESSCCRRIIPPTTIIOONN
In the 1st form, create a link to TARGET with the name LINK_NAME. In the
2nd form, create a link to TARGET in the current directory. In the 3rd
and 4th forms, create links to each TARGET in DIRECTORY. Create hard
links by default, symbolic links with ----ssyymmbboolliicc. By default, each desti‐
nation (name of new link) should not already exist. When creating hard
links, each TARGET must exist. Symbolic links can hold arbitrary text; if
later resolved, a relative link is interpreted in relation to its parent
directory.
Mandatory arguments to long options are mandatory for short options too.
----bbaacckkuupp[=_C_O_N_T_R_O_L]
make a backup of each existing destination file
--bb like ----bbaacckkuupp but does not accept an argument
--dd, --FF, ----ddiirreeccttoorryy
allow the superuser to attempt to hard link directories (note: will
probably fail due to system restrictions, even for the superuser)
--ff, ----ffoorrccee
remove existing destination files
--ii, ----iinntteerraaccttiivvee
prompt whether to remove destinations
--LL, ----llooggiiccaall
dereference TARGETs that are symbolic links
--nn, ----nnoo--ddeerreeffeerreennccee
treat LINK_NAME as a normal file if it is a symbolic link to a
directory
--PP, ----pphhyyssiiccaall
make hard links directly to symbolic links
--rr, ----rreellaattiivvee
create symbolic links relative to link location
--ss, ----ssyymmbboolliicc
make symbolic links instead of hard links
--SS, ----ssuuffffiixx=_S_U_F_F_I_X
override the usual backup suffix
--tt, ----ttaarrggeett--ddiirreeccttoorryy=_D_I_R_E_C_T_O_R_Y
specify the DIRECTORY in which to create the links
--TT, ----nnoo--ttaarrggeett--ddiirreeccttoorryy
treat LINK_NAME as a normal file always
--vv, ----vveerrbboossee
print name of each linked file
----hheellpp display this help and exit
----vveerrssiioonn
output version information and exit
The backup suffix is '~', unless set with ----ssuuffffiixx or SIMPLE_BACKUP_SUF‐
FIX. The version control method may be selected via the ----bbaacckkuupp option
or through the VERSION_CONTROL environment variable. Here are the values:
none, off
never make backups (even if ----bbaacckkuupp is given)
numbered, t
make numbered backups
existing, nil
numbered if numbered backups exist, simple otherwise
simple, never
always make simple backups
Using --ss ignores --LL and --PP. Otherwise, the last option specified controls
behavior when a TARGET is a symbolic link, defaulting to --PP.
AAUUTTHHOORR
Written by Mike Parker and David MacKenzie.
RREEPPOORRTTIINNGG BBUUGGSS
Report ln bugs to [email protected]
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report ln translation bugs to <http://translationproject.org/team/>
CCOOPPYYRRIIGGHHTT
Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL
version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There
is NO WARRANTY, to the extent permitted by law.
SSEEEE AALLSSOO
link(2), symlink(2)
The full documentation for llnn is maintained as a Texinfo manual. If the
iinnffoo and llnn programs are properly installed at your site, the command
iinnffoo ccoorreeuuttiillss ''llnn iinnvvooccaattiioonn''
should give you access to the complete manual.
GNU coreutils 8.21 March 2014 LN(1)