I have a problem with this command:
su -c 'tar zcvf yourname.tar.gz/etc/var/'
Here is the website for my class assignment.
Some of these command do not work correctly.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The correct command is
sudo su -c 'tar zcvf yourname.tar.gz /etc /var'
sudo tar zcvf yourname.tar.gz /etc /var
And you forgot the space characters in your command:
su -c 'tar zcvf yourname.tar.gz/etc/var/' ^ ^-- Missing SPACE -- Missing SPACE
Your PDF has a very bad quality, it seems like an OCR output. You shouldn't copy and paste the commands. And the PDF is not written for Ubuntu, therefore some commands and procedures may be wrong.