Useful Commands/Compression

From Fundamental Ramen
< Useful Commands
Revision as of 01:59, 17 September 2026 by Tacoball (talk | contribs) (→‎Compression)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
🎯 Purpose ⌨️ Command
zip
zip -r front-end.zip index.html static/
unzip -l front-end.zip
unzip -p front-end.zip index.html
tar
tar --exclude=".*" -zcvf ~/solr-4.3.0.tgz solr-4.3.0
tar -C /usr/local --exclude '.*' -zcvf tika-1.4-pxx.tgz tika
gzip
gzip -k taiwan-taco.map
gzip -l taiwan-taco.map.gz 
  compressed uncompressed  ratio uncompressed_name
    25400590     38204880  33.5% taiwan-taco.map
xz
xz -zk hd-20190227.csv
xz -vt hd-20190227.csv.xz 
hd-20190227.csv.xz (1/1)
  100 %     344.1 KiB / 1,458.1 KiB = 0.236
dd
# Make an ISO image.
df -h
umount /dev/disk2
dd if=/dev/disk2 of=Win7.iso bs=2048 count=1000
file Win7.iso
Win7.iso: ISO 9660 CD-ROM filesystem data 'GRMCULFRER_TW_DVD              ' (bootable)
kill -USR1 {pid of dd}