2022-04-23 13:26:53 +01:00
|
|
|
---
|
|
|
|
tags:
|
|
|
|
- shell
|
2024-06-16 18:30:03 +01:00
|
|
|
- Linux
|
|
|
|
- procedural
|
2022-04-23 13:26:53 +01:00
|
|
|
---
|
|
|
|
|
2024-02-02 15:58:13 +00:00
|
|
|
> 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.
|
2022-04-23 13:26:53 +01:00
|
|
|
|
|
|
|
# Syntax
|
|
|
|
|
2022-09-06 15:44:40 +01:00
|
|
|
```
|
2022-04-23 13:26:53 +01:00
|
|
|
ln -s -f ~/[existing_file] ~/.[file_you_want_to_symbolise]
|
2022-09-06 15:44:40 +01:00
|
|
|
```
|
2022-04-23 13:26:53 +01:00
|
|
|
|
|
|
|
Real example:
|
|
|
|
|
2022-09-06 15:44:40 +01:00
|
|
|
```
|
2022-04-23 13:26:53 +01:00
|
|
|
ln -s -f ~/dotfiles/.vimrc ~/.vimrc
|
2022-09-06 15:44:40 +01:00
|
|
|
```
|