Update cheatsheets

This commit is contained in:
ivuorinen
2024-05-22 00:13:44 +00:00
parent 32f272ee5f
commit ae53e48342
3 changed files with 86 additions and 4 deletions

View File

@@ -13,10 +13,18 @@ source: https://github.com/tldr-pages/tldr.git
`chezmoi init`
- Set up `chezmoi` from existing dotfiles of a Git repository:
`chezmoi init {{repository_url}}`
- Start tracking one or more dotfiles:
`chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}`
- Update repository with local changes:
`chezmoi re-add {{path/to/dotfile1 path/to/dotfile2 ...}}`
- Edit the source state of a tracked dotfile:
`chezmoi edit {{path/to/dotfile_or_symlink}}`
@@ -29,10 +37,6 @@ source: https://github.com/tldr-pages/tldr.git
`chezmoi -v apply`
- Set up `chezmoi` from existing dotfiles of a Git repository:
`chezmoi init {{repository_url}}`
- Pull changes from a remote repository and apply them:
`chezmoi update`

41
tldr/linux/tor Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# tor
> Enable anonymous communication through the Tor network.
> More information: <https://manned.org/man/tor>.
- Connect to the Tor network:
`tor`
- Start a Tor relay:
`tor --relay`
- View Tor configuration:
`tor --config`
- Check Tor status:
`tor --status`
- Run as client only:
`tor --client`
- Run as relay:
`tor --relay`
- Run as bridge:
`tor --bridge`
- Run as a hidden service:
`tor --hidden-service`

37
tldr/linux/torify Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# torify
> Route network traffic through the Tor network.
> More information: <https://manned.org/man/torify>.
- Route traffic via Tor:
`torify {{command}}`
- Toggle Tor in shell:
`torify {{on|off}}`
- Spawn a Tor-enabled shell:
`torify --shell`
- Check for a Tor-enabled shell:
`torify show`
- Specify Tor configuration file:
`torify -c {{config-file}} {{command}}`
- Use a specific Tor SOCKS proxy:
`torify -P {{proxy}} {{command}}`
- Redirect output to a file:
`torify {{command}} > {{path/to/output}}`