mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 14:44:24 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/chezmoi
12
tldr/chezmoi
@@ -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
41
tldr/linux/tor
Normal 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
37
tldr/linux/torify
Normal 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}}`
|
||||
Reference in New Issue
Block a user