HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

squid — Cache and forward HTTP requests through a proxy server. More information: <https://manned.org/squid>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpcommandsquidandcacherequestscliforward

Problem

How to use the squid command: Cache and forward HTTP requests through a proxy server. More information: <https://manned.org/squid>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/squid

Revisions (0)

No revisions yet.