Linux 常用命令

来源:互联网 发布:淘宝客服能学到东西吗 编辑:程序博客网 时间:2024/04/24 06:48

/** Comprese and Extract********************/
[tar.gz]
tar zxvf  xxx.tar.gz//Extract
tar zcvf   xxx.tar.gz   /***** //comprese

[zip]
unzip xxx.zip //Extract
zip -r xxx.zip    /***  //comprese

[tar.bz2]
tar jxvf ***.tar.bz2 //Extract
tar jcvf ***.tar.bz2 /***  //comprese
 
process and thread
ps aux //all process
kill PID //kill process
less   //page divider

grep  // search for

/******search***************/
locate xxxx //locate from db

find XXX// find from filesystem
echo ***// display a line of text
grep ****  //print lines matching a pattern

/******install zip/tar************/
1.extract from zip. tar.gz. tar.bz
2.move or link to $PATH.
echo $PATH
ln -s ~/******/  ~/bin/****

/*******install open source************/

1) ./configure
2) make
3)sudo make install



/*****deb install*******************/
sudo dpkg -i *********.deb

0 0
原创粉丝点击