Files
cheatsheet-tldr/tldr/squid
2026-01-11 00:24:43 +00:00

38 lines
633 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# squid
> Cache and forward HTTP requests through a proxy server.
> More information: <https://manned.org/squid>.
- Start Squid in the background:
`sudo squid`
- Start Squid in the foreground:
`sudo squid -N`
- Start Squid with a specific configuration file:
`sudo squid -f {{path/to/squid.conf}}`
- Test the configuration file for errors:
`sudo squid -k parse`
- Reload the configuration file:
`sudo squid -k reconfigure`
- Shut down Squid gracefully:
`sudo squid -k shutdown`
- Rotate the log files:
`sudo squid -k rotate`