Extract a tar.gz archive
Extract a gzipped tar archive into a given directory.
tar -xzf archive.tar.gz -C /target/dir/
More linux commands
-
openssl rand -base64 32Generate 32 bytes from a cryptographically secure source and encode them in base64.
-
openssl s_client -connect example.com:443 </dev/null 2>/dev/null | openssl x509 -noout -dates -subjectShow the validity dates and subject of the certificate on a live TLS endpoint.
-
awk '{sum += $3} END {print sum}' file.txtAdd up the values in column 3 of a file where fields are split by spaces.
-
sed -i 's/old-string/new-string/g' file.txtReplace every match of a string directly in the file.
-
sort file.txt | uniq -c | sort -rn | head -20Count how often each line repeats in a file and show the top 20.