eolas/neuron/6d4cfb04-1e87-477a-91e9-34c360bfb8ad/Symlinks.md

24 lines
439 B
Markdown
Raw Normal View History

2024-12-09 18:34:15 +00:00
---
tags:
- shell
- Linux
- procedural
---
> A symbolic link, also termed a soft link, is a special kind of file that
> points to another file. Unlike a hard link, a symbolic link does not contain
> the data in the target file. It simply points to another entry somewhere in
> the file system.
# Syntax
```
ln -s -f ~/[existing_file] ~/.[file_you_want_to_symbolise]
```
Real example:
```
ln -s -f ~/dotfiles/.vimrc ~/.vimrc
```