我的linux學習: #[基本命令]+++++++++++++++++++++++++++++++++++++++++++++ ls ls -a;ls -l;ls -sh cd cd -;cd ~; mkdir mkdir -p {dir1,dir2/{dir21,dir22}} setup pwd ln ln -s; chkconfig chkconfig --level;chkconfig --help; #+++++++++++++++++++++++++++++++++++++++++++++++++++++++7 #[網路]+++++++++++++++++++++++++++++++++++++++++++++++++11 tcpdump tcpdump tcp -ni eth0 -s 0 -X port 80; traceroute traceroute www.google.com;-g -G arp arp -a ip ip link list;ip link set eth1 up/down;ip link show; nc nc --help route route add/del/ netconfig netconfig mii-tool mii-tool -v netstat netstat -ntlp(n:don't resolve the host;t:tcp;u:udp;l:listening port;p:process) iptables iptables -A input -s 0.0.0.0/0 -p icmp -j DROP; ping ping hostname; nmap nmap -v -p3306 222.68.194.5; wget nstat # 網路信息統計 nslookup scp # remote copy. ifup/ifdown [device name] ethtool #+++++++++++++++++++++++++++++++++++++++++++++++++++++++ #[硬體]+++++++++++++++++++++++++++++++++++++++++++++++++ kudzu kudzu fdisk fdisk -l fsck dmesg dmesg | grep eth1 mount mount /dev/sda1 /mnt umount umount /mnt lspci 顯示硬體信息,含有顯卡、網卡、音效卡等信息 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++6 #[文本編輯]+++++++++++++++++++++++++++++++++++++++++++++ dos2unix iconv iconv -f gbk -t utf-8 filename cat cut echo "123456789" | cut -c3-5; cut -f2 file;#列印第二列 vim awk sed sed -n -e '4,5!p' filename;#列印除4-5行之間的所有行 tail tail -f filename;tail filename;tail -10 filename; head less more grep find find / -name regix; find ./ -mtime +7; find ./ -type f -mtime +7 -exec rm {} \; expr expr 8 + 19; lsof lsof -i;#list open file #+++++++++++++++++++++++++++++++++++++++++++++++++++++++14 #[賬戶管理]+++++++++++++++++++++++++++++++++++++++++++++ chmod chown chgrp who whois whoami useradd useradd newuser -g group -d homedir -p passwd userdel groupadd groupdel chroot chattr sudo md5sum umask visudo -f /etc/sudoers su #+++++++++++++++++++++++++++++++++++++++++++++++++++++++17 #[程序編譯]++++++++++++++++++++++++++++++++++++++++++++++ gcc gcc -L [lib path] -I [include path] -o [output] program gdb make make cc c++ g++ #+++++++++++++++++++++++++++++++++++++++++++++++++++++++ #[系統性能監測]+++++++++++++++++++++++++++++++++++++++++ uptime finger w top top -p ps kill killall vmstat free df du finger #+++++++++++++++++++++++++++++++++++++++++++++++++++++++7 #[壓縮解壓]+++++++++++++++++++++++++++++++++++++++++++++ tar(tar.gz tar.bz2 tar) gunzip zip unzip compress/uncompress #+++++++++++++++++++++++++++++++++++++++++++++++++++++++4 #[系統信息]++++++++++++++++++++++++++++++++++++++++++++++ which whereis # xhost uname -a date cal env hwclock hostname host host www.google.com last # 查看所有用戶登陸伺服器的情況 logname # 查看當前最初登錄的用戶 lastlog # 顯示最後登錄過的用戶 mesg [y|n] # 決定是否允許其他人傳訊息到自己的終端機介面 minicom # 類似於windows超級終端的linux終端工具******* mouseconfig # 配置滑鼠 mmount # mount a msdos disk wc # print the number of newlines, words and bytes in file. ipcs runlevel init alias #+++++++++++++++++++++++++++++++++++++++++++++++++++++++ #[其他]+++++++++++++++++++++++++++++++++++++++++++++++++ diff bc dc ldconfig expr crontab man htmlview ac #print statistics about users connect time. ab # 詳細內容man dd # 輸入或輸出 # dd if=[STDIN] of=[STDOUT] # 強迫輸入或輸出的Size為多少Bytes # bs: dd -ibs=[BYTE] -obs=[SIZE] history ifcfg nl # number line of files nm # 二進位文件分析工具(默認分析當前目錄下的a.out文件) perl pstree tr # translate or delete characters. touch # change file timestamp. sync # 及時同步內存中與硬碟上的數據,將內存中的數據寫入硬碟。 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++9 [CONFIGURATION FILE] ##[/etc]+++++++++++++++++++++++++++++++++++++++++++++++++ /etc/host.conf /etc/hosts network config file: /etc/sysconfig/network-scripts/ifcfg-eth0 rc.local: /etc/rc.local -> /etc/rc.d/rc.local system dir colors: /etc/DIR_COLORS DNS server: /etc/resolv.conf init level: /etc/inittab shared dynamic lib: /etc/ld.so.conf password: /etc/passwd service: /etc/service shells: /etc/shells sysctl: /etc/sysctl.conf grub configuration: /etc/grub.conf disk info: /etc/fstab hardware info: /etc/sysconfig/hwconf user permission control:/etc/sudoers #++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ##[/proc]++++++++++++++++++++++++++++++++++++++++++++++++ memory info: /proc/meminfo cpu info: /proc/cpuinfo partitions info: /proc/partitions version info: /proc/version #++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ##[/etc/rc.d]++++++++++++++++++++++++++++++++++++++++++++ /etc/rc.d/init.d/
[火星人
]
我的Linux學習 已經有372 次圍觀
本文地址: http://coctec.com/docs/linux/show-post-121615.html