顯示具有 command-line 標籤的文章。 顯示所有文章
顯示具有 command-line 標籤的文章。 顯示所有文章

2011年7月26日 星期二

command line for Ubuntu

Check package status:
dpkg -l | grep packagename


設定開機啟動的服務
sysv-rc-conf


if not work
apt-get install sysv-rc-conf

lsof -iTCP:3000

portsnap fetch update
pkgdb -F
portsdb -Uu
portupgrade -a

2010年3月11日 星期四

tar zxvf / jxvf

IF you tar zxvf xxx.tar.bz2, than get error message like this.

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

try this

tar jxvf xxx.tar.bz2