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/*
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
1.make & Makefile µÄ»ù±¾Ó÷¨£º
Ò»¸ö³ÌÐòÓÉprint.cºÍmain.cÁ½¸öÔ´Îļþ¹¹³É£¬³ÌÐòµÄ¹¦ÄÜÊÇmain.cÖеÄmainº¯Êýµ÷ÓÃprint.cÖж¨ÒåµÄprintº¯Êý¡£
(1)»ù±¾µÄ±àÒëÁ´½Ó£º
# cc -c main.c //±àÒëma ......
¡¡¡¡bashÓÐÁ½ÖÖÊäÈëģʽviģʽºÍemacsģʽ£¬ÆäÖÐemacsÊÇĬÈÏģʽ£¬¶øÇÒ²Ù×÷ÆðÀ´Ò²±ÈviģʽҪ¿ì½Ý¡£¿ÉÒÔͨ¹ý set -o viºÍset -o emacsÀ´×ª»»¡£
¡¡¡¡1.ÔÚÃüÁîÀúÊ·ÖвéÕÒ
¡¡
¡¡Ç¿ÁÒÍƼöʹÓà Ctrl+r£¬ Õâ¸ö¼ü×éºÏÊÇ·´ÏòÔöÁ¿²éÕÒÏûÏ¢ÀúÊ·¡£ºÜºÃÓᣠ±ÈÈçÄãºÜ¾ÃÒÔÇ°ÊäÈë¹ýij¸öÃüÁîÈç¡£ gcc -c -DKKT -
Dnnn µÈµÈ£¬Ò»³¤´®£¬ ......
# °²×°tidy
yum install tidy libtidy-devel
# ¸øphpÌí¼ÓtidyÄ£¿é
wget http://pecl.php.net/get/tidy-1.2.tgz
tar -xvzf tidy-1.2.tgz
cd tidy-1.2
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --libdir=/usr/lib64
make
make install
echo "extension="tidy.so"" ......
Ò»¡¢´ò¿ª/etc/apt/source.listÔ´ÁбíÎļþ¼Ó·ÅÔ´
¶þ¡¢make ¹¤¾ß£º
makeĬÈϲéÕÒµÄÎļþÃû:GNUmakefile makefile Makefile
&nbs ......