# ln -s : Symbolic Links

## Syntax

```
ln -s /path/to/file /path/to/link
```

### Create a symbolic link in current directory

```
ln -s /path/to/file .
```

Creates a symbolic link in current directory pointing to /path/to/file

### Command Options / switches

| Option | Effect                                                   |
| ------ | -------------------------------------------------------- |
| -b     | Creates backup of link if it exists, appending a \~      |
| -f     | Force overwrite if link already exists                   |
| -i     | Interactively ask if you want to overwrite existing link |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://strangebutohwell.gitbook.io/knowledge/linux/commands/ln-s-symbolic-links.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
