Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-21 00:20:30 +00:00
parent 18aa2714fc
commit 95bf44ebad
2 changed files with 35 additions and 5 deletions

29
tldr/osx/mac-cleanup Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# mac-cleanup
> A modern macOS cleanup tool to remove caches and junk.
> More information: <https://github.com/mac-cleanup/mac-cleanup-py>.
- Start the cleanup process:
`mac-cleanup`
- Open the module configuration screen:
`mac-cleanup {{[-c|--configure]}}`
- Perform a dry-ru[n], showing what will be removed without actually deleting it:
`mac-cleanup {{[-n|--dry-run]}}`
- Specify the directory with custom cleanup [p]ath:
`mac-cleanup {{[-p|--custom-path]}} {{path/to/directory}}`
- Automatically acknowledge all warnings and continue with [f]orce:
`mac-cleanup -f`

View File

@@ -5,8 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
---
# rustscan
> Fast Port Scanner written in Rust with `nmap` built in.
> More information: <https://github.com/RustScan/RustScan>.
> Modern Port Scanner written in Rust.
> Note: `nmap` must be installed for some of the examples below to work.
> More information: <https://github.com/bee-san/RustScan/wiki>.
- Scan all ports of one or more comma-delimited addresses using the default values:
@@ -22,11 +23,11 @@ source: https://github.com/tldr-pages/tldr.git
- Scan a specific range of ports:
`rustscan {{[-r|--range]}} {{start-end}} {{[-a|--addresses]}} {{address_or_addresses}}`
`rustscan {{[-r|--range]}} {{start}}-{{end}} {{[-a|--addresses]}} {{address_or_addresses}}`
- Add script arguments to `nmap`:
- Invoke `nmap` functionalities (Nmap's OS detection and default scripts):
`rustscan {{[-a|--addresses]}} {{address_or_addresses}} -- -A -sC`
`rustscan {{[-a|--addresses]}} {{address_or_addresses}} -- -O {{[-sC|--script=default]}}`
- Scan with custom batch size (default: 4500) and timeout (default: 1500ms):