Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Thanks mate, Just what I was looking for. It seemed to be a different way of doing things in Leopard than previous versions. Cheers, Mitch
- thanks, i couldnt remember.
- I did this in Garage band, but if forced me to trip the song to 8 seconds in order to send it to itunes ringtones - any ideas on this? Using the new 3GS.
- Please dont remove this Folder, It occupies only 315 MB and is useful for your Office 2003.... SRIKANTH
- that still wont work and i got no idea about registery could use help
Tech-Recipes
Cookbook of Tech Tutorials
Creating a compressed archive in UNIX in a single step is faster and is often the only method when disk space is limited.
To archive and compress a directory called ‘target’ in the current working directory into a file called target.tgz use:
tar cf - target | gzip ... Continue reading »
To archive and compress a directory called ‘target’ in the current working directory into a file called target.tgz use:
tar cf - target | gzip ... Continue reading »
5 years ago
You must already have the hostkey from the remote machine (i.e., logged in at least once) otherwise this will fail. SSH allows you to connect to a remote machine and pass a commandline rather than firing up an interactive shell. The output is then dumped to your local console for further processing.
Before you scratch your head, think of this. You have a machine that has virtually no space left (or at least, not enough to make that tarball). qmchenry's post shows you how to get tar to spool the archive to stdout:
tar -cf - target
What if you can capture that to your own workstation, which probably has ample space. Picture this:
ssh user@remotemachine "cd /path;tar -cf - target | gzip -c" > /path/target.tgz
You've just had the remote machine produce a tarball, run it through gzip, and dump the results to stdout. You just captured that at your own workstation, and saved the results.
4 years ago
tar -cvf - mySelection | gzip -c | (cd myNewDirectory ; gzip -dc | tar xvf -)
make this match to your own needs...
3 months ago
tar -cf /home/eaips/var/fileName.tar /home/eaips/var/fileName
gzip /home/eaips/var/fileName.tar
3 months ago
tar -cf - /home/eaips/var/fileName | gzip -c > /home/eaips/var/fileName.tar.gz