Watch command output

Re-run a command every 2 seconds with diff highlighting

watch -n 2 'kubectl get pods -n <ns>'

tool
linux133 commands
tags
linux

More linux commands

  • nohup ./script.sh > /tmp/out.log 2>&1 &

    Run a script immune to SIGHUP; redirect output to file

  • ssh -L 8080:internal-service:80 user@bastion -N -f

    Forward local port 8080 to an internal host via bastion

  • tar -xzf archive.tar.gz -C /target/dir/

    Extract a gzipped tar archive to a specific directory

  • openssl rand -base64 32

    Cryptographically secure random 32-byte password

  • openssl s_client -connect example.com:443 </dev/null 2>/dev/null | openssl x509 -noout -dates -subject

    Show cert expiry and subject for a live TLS endpoint

all 133 linux commands