Generate random password

Cryptographically secure random 32-byte password

openssl rand -base64 32

tool
linux133 commands
tags
linuxsecurity

More linux commands

  • 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

  • awk '{sum += $3} END {print sum}' file.txt

    Sum the 3rd column of a space-delimited text file

  • sed -i 's/old-string/new-string/g' file.txt

    In-place global string replacement

  • sort file.txt | uniq -c | sort -rn | head -20

    Count and rank duplicate lines in a file

  • lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID

    Tree of disks, partitions, loop devices with filesystem info

all 133 linux commands