Commit 2932d9

2024-03-29 13:00:48 Arpan S.: -/-
standard linux commands.md ..
@@ 7,14 7,14 @@
##### General Explaination and use-case
There are two types of system links in linux:
- 1. Hard Links: Its is like having an alias name to an existing file. It links _(better term: syncs)_ two or more file names with the same [inode](https://en.wikipedia.org/wiki/Inode). ***You can only create hardlinks for files & folders on the same filesystem or partition***. One file can have multiple hardlinks.
+ 1. Hard Links: Its is like having an alias name to an existing file. It links _(better term: syncs)_ two or more file names with the same [inode](https://en.wikipedia.org/wiki/Inode). **You can only create hardlinks for files & folders on the same filesystem or partition**. One file can have multiple hardlinks.
2. Soft Links: A soft link can be related to a shortcut in windows, it allows a file to be accessed from one directory to other without having to keep 2 copies of it. Soft Links can be created across different filesystems and partitions.
##### How to use ln command
By default `ln` command creates **Hard Links**, To make **Soft Links**, We can use the `-s` _(`--symbolic`)_ flag
- ###### Syntax:
+ Syntax:
```python
ln -s [OPTIONS] SOURCE_FILE DESTINATION_LINK
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9