2 Comments »
Leave a comment!
The following example shows how to reduce the size of a filesystem mounted on an LVM logical volume. The instructions below are only for non-root filesystems. No reboot is required, but the filesystem will need to be unmounted. So, if there are any user applications using this filesystem, they will need to be stopped and the users will need to log out.
Read the full story »Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.
Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.
Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.
Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.
Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.
To uncompress and tar use:
gunzip < target.tar.gz | tar xvf -
[Reply]
Hi,
Do you have an example of using gzip with a pipe?
From Googling, only one I found is from the one below:
http://ididntknowthisyesterday.blogspot.co.nz/2008/09/pipe-into-gzip.html
using
cat myfile.txt | gzip -f > myfile.txt.gz
Will this work for binary files as well?
FYI, reason am wanting to use a pipe is due to lack of disk space, I have 500MB left and am trying to gzip a 400M file. Am assuming by using a pipe, it will use the memory instead of the available disk space while the gzip is in progress, is this correct?
[Reply]