Adapt > Engage > Dominate

Symlinks in Linux

To check where a symlink points, use

ls -l symlink

where symlink is the link you want to check.  Try to remember l for link (-l).

 

To create a symlink, use

ln -s /path to/file /path to/symlink

Try to remember ln for link, s for symlink, and DESTINATION <- LINK for the order.

 

To change an existing link, it’s the same thing, except you say

ln -fs

The f stands for force (think of forcing a change).

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: