Listing all active internet connections on Linux
By jeltsch on Wed, 09/02/2020 - 07:31There are many possibilities, but perhaps the most friendly command is:
netstat -natp
There are many possibilities, but perhaps the most friendly command is:
netstat -natp
How to install a forward proxy:
ProxyRequests On
ProxyVia On
Require ip 192.168
ErrorLog /var/log/apache2/error_ForwardProxy.log
CustomLog /var/log/apache2/access_ForwardProxy.log combined
How do you count the number of files in a directory? That becomes non-trivial if you have thousands of files in a directory. Your file manager chokes on counting them, especially if they are not local. On the Linux command line, this task is fast and easy:
ls | wc
ls lists your files one per row and wc returns three numbers: lines, words and bytes. In the file counting example, lines and words are the same and equal the number of files in the directory.