How To Add The Hostname Of The System To A File, I HOSTNAME=$(hostname) tar -cvf ${HOSTNAME}.tar.gz directory_to_archive/ Previous Next