webmastertoolbag.com

Online tools Web school 在线工具 基础教程 菜鸟教程 编程学习 Web 学校
?? ?? ??
arch ???? ???? ???? ??(1)
uname -m ???? ???? ???? ??(2)
uname -r ?? ?? ?? ?? ??
dmidecode -q ???? ??? ?? ??? ?????.(SMBIOS / DMI)
hdparm -i /dev/hda ???? ???? ?? ??
hdparm -tT /dev/sda ????? ??? ?? ?? ??
cat /proc/cpuinfo CPU ??? ?? ?? ??
cat /proc/interrupts ???? ??
cat /proc/meminfo ??? ??? ??
cat /proc/swaps ?? ?? ?? ??
cat /proc/version ?? ?? ??
cat /proc/net/dev ???? ??? ? ?? ??
cat /proc/mounts ??? ?? ??? ??
lspci -tv PCI ?? ??
lsusb -tv USB ?? ??
date ??? ?? ??
cal 2007 2007 ??? ??
date 041217002007.00 ?? ? ?? ?? - ? ? ? ? ??. ?
clock -w BIOS? ?? ?? ?? ??

?? ?? ??
shutdown -h now ??? ??
init 0 ??? ??
telinit 0 ??? ??
shutdown -h hours:minutes & ??? ??? ???? ?????.
shutdown -c ??? ??? ?? ????
shutdown -r now ???
reboot ???
logout ????

?? ?? ?? ??
cd /home Enter'/ home' ????'
cd .. ?? ????? ????
cd ../.. ?? ? ????? ?????.
cd ?? ??? ????? ???
cd ~user1 ?? ? ????? ??
cd - ??? ????? ????
pwd ?? ?? ??
ls ????? ?? ??
ls -F ????? ?? ??
ls -l ?? ? ???? ???? ??
ls -a ??? ?? ??
ls *[0-9]* ??? ??? ?? ? ???? ?? ????
tree ?? ?????? ???? ?? ? ????? ?? ?? ????
lstree ?? ?????? ???? ?? ? ????? ?? ?? ????
mkdir dir1 ???? ???'dir1' ????'
mkdir dir1 dir2 ? ?? ????? ??? ????
mkdir -p /tmp/dir1/dir2 ???? ?? ???
rm -f file1 ?? ?? ??'file1' file'
rmdir dir1 ?? ????? ?????.'dir1' ????'
rm -rf dir1 ?? ????? ????'dir1' ?? ??? ???? ? ??? ??? ?????.
rm -rf dir1 dir2 ? ?? ????? ? ???? ??? ????
mv dir1 new_dir ???? ?? ??/??
cp file1 file2 ?? ??
cp dir0/g' example.txt ?? ?? 0? ??? 0?? ???
cat -n file1 ??? ? ? ????
cat example.txt | awk 'NR%2==1' example.txt ???? ?? ? ?? ????
echo a b c | awk '{print $1}' ?? ? ?? ? ??
echo a b c | awk '{print $1,$3}' ? ?? ? ?? ? ? ?? ? ??
paste file1 file2 ? ?? ?? ? ?? ?? ????
paste -d '+' file1 file2 ? ?? ?? ? ?? ?? ????"+" ?? ????
sort file1 file2 ? ??? ?? ????
sort file1 file2 | uniq ? ?? ???( ?? ?? ??? ??? ??)
sort file1 file2 | uniq -u ???? ???? ??? ?? ??? ???.
sort file1 file2 | uniq -d ? ??? ??? ??( ? ??? ???? ??? ????.)
comm -1 file1 file2 ? ??? ??? ???? ???? ??? ??'file1' ??? ??? ?? ??? ?????.
comm -2 file1 file2 ? ??? ??? ???? ?? ??? ??'file2' ??? ???
comm -3 file1 file2 ? ??? ??? ???? ? ??? ??? ??? ?????.

?? ?? ??
dos2unix filedos.txt fileunix.txt ??? ??? ??? MSDOS?? UNIX? ?????.
unix2dos fileunix.txt filedos.txt ??? ??? UNIX?? MSDOS? ?????.
recode ..HTML < page.txt > page.html ??? ??? HTML? ??
recode -l | more ??? ?? ?? ?? ??

?? ?? ?? ??
badblocks -v /dev/hda1 ??? hda1?? ?? ?? ??
fsck /dev/hda1 hda1 ???? ??? ?? ??? ??/??? ??
fsck.ext2 /dev/hda1 ??? hda1?? ext2 ?? ??? ??/??? ??
e2fsck /dev/hda1 ??? hda1?? ext2 ?? ??? ??/??? ??
e2fsck -j /dev/hda1 ??? hda1?? ext3 ?? ???? ??? ??/??
fsck.ext3 /dev/hda1 hda1 ???? ext3 ?? ??? ??/??? ??
fsck.vfat /dev/hda1 hda1 ???? fat ?? ??? ?? / ??? ??
fsck.msdos /dev/hda1 hda1 ????? dos ?? ???? ??? ?? / ??
dosfsck /dev/hda1 ??? hda1?? dos ?? ???? ??? ??/??

?? ?? ??
mkfs /dev/hda1 hda1 ???? ?? ??? ???
mke2fs /dev/hda1 hda1 ???? ??? ext2 ?? ??? ???
mke2fs -j /dev/hda1 hda1 ???? ??? ext3 ???( logging) ?? ??? ???
mkfs -t vfat 32 -F /dev/hda1 FAT32 ?? ??? ???
fdformat -n /dev/fd0 ??? ??? ????
mkswap /dev/hda3 ?? ?? ??? ???

?? ?? ??
mkswap /dev/hda3 ?? ?? ??? ???
swapon /dev/hda3 ? ?? ?? ???? ??????.
swapon /dev/hda2 /dev/hdb3 ? ?? ?? ??? ???

?? ?? ?? ??
dump -0aj -f /tmp/home0.bak /home ?????'/home' ????? ?? ??
dump -1aj -f /tmp/home0.bak /home ????? ??? ??? ????.'/home' ????? ??? ??? ????.
restore -if /tmp/home0.bak ??? ?? ??
rsync -rogpav --delete /home /tmp ? ???? ???
rsync -rogpav -e ssh --delete /home ip_address:/tmp SSH ??? ?? ???
rsync -az -e ssh --delete ip_addr:/home/public /home/local ssh ? ??? ?? ?? ????? ?? ????? ?????
rsync -az -e ssh --delete /home/local ip_addr:/home/public ssh ? ??? ?? ?? ????? ?? ????? ?????
dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr 'dd of=hda.gz' ssh? ?? ?? ????? ?? ??? ?? ????
dd if=/dev/sda of=/tmp/file1 ???? ??? ??? ????
tar -Puf backup.tar /home/user ????? ??? ?? ??'/home/user' ????? ??? ?? ??
( cd /tmp/local/ && tar c . ) | ssh -C user@ip_addr 'cd /home/share/ && tar x -p' ssh? ?? ????? ??? ?? ????? ????
( tar c /home ) | ssh -C user@ip_addr 'cd /home/backup-home && tar x -p' ssh? ?? ?? ????? ?? ????? ????
tar cf - . | (cd /tmp/backup ; tar xf - ) ?? ? ??? ????? ????? ?? ??? ??? ?????.
find /home/user1 -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents ? ??? ?? ?? ?? ? ??'.txt' ? ??? ?? ??? ?? ?? ????? ??
find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2 ??? ??? ?? ?? ??'.log' ??? ??? ?? ??? ?? bzip ???? ????.
dd if=/dev/hda of=/dev/fd0 bs=512 count=1 MBR? ??? ???(Master Boot Record) ??? ??? ???? ????
dd if=/dev/fd0 of=/dev/hda bs=512 count=1 ??? ???? ??? ???? MBR ?? ????

?? ?? ?? ??
cdrecord -v gracetime=2 dev=/dev/cdrom -eject blank=fast -force ??? ??? ???? ??? ????.
mkisofs /dev/cdrom > cd.iso ???? ???? ISO ???? ????.
mkisofs /dev/cdrom | gzip > cd_iso.gz ???? ???? ??? iso ???? ????.
mkisofs -J -allow-leading-dots -R -V "Label CD" -iso-level 4 -o ./cd.iso data_cd ????? ISO ???? ????.
cdrecord -v dev=/dev/cdrom cd.iso ISO ??? ?? ??
gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom - ??? ISO ??? ??? ????.
mount -o loop cd.iso /mnt/iso ISO ??? ?? ???
cd-paranoia -B CD ????? ??? ??? wav ??? ????
cd-paranoia -- "-3" CD ????? wav ??? ?? ??(???? -3)
cdrecord --scanbus ??? ???? SCSI ?? ??
dd if=/dev/hdc | md5sum ??(?: CD)? md5sum ??? ??

?? ?? ??
dhclient eth0 dhcp ???? 'eth0' ???? ??? ??????.
ethtool eth0 ???? ?? 'eth0'? ?? ??? ??? ?????.
host www.example.com ??? ??? ?? ??? IP ?? ? ??? ?????.
hostname ??? ?? ??
ifconfig eth0 ??? ??? ??? ?????.
ifconfig eth0 192.168.1.1 netmask 255.255.255.0 IP ?? ????
ifconfig eth0 promisc ?? ???? ?? 'eth0'? ??? ??? ????
ifdown eth0 'eth0' ???? ?? ????
ifup eth0 'eth0' ???? ?? ???
ip link show ?? ???? ??? ?? ?? ??
iwconfig eth1 ?? ??? ?? ??
iwlist scan ?? ???? ??
mii-tool eth0 'eth0'? ?? ?? ??
netstat -tup ???? ?? ???? ?? ? ?? PID ??
netstat -tup1 ????? ?? ?? ?? ???? ??? ? ?? PID? ?????.
netstat -rn 'route -n' ??? ???? ??? ???? ?????.
nslookup www.example.com ??? IP ?? ? ??? ??? ??? ??? ????.
route -n ??? ??? ??
route add -net 0/0 gw IP Gateway ?? ??? ????? ????
route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 ???? '192.168.0.0/16'? ?? ?? ??? ?????.
route del 0/0 gw IP gateway ?? ?? ??
echo “1”> /proc/sys/net/ipv4/ip_foward IP ??? ???
tcpdump tcp port 80 ?? HTTP ?? ??
whois www.example.com Whois ???????? ??

?? ?? ?? ??
mount -t smbfs -o username=user,password=pass Windows ???? ?? ???
nbtscan ip addr netbios ?? ??
nmblookup -A ip addr netbios ?? ??
smbclient -L ip addr/hostname Windows ???? ?? ?? ??
smbget -Rr smb: wget? ?? smb? ?? Windows ????? ??? ???????.

?? ?? ??
iptables -t filter -L ?? ???? ?? ??? ?????.
iptables -t nae -L NAT ???? ?? ??? ?????.
iptables -t filter -F ?? ???? ??? ?? ??? ????.
iptables -t nat -F nat ???? ???? ?? ??? ????.
iptables -t filter -X ???? ?? ?? ?? ??
iptables -t filter -A INPUT -p tcp --dport telnet -j ACCEPT ?? ??? ??
iptables -t filter -A OUTPUT -p tcp --dport telnet -j DROP ?? ??? ??
iptables -t filter -A FORWARD -p tcp --dport pop3 -j ACCEPT ???? POP3 ?? ??? ??
iptables -t filter -A INPUT -j LOG --log-prefix ???? ??? ?? ?? ??
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE eth0?? ??? ??? ?????? PAT(?? ?? ??)? ?????.
iptables -t nat -A POSTROUTING -d 192.168.0.1 -p tcp -m tcp --dport 22-j DNAT --to-destination 10.0.0.2:22 ? ??? ??? ??? ??? ?? ???? ????

?? ?? ??
free -m RAM ??? ????? ??? ??
kill -9 process id ????? ??? ???? ??
kill -1 process id ????? ??? ??? ?? ????? ??
last reboot ??? ?? ??
lsmod ?? ??? ?? ??
lsof -p process id ????? ? ?? ?? ????
lsof /home/user1 ??? ??? ???? ?? ?? ?? ??
ps -eafw ??? ?? ????
ps -e -o pid,args --forest ??? ??? ??? ???? ?????.
pstress ?? ??? ???? ??
smartctl -A /dev/hda SMART? ????? ?? ??? ??? ???? ???????.
smartctl -i /dev/hda ?? ??? ??? SMART? ????? ??? ?????.
strace -c ls >/dev/null ?????? ???? ??? ?? ??
strace -f -e open ls >/dev/null ????? ?? ??
tail /var/log/dmesg ?? ?? ? ?? ??? ??
tail /val/log/messages ??? ??? ??
top CPU ???? ?? ?? ???? Linux ?? ????
watch -nl ‘cat /proc/interrupts’ ??? ???? ????

?? ?? ??
alias hh='history' ?? ??? ??? ?????.
apropos ...keyword ???? ???? ?? ??? ??? ????? ??? ?? ?? ???? ???? ?? ? ?? ?????.
chsh ? ??? ????
chsh --list-shells ?? ???? ???? ???? ? ? ??? ??????.
gpg -c filel GNU Privacy Guard? ?? ?????
gpg filel.gpg GNU Privacy Guard? ??? ??? ?????.
??? ?? ???: