I'm getting familiar with all about Linux & shell/bash scripting.
I'm configuring a backup script & it will compress an entire directory. I want to know if I have to print the variable where the command that will compress will be allocated or only by setting it to the variable will execute it?
I have this:
x1=$(tar cfz "/dir_destination" "/dir_to_compress/") echo "$x1"
I'm wondering if I could safely remove 'echo' line.