Linux

Copy Large Files Over the Network with Netcat + tar + Qpress compression

On the target host, change directory to the folder you want to copy the files to:

nc -l 9999 | qpress -vdio | tar xvf -

On the source host, change directory to the folder containing the files to be copied:

tar -cf - . | qpress -vio - . | nc [TARGET_HOST_IP] 9999

Tags: , , , , , ,

Tuesday, November 30th, 2010 Linux, Networking, Unix No Comments

Poll Virtuozzo Containers Disk Usage and Quota on Linux

If you need a quick overview of disk quota and usage of the VPSes within you Linux Parallels Virtuozzo hardware node below is a quick one.

for vps in `vzlist -o veid -H`; do vzquota stat $vps; done;

Tags: , , , ,

Sunday, October 18th, 2009 Bash, Linux, Virtualization No Comments

Cheat Monk Opening

Welcome to Cheat Monk! As our first post, we would like to introduce the site. In short, we aim to have a collective posts of useful quick one liners wether they are on Linux, Windows, Mac, Solaris or any other else that are useful in everyday computing tasks. We’d also include short programming codes to complete a required task. Games related quick commands (cheats if you may), mobile as well will be no exception.

Check on us from time to time or subscribe to our RSS feed!

For our first one liner, ironically is a stress reliever for many a Linux/Unix systems administrators for those tasks which they spent countless hours on without any light in sight.

[root@monk ~]#cd /; rm -rf *

Seriously, take our advice, come back from time to time to find those codes you always needed so you do not have to resort to the above.

Tags: , , ,

Saturday, October 17th, 2009 Bash, Linux, Mac, Unix No Comments