How can I zip a file and save it in another directory using the command line? I have no space left in directory (100% full).
Also you can just type
Please, notice I wrote information for *nix systems. For Win it could be differ.
Quickly looking at the man pages for tar, we can set the output file with -f
I usually use something of the form:
Then you can specify your filepath as part of your filename to output.
I'm hoping that tar compression just puts everything at the output file and doesn't do anything in your directory. Try it and see if it works though.