Skip to content

27th September 2021

Computer Science

GNULinux

cURL

  • New: Fetch a website that requires auth.

    curl -u username:password [url]
    

Docker

  • New: Remove unused data.

    Use docker system prune.

    And for automated clean up:

    Add the following line to crontab -e:

    0 3 * * * /usr/bin/docker system prune -f 2>&1 > /dev/null
    

    -f prevents manual confirmation from being asked.