Isnin, 26 Oktober 2009

Linux Basic Command / guide

1. Need to quickly tar and gzip an entire folder? Try the command below!

tar -cvzpf filename.tar.gz /path/to/folder

tar -cvzpf joomla15-cherasnet.tar.gz joomla15/

tar -cvzpf --exclude-caches joomla15-cherasnet.tar.gz joomla15/


tar -cvzpP --file=/distr/backup.tar.gz --exclude={/dev/*,/proc/*,/sys/*,/srv/*,/distr/*,/tmp/*} /


tar work with directory "/" except for
/dev
/proc
/sys
/srv/
/distr
/tmp


contoh buat tar exclude tmp,cache folder

tar -cvzpP --file=backupjoomla15-14.tar.gz --exclude={/home/zahari/joomla15/tmp/*,/home/zahari/joomla15/cache/*} /home/zahari/joomla15
========================================================

2. If are seeing a lots of “TCP: drop open request from A.B.C.D” messages and you don’t expect a real load the server, you’ll need to enable syncookies. Edit your /etc/sysctl.conf and append the following lines:
# enable syncookies
net.ipv4.tcp_syncookies = 1

from terminal, type sysctl-p to reload the kernel configuration.

Tiada ulasan:

Catat Ulasan

Memulakan Perniagaan Cara WI-FI tiket Prabayar dengan modal hanya RM450.00

MudahSPOT hanya RM450.00. Keperluan 1) Talian Internet Streamyx/3G/WIMAX. Cuma 3G/WIMAX kurang stabil untuk perniagaan 2) Router Kerb...