Extract tar.gz
Extract a gzipped tar archive to a specific directory
tar -xzf archive.tar.gz -C /target/dir/
More linux commands
-
openssl rand -base64 32Cryptographically secure random 32-byte password
-
openssl s_client -connect example.com:443 </dev/null 2>/dev/null | openssl x509 -noout -dates -subjectShow cert expiry and subject for a live TLS endpoint
-
awk '{sum += $3} END {print sum}' file.txtSum the 3rd column of a space-delimited text file
-
sed -i 's/old-string/new-string/g' file.txtIn-place global string replacement
-
sort file.txt | uniq -c | sort -rn | head -20Count and rank duplicate lines in a file