實用linux 命令集sss_第1頁
實用linux 命令集sss_第2頁
實用linux 命令集sss_第3頁
實用linux 命令集sss_第4頁
實用linux 命令集sss_第5頁
已閱讀5頁,還剩26頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、xxx:dpkg -L xxx:apt-cache search :aptitude search :dpkg -S filename:apt-file search filenamexxx:apt-cache depends xxxxxx:apt-cache rdepends xxx:sudo apt-cdrom add:sudo apt-get updatesudo apt-get dist-upgrade:1. dpkg -l |grep rc|awk print $2 |sudo xargs dpkg -Ph:1. sudo auto-apt run ./configure:1. ls

2、 /var/cache/apt/archives:1. dpkg -get-selections | grep -v deinstall /somefile:1. dpkg -set-selections /somefilesudo dselect:1. sudo apt-get autoclean:1. sudo apt-get clean:1. sudo apt-get autoremove:1. apt-get -qq -print-uris install ssh | cut -d -f2:1. uname -aUbuntu:1. cat /etc/issue lsb_release

3、-a:1. lsmodPCI:1. lspciUSB:1. lsusb -v:1. sudo ethtool eth0CPU:1. cat /proc/cpuinfo:1. sudo lshw:1. uptime:1. sudo fdisk -l:1. sudo fdisk /dev/sda:1. sudo mkfs.ext3 /dev/sda1():1. sudo fsck /dev/sda1:1. sudo mount -t (-o nls=utf8 -o iocharset=utf8) :1. sudo umount IDE:1. sudo hdparm -i /dev/hdaSTAT

4、:1. sudo hdparm -I /dev/sda sudo blktool /dev/sda id:1. df:1. du -hs :1. syncfuser -km /media/usbdisk:1. sudo iostat -x 2:1. free:1. top:1. ps -A:1. pstree:1. kill killall :1. kill -9 killall -9 :1. xkill :1. lsof -pabc.txt :1. lsof abc.txt22 :1. lsof -i :22nsd :1. lsof -c nsd :1. nohup & :1. strace

5、 -f -F -o outfile :1. ulimit -n 4096 echo 4096 /proc/sys/fs/file-max ADSL :1. sudo pppoeconfADSL:1. sudo pon dsl-provider ADSL:1. sudo /etc/ppp/pppoe_on_boot ADSL :1. sudo poff:1. sudo plog:1. w3m -no-cookie -dump http:/usere:/dyndns/update?system=dyndns&hostname=

6、IP :1. arping IPIP :1. nmblookup -A IPIP :1. ifconfig eth0 |awk /inet/ split($2,x,:)print x2IP :1. w3m -no-cookie -dump |grep -o 0-91,3.0-91,3.0-91,3.0-91,380 :1. lsof -i :80:1. arp -a | awk print $4IP :1. sudo ifconfig eth0:0 netmask nat :1. echo 1 | sudo tee /proc/sys/net/ipv4

7、/ip_forward sudo iptables -t nat -I POSTROUTING -j MASQUERADE:1. netstat -rn sudo route -n :1. sudo route add -net netmask gw :1. sudo route del -net netmask gw MAC :1. sudo ifconfig eth0 hw ether 00:AA:BB:CC:DD:EEIP :1. netstat

8、 -na|grep ESTABLISHED|awk print $5|awk -F: print $1|sort|uniq -c|sort -r -nIPV6 :1. echo blacklist ipv6 | sudo tee /etc/modprobe.d/blacklist-ipv6 :1. sudo netstat -atnpADSL:1. sudo ethstatus -i ppp0:1. whois :1. tracepath IP :1. sudo dhclient:1. wget -r -p -np -k 5:1. axel -n 5 :1. sudo update-rc.d

9、defaults 99 :1. sudo update-rc.d remove:1. /etc/init.d/ restart:1. /etc/init.d/ stop:1. /etc/init.d/ start:1. sudo adduser :1. sudo deluser :1. passwd:1. sudo passwd :1. sudo chfn userid:1. sudo usermod -L sudo passwd -l :1. sudo usermod -U sudo passwd -u admin:1. sudo usermod -G admin -a Java :1. s

10、udo update-alternatives -config java :1. export http_proxy=http:/xx.xx.xx.xx:xxx:1. sudo vim /etc/motdsunjava:1. sudo update-java-alternatives -s java-6-sun:1. im-switch -cGBKUTF8 :1. convmv -r -f cp936 -t utf8 -notest -nosmart *GBKUTF8 :1. iconv -f gbk -t utf8 $i newfile mp3 :1. sudo apt-get instal

11、l python-mutagenfind . -iname *.mp3 -execdir mid3iconv -e GBK :1. sudo apt-get install zhconzhcon -utf8 -drv=vgalftp WindowsFTP:1. lftp :set ftp:charset GBKPDF :1. sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditional poppler-data :1. cat :1. more :1. less :1. grep :1. grep -l -r :1.

12、 grep -L -r :1. find -name :1. touch file1 file2:1. mkdir ?p /tmp/xxs/dsd/efd:1. rm ?fr /tmp/xxs:1. cd :1. pwd:1. ls -a:1. mv /:1. cp -av :1. file filename:1. diff file1 file2xxx6 :1. tail -n 6 xxx :1. tail -n 10 -f /var/log/apache2/access.log10 :1. sed -n 5,10p /var/log/apache2/access.logxxx :1. ap

13、ropos xxx man -k xxxssh :1. scp -rp /path/filename usernameremoteIP:/pathrmrmvb :1. rename s/.rm$/.rmvb/ *:1. rename tr/A-Z/a-z/ * -help.txt :1. rm - -help.txt rm ./-help.txt:1. ls -d */. echo */.30back :1. find . -type f -atime -30 -exec mv ./back xxxx :1. find . -type f -mmin -60|xargs -igrep -l x

14、xxx 28:1. find . -mmin +120 -mmin -480 -exec more 30 :1. find . -type f -mtime +30 -mtime -3600 -exec rm 30 :1. find . -type f -ctime +30 -ctime -3600 -exec rm guestavirm:1. find . -name *.avi -o -name *.rm -user guest -exec rm javaxml7 :1. find . ! -name *.java ! -name *.xml -atime +7 -exec rm .svn

15、 :1. find . -name .svn -type d -exec rm -fr :1. find . -name * -exec rm :1. ls .|wc -w:1. ls -l |grep d|wc -l2006-01-01 :1. ls -l |grep 2006-01-01 |awk print $8ssh :1. rsync -Pa -I -size-only -delete -timeout=300 Remote_IP:/home/ubuntu /backup 7Z :1. sudo apt-get install p7zip p7zip-full p7zip-rar r

16、ar :1. sudo apt-get install rar unrar xxx.tar.gz :1. tar -zxvf xxx.tar.gz xxx.tar.bz2 :1. tar -jxvf xxx.tar.bz2aaa bbbxxx.tar.gz :1. tar -zcvf xxx.tar.gz aaa bbbaaa bbbxxx.tar.bz2 :1. tar -jcvf xxx.tar.bz2 aaa bbb lha :1. sudo apt-get install lha cab :1. sudo apt-get install cabextract:1. cal:1. dat

17、e -s mm/dd/yy:1. date -s HH:MMCMOS :1. hwclock -systohcCMOS :1. hwclock -showCMOS :1. hwclock -hctosys :1. sudo ntpdate :1. sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimeUTCCMOS:1. sudo sed -ie s/UTC=yes/UTC=no/g /etc/default/rcSsudo hwclock -systohcmysqlroot :1. sudo mysqladmin -u root -p

18、 password :1. xset dpms force offCPU :1. sudo apt-get install cpufrequtilssudo cpufreq-info:1. sudo halt:1. sudo shutdown -h now11:1. sudo shutdown -h 23:0060:1. sudo shutdown -h +60:1. sudo reboot:1. sudo shutdown -r now :1. synclient touchpadoff=1:1. synclient touchpadoff=0 :1. awk arr$1+=1 ENDfor

19、(i in arr)print arriti FILE_NAME | sort -rn80 :1. netstat -na|grep :80|awk print $5|awk -F: print $1|sort|uniq -c|sort -r -n:1. sudo apt-get install nautilus-open-terminalTotem :1. rm /.recently-usedvim :1. sudo cp /usr/share/vim/vimcurrent/vimrc_example.vim /usr/share/vim/vimrc vim .gz :1. sudo apt

20、-get install vim-fullvim :1. :set number:1. ls /.config/autostartwine :1. sudo sed -ie /GBK/,/d /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALEISO:1. mkisofs -o test.iso -Jrv -V test_disk /home/carla/10:1. gnome-screenshot -d 105:1. gnome-screenshot -w -d 5:1. cdrecord -scanbuscdrecord -v -eject speed=

21、8 dev=1,1,0 test.iso:1. /.local/share/Trash/:1. /.local/share/applications/mimeapps.listHTTP:1. w3m -dump_head :1. watch-d freeroot:1. sudo -Hsntfs:1. sudo mount -t ntfs -o nls=utf8,umask=0 /dev/sdb1 /mnt/cntfs:1. sudo mount -t ntfs-3g -o locale=zh_CN.utf8,umask=0 /dev/sdb1 /mnt/cfat32:1. sudo mount

22、 -t vfat -o iocharset=utf8,umask=0 /dev/sda1 /mnt/c:1. sudo mount -t smbfs -ousername=xxx,password=xxx,iocharset=utf8 //share /mnt/shareISO:1. sudo mount -t iso9660 -o loop,utf8 xxx.iso /mnt/iso:1. nl rmvbavi:1. for i in * do mencoder -oac mp3lame -lameopts vbr=3 -ovc xvid -xvidencopts fi

23、xed_quant=4 -of avi $i -o echo $i | sed -e s/rmvb$/avi/ donesvgpng:1. for i in * do inkscape $i -export-png=echo $i | sed -e s/svg$/png/ done30%:1. for i in * do convert -resize 30%x30% $1 sm-$1 donejpgpng:1. for i in * do convert $i echo $i | sed -e s/jpg$/png/ donejpg(Exif):1. identify -verbose xx

24、x.jpg:1. nc -zv localhost 1-65535M:1. cat filename | tr -d M newfileM:1. sed -e s/M/g filename newfilebin/cueiso:1. sudo apt-get install bchunkbchunk image.bin image.cue imageiso:1. mkisofs dirname -o isofile.isoCDiso:1. dd if=/dev/cdrom of=isofile.isoApeflac:1. sudo apt-get install flac shntoolshnt

25、ool split -t %n.%p-%t -f example_UTF-8.cue -o flac example.ape -d flacOutputDirApemp3:1. sudo apt-get install flac shntool lameshntool split -t %n.%p-%t -f example_UTF-8.cue -o cust ext=mp3 lame -r3mix -b 320 -quiet - %f example.ape -d mp3OutputDir:1. sudo apt-get install rkhunterrkhunter -checkall:

26、1. sudo apt-get install clamavclamscan -r /:1. netstat -n | awk /tcp/ +S$NF END for(a in S) print a, Sa:1. ps -eo fname,rss|awk arr$1+=$2 END for (i in arr) print i,arri|sort -k2 -nr:1. free -m |grep Mem | awk print $2:1. ps -eo %C: %p : %z : %a|sort -k5 -nrcpu:1. ps -eo %C: %p : %z : %a|sort-nrjpg:

27、1. find . -name *.jpg -exec wc -c |awk print $1|awk a+=$1ENDprint a:xxx:1. dpkg -L xxx:1. apt-cache search :1. aptitude search :1. dpkg -S filename:1. apt-file search filenamexxx:1. apt-cache depends xxxxxx:1. apt-cache rdepends xxx:1. sudo apt-cdrom add:1. sudo apt-get updatesudo apt-get dist-upgra

28、de:1. dpkg -l |grep rc|awk print $2 |sudo xargs dpkg -Ph:1. sudo auto-apt run ./configure:1. ls /var/cache/apt/archives:1. dpkg -get-selections | grep -v deinstall /somefile:1. dpkg -set-selections /somefilesudo dselect:1. sudo apt-get autoclean:1. sudo apt-get clean:1. sudo apt-get autoremove:1. ap

29、t-get -qq -print-uris install ssh | cut -d -f2:1. uname -aUbuntu:1. cat /etc/issue lsb_release -a:1. lsmodPCI:1. lspciUSB:1. lsusb -v:1. sudo ethtool eth0CPU:1. cat /proc/cpuinfo:1. sudo lshw:1. uptime:1. sudo fdisk -l:1. sudo fdisk /dev/sda:1. sudo mkfs.ext3 /dev/sda1():1. sudo fsck /dev/sda1:1. su

30、do mount -t (-o nls=utf8 -o iocharset=utf8) :1. sudo umount IDE:1. sudo hdparm -i /dev/hdaSTAT :1. sudo hdparm -I /dev/sda sudo blktool /dev/sda id:1. df:1. du -hs :1. syncfuser -km /media/usbdisk:1. sudo iostat -x 2:1. free:1. top:1. ps -A:1. pstree:1. kill killall :1. kill -9 killall -9 :1. xkill

31、:1. lsof -pabc.txt :1. lsof abc.txt22 :1. lsof -i :22nsd :1. lsof -c nsd :1. nohup & :1. strace -f -F -o outfile :1. ulimit -n 4096 echo 4096 /proc/sys/fs/file-max ADSL :1. sudo pppoeconfADSL:1. sudo pon dsl-provider ADSL:1. sudo /etc/ppp/pppoe_on_boot ADSL :1. sudo poff:1. sudo plog:1. w3m -no-cookie -dump http:/usere:/dyndns/update?system=dyndns&hostname=IP :1. arping IPIP :1. nmblookup -A IPIP :1. ifconfig eth0 |awk /inet/ split($2,x,:)print x2IP :1. w3

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論