eolas/zk/Symlinks.md

24 lines
452 B
Markdown
Raw Normal View History

2022-04-23 13:26:53 +01:00
---
2022-09-06 15:44:40 +01:00
categories:
- Programming Languages
2022-04-23 13:26:53 +01:00
tags:
- shell
---
> 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
```