search
Innovative Web Design and Application Development
PawPrint.net

PawPrint.net Glossary of Terms

Main Menu -> Linux -> ln

ln

ln [options] sourcename [destname]
ln [options] sourcename [destname]

ln [options] sourcenames destdirectory



Create pseudonyms (links) for files, allowing them to be accessed by different names. In the first form, Link sourcename to destname, where destname is usually a new filename, or (by default) the current directory. If destname is an existing file, it is overwritten; if destname is an existing directory, a Link named sourcename is created in that directory. In the second form, create links in destdirectory, each Link having the same name as the file specified.

Options
-b, --backup
Back up files before removing the originals.

-d, -F, --directory
Allow hard links to directories. Available to privileged users.

-f, --force
Force the Link (donīt prompt for overwrite permission).

--help
Print a help message and then exit.

-i, --interactive
Prompt for permission before removing files.

-n, --no-dereference
Replace symbolic links to directories instead of dereferencing them. --force is useful with this option.

-s, --symbolic
Create a symbolic Link. This lets you Link across filesystems and also see the name of the Link when you run ls -l (otherwise, thereīs no way to know the name that a file is linked to).

-S suffix, --suffix suffix
Append suffix to files when making backups, instead of the default ~.

-v, --verbose
Verbose mode.

--version
Print version information and then exit.

-V, --version-control value
Control the types of backups made. The acceptable values for version-control are:

t, numbered
Numbered.

nil,existing
Simple (~) unless a numbered backup exists; then make a numbered backup.

never, simple
Simple.




Copyright © 1992-2024 PawPrint.net
web development: PawPrint.net