wiki.unixpeople.org

Useful Commands

Start a webserver in current directory:

Use RangeHTTPServer Python module:

“python -m RangeHTTPServer” or “python3 -m http.server”

or use caddy:

caddy file-server –listen 0.0.0.0:8000

Get first field of a commands output:

awk -F ' ' '{print $1}'

You could leave a comment if you were logged in.