linux ³£ÓÃÃüÁî
ϵͳÐÅÏ¢
arch
ÏÔʾ»úÆ÷µÄ´¦ÀíÆ÷¼Ü¹¹(1)
uname -m
ÏÔʾ»úÆ÷µÄ´¦ÀíÆ÷¼Ü¹¹(2)
uname -r
ÏÔʾÕýÔÚʹÓõÄÄں˰汾
dmidecode -q
ÏÔʾӲ¼þϵͳ²¿¼þ – (SMBIOS / DMI)
hdparm -i /dev/hda
ÂÞÁÐÒ»¸ö´ÅÅ̵ļܹ¹ÌØÐÔ
hdparm -tT /dev/sda
ÔÚ´ÅÅÌÉÏÖ´ÐвâÊÔÐÔ¶ÁÈ¡²Ù×÷
cat /proc/cpuinfo
ÏÔʾCPU infoµÄÐÅÏ¢
cat /proc/interrupts
ÏÔʾÖжÏ
cat /proc/meminfo
УÑéÄÚ´æÊ¹ÓÃ
cat /proc/swaps
ÏÔʾÄÄЩswap±»Ê¹ÓÃ
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
linux commands line list v1.2 – LinuxGuide.it
·µ»Ø¶¥²¿Ë÷Òý ^
¹Ø»ú (ϵͳµÄ¹Ø»ú¡¢ÖØÆôÒÔ¼°µÇ³ö )
shutdown -h now
¹Ø±Õϵͳ(1)
init 0
¹Ø±Õϵͳ(2)
telinit 0
¹Ø±Õϵͳ(3)
shutdown -h hours:minutes &
°´Ô¤¶¨Ê±¼ä¹Ø±Õϵͳ
shutdown -c
È¡Ïû°´Ô¤¶¨Ê±¼ä¹Ø±Õϵͳ
shutdown -r now
ÖØÆô(1)
reboot
ÖØÆô(2)
logout
×¢Ïú
linux commands line list v1.2 – LinuxGuide.it
·µ»Ø¶¥²¿Ë÷Òý ^
ÎļþºÍĿ¼
cd /home
½øÈë ‘/ home’ Ŀ¼’
cd ..
·µ»ØÉÏÒ»¼¶Ä¿Â¼
cd ../..
·µ»ØÉÏÁ½¼¶Ä¿Â¼
cd
½øÈë¸öÈ˵ÄÖ÷Ŀ¼
cd ~user1
½øÈë¸öÈ˵ÄÖ÷Ŀ¼
cd -
·µ»ØÉÏ´ÎËùÔÚµÄĿ¼
pwd
ÏÔʾ¹¤×÷·¾¶
ls
²é¿´Ä¿Â¼ÖеÄÎļþ
ls -F
²é¿´Ä¿Â¼ÖеÄÎļþ
ls -l
ÏÔʾÎļþºÍĿ¼µÄÏêϸ×ÊÁÏ
ls -a
ÏÔʾÒþ²ØÎļþ
ls *[0-9]*
ÏÔʾ°üº¬Êý×ÖµÄÎļþÃûºÍĿ¼Ãû
tree
ÏÔʾÎļþºÍĿ¼ÓɸùĿ¼¿ªÊ¼µÄÊ÷Ðνṹ(1)
lstree
ÏÔʾÎļþºÍĿ¼ÓɸùĿ¼¿ªÊ¼µÄÊ÷Ðνṹ(2)
mkdir dir1
´´½¨Ò»¸ö½Ð×ö ‘dir1′ µÄĿ¼’
mkdir dir1 dir2
ͬʱ´´½¨Á½¸öĿ¼
mkdir -p /tmp/dir1/dir2
´´½¨Ò»¸öĿ¼Ê÷
rm -f file1
ɾ³ýÒ»¸ö½Ð×ö ‘file1′ µÄÎļþ’
rmdir dir1
ɾ³ýÒ»¸ö½Ð×ö ‘dir1′ µÄĿ¼’
rm -rf dir1
ɾ³ýÒ»¸ö½Ð×ö ‘dir1′ µÄĿ¼²¢Í¬Ê±É¾³ýÆäÄÚÈÝ
rm -rf dir1 dir2
ͬʱɾ³ýÁ½¸öĿ¼¼°ËüÃǵÄÄÚÈÝ
mv dir1 new_dir
ÖØÃüÃû/ÒÆ¶¯ Ò»¸öĿ¼
cp file1 file2
¸´ÖÆÒ»¸öÎļþ
cp dir/*
Ïà¹ØÎĵµ£º
µÚ4ÕÂ LinuxÍøÂç½Ó¿ÚÅäÖÃ
Linuxϵͳ¾ßÓзḻµÄÍøÂ繦ÄÜ£¬ÔÚʹÓÃÍøÂç»òÎªÍøÂçÖÐµÄÆäËûÖ÷»úÌá¹©ÍøÂç·þÎñǰ£¬±ØÐëÒªÏÈÅäÖúÃÍøÂç½Ó¿Ú¡£±¾ÕÂÖ÷Òª½éÉÜTCP/IPÍøÂçµÄһЩ»ù´¡ÀíÂÛ֪ʶ¡¢ÍøÂçÅäÖÃÖÐÐèÒªÀí½âµÄ¸ÅÄîÒÔ¼°ÈçºÎÔÚͼÐλ·¾³Ï£¬ÅäÖø÷ÖÖÍøÂç½Ó¿Ú¡£ ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
¼ÆËã»ú×ÀÃæ¼«Îª¸´ÔÓ£¬ÕâÊÇÈËÓë»úÆ÷Ï໥¶ÔÞĵĵط½¡£µ±½ñ£¬
Linux
×ÀÃæÓöµ½ÁËһЩÂé·³£¬
bug
³ÉǧÉÏÍò£¬Ôõô°ìÄØ£¿
ÿÈÕ×Ðϸ¹Û²ì
Ubu ......
ÕªÒª£º LinuxÎļþÀàÐͳ£¼ûµÄÓУºÆÕͨÎļþ¡¢Ä¿Â¼¡¢×Ö·ûÉ豸Îļþ¡¢¿éÉ豸Îļþ¡¢·ûºÅÁ´½ÓÎļþµÈ£¬Èç¹ûÏëÁ˽âÕâ·½ÃæÖªÊ¶µÄµÜÐÖ£¬¾Í½øÀ´Á˽âÁ˽⡣±¾ÎÄÓ¦¸Ã˵ÊÇ»ù´¡Îĵµ¡£
Ŀ¼
2.1 ÆÕͨÎļþ£»
2.2 Ŀ¼£»
2.3 ×Ö·ûÉ豸»ò¿éÉ豸Îļþ£»
2.4 Ì×½Ó¿ÚÎļþ£»
2.5 ·ûºÅÁ´½ÓÎļþ£»
1¡¢LinuxÎļþµÄÀ©Õ¹Ãû£»
2¡¢Linux Î ......
ÓÃputty»òÕ߯äËûÖÕ¶ËÈí¼þµÇ¼linuxºó£¬Îļþ¼Ð£¬±à¼ÎļþÄÚÈÝ×ÖÌ嶼ΪÀ¶É«£¬±³¾°ÎªºÚÉ«£¬ÏԵðµµÄ£ºý£¬´ÓÍøÉÏËÑË÷µ½Á˽â¾ö°ì·¨
ÎÒµÄϵͳΪcentos5.3
Îļþ¼Ð¸Ä³É±ðµÄÑÕÉ«µÄ·½·¨£º
Ê×ÏÈ£¬
# vi /etc/DIR_COLORS
ÄÚµÄÉ趨“DIR 01£»34”£¬ÎªlsÃüÁîµÄĿ¼µÄÑÕÉ«ÉèÖã¬01±íʾ´ÖÌ壬34±íʾ×ÖÌåÀ¶É«¡£
ÎÒ°ÑËü¸Ä³ÉÁ ......