Compress or decompress files in Linux environments

Introduction In some circunstances it’s not easy to know the commands which exist to compress or decompress files in Linux (and Unix) environments. In this posts, I have wrote all the commands I have used for this. File Types TAR files Pack: tar -cvf file.tar file1 file2 file3 Unpack: tar -xvf file.tar See content: tar -tf file.tar GZ files Compress: gzip -9 file Decompress: gzip -d file BZ2 files Compress: bzip2 file Decompress: bzip -d file.bz2 TGZ (or TAR.GZ) files (TAR+GZIP) Compress+Pack: tar -czf file.tgz file1 file2 file3 Decompress+Unpack: tar -xvzf file.tgz See content: tar -tzf file.tgz TAR.BZ2 files (TAR+BZIP) Compress+Pack: tar -c files | bzip2 > fileo.tar.bz2 Decompress+Unpack: bzip2 -cd file.tar.bz2 | tar -xv See content: bzip2 -cd file.tar.bz2 | tar -t ZIP files Compress+Pack: zip file.zip file1 file2 file3 Decompress+Unpack: unzip file.zip RAR files Compress+Pack: rar -a file.rar file1 file2 file3 Decompress+Unpack: rar -x file.rar See content: rar -l file.rar

November 15, 2022 Â· 1 min Â· Yvoictra

How to resolve LAN hostnames with Ubuntu

By default, Ubuntu desktop installation will provide DNS resolving configured, however in Ubuntu server installation avahi-daemon (or mdnsresponder) is needed to be installed to provide local LAN DNS resolution. In my case, i found the error “Temporary failure in name resolution” when I tried to resolve a machine of my LAN from Ubuntu. yvoictra@zoar:~$ ping erie.local ping: erie.local: Temporary failure in name resolution To solve this issue, there is no need to install a DNS server in the LAN. We can use the mDNS (Multicast Domain Name System) protocol. This protocol is used to resolve host names in a small network (LAN). The mDNS service can be contacted using UDP queries over port 5353. The mDNS protocol is published as RFC6762 and implemented by the Apple Bonjour and avahi-daemon services. ...

April 19, 2020 Â· 2 min Â· Yvoictra