Thursday, March 28, 2013

Linux Command (ที่จำเป็นต้องใช้ประจำ)

Mail
- iRedmail
  1. tail -f /var/log/iredapd.log -> Logmail
  2. tail -f /val/log/mail.log  -> Logmail

General
- tar cjvf file.tar.bz2 file  for creat file .bz2
- tar jxf file.bz2  (need install bzip2) for unzip file .bz2
- rsync -rv (src) (dst) --progress ก็อปปี้ Directory
- rsync (src) (dst) --progress ก็อปปี้ไฟล์ทั่วไป

For apt-get
#apt-get install PACKAGE
# apt-get remove PACAKAGE
# apt-get purge PACKAGE
# apt-cache search PACKAGE|KEYWORDS
# apt-cache show PACKAGE

Remove/Uninstall
# apt-get remove --purge packetname*
# apt-get clean
# apt-get autoremove
# apt-get -f install

Update & Upgrade
# sudo apt-get -y update &&
# sudo apt-get -y upgrade &&
# sudo apt-get clean &&
# sudo apt-get -y autoremove

For aptitude
# aptitude
# aptitude install sudo
# aptitude remove sudo
# aptitude purge sudo
# aptitude search sudo
# aptitude show sudo
# man aptitude
 

No comments: