ONE COMMAND A DAY

25.04.2009

7>ln command.

SUMMERY

This command is used to create links to a files.Make links between files.

SYNTAX:

ln [-f] [-n] [-s] existingfile newname

-f Link files without questioning the user, even if the mode of target forbids writing. This is the default if the standard input is not a terminal.
-n Does not overwrite existing files.
-s Makes it so that it does not create a symbolic link existingfile – The file that you want to create a new link.
existingfile Specifies file(s) that you want to create a link to.
newname The new name of the file.
directory The directory were you want the new link.

EXAMPLES:

ln -s file1 file2

Creates a symbolic link to file1 with the name of the file2.


Advertisements

About yevlempy
A foodie, a cleartripper, a linux geek!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: