Gen Random data

Also used to test IO performance.

dd if=/dev/urandom of=random_data.bin bs=1M count=1024

Enable Coredump

ulimit -c unlimited
echo "core.%e.%p" > /proc/sys/kernel/core_pattern

Check Disk Space Usage

  • ncdu: usually used to clean the file system, find out big files.
  • du

Watch the specified file and sync it to test enviroment when changed.

rsync

 
while true; do inotifywait file.py; scp file.py [email protected]:/root; done;
 
 
while true; do inotifywait -r /path/to/src; rsync -av --delete /src /dst; done;

Network

  • ip
  • netstat
  • nload: show realtime network load graph in terminal