Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxÏÂhistory£¨ÀúÊ·£©ÃüÁîÓ÷¨Ïê½â

 
Èç¹ûÄã¾­³£Ê¹Óà Linux ÃüÁîÐУ¬ÄÇôʹÓà history£¨ÀúÊ·£©ÃüÁî¿ÉÒÔÓÐЧµØÌáÉýÄãµÄЧÂÊ¡£±¾ÎĽ«Í¨¹ýʵÀýµÄ·½Ê½ÏòÄã½éÉÜ history ÃüÁîµÄ15¸öÓ÷¨¡£
1. ʹÓà HISTTIMEFORMAT ÏÔʾʱ¼ä´Á
µ±Äã´ÓÃüÁîÐÐÖ´ÐÐ history ÃüÁîºó£¬Í¨³£Ö»»áÏÔʾÒÑÖ´ÐÐÃüÁîµÄÐòºÅºÍÃüÁî±¾Éí¡£Èç¹ûÄãÏëÒª²é¿´ÃüÁîÀúÊ·µÄʱ¼ä´Á£¬ÄÇô¿ÉÒÔÖ´ÐУº
# export HISTTIMEFORMAT='%F %T '
# history | more
1 2008-08-05 19:02:39 service network restart
2 2008-08-05 19:02:39 exit
3 2008-08-05 19:02:39 id
4 2008-08-05 19:02:39 cat /etc/redhat-release
2. ʹÓà Ctrl+R ËÑË÷ÀúÊ·
Ctrl+R ÊÇÎÒ¾­³£Ê¹ÓõÄÒ»¸ö¿ì½Ý¼ü¡£´Ë¿ì½Ý¼üÈÃÄã¶ÔÃüÁîÀúÊ·½øÐÐËÑË÷£¬¶ÔÓÚÏëÒªÖظ´Ö´ÐÐij¸öÃüÁîµÄʱºò·Ç³£ÓÐÓᣵ±ÕÒµ½ÃüÁîºó£¬Í¨³£ÔÙ°´»Ø³µ¼ü¾Í¿ÉÒÔÖ´ÐиÃÃüÁî¡£Èç¹ûÏë¶ÔÕÒµ½µÄÃüÁî½øÐе÷ÕûºóÔÙÖ´ÐУ¬Ôò¿ÉÒÔ°´Ò»ÏÂ×ó»òÓÒ·½Ïò¼ü¡£
# [Press Ctrl+R from the command prompt, which will display the reverse-i-search prompt]
(reverse-i-search)`red‘: cat /etc/redhat-release
[Note: Press enter when you see your command, which will execute the command from the history]
# cat /etc/redhat-release
Fedora release 9 (Sulphur)
3. ¿ìËÙÖظ´Ö´ÐÐÉÏÒ»ÌõÃüÁî
ÓÐ 4 ÖÖ·½·¨¿ÉÒÔÖظ´Ö´ÐÐÉÏÒ»ÌõÃüÁ
1. ʹÓÃÉÏ·½Ïò¼ü£¬²¢»Ø³µÖ´ÐС£
2. °´ !! ²¢»Ø³µÖ´ÐС£
3. ÊäÈë !-1 ²¢»Ø³µÖ´ÐС£
4. °´ Ctrl+P ²¢»Ø³µÖ´ÐС£
4. ´ÓÃüÁîÀúÊ·ÖÐÖ´ÐÐÒ»¸öÖ¸¶¨µÄÃüÁî
ÔÚÏÂÃæµÄÀý×ÓÖУ¬Èç¹ûÄãÏëÖظ´Ö´ÐÐµÚ 4 ÌõÃüÁÄÇô¿ÉÒÔÖ´ÐÐ !4£º
# history | more
1 service network restart
2 exit
3 id
4 cat /etc/redhat-release
# !4
cat /etc/redhat-release
Fedora release 9 (Sulphur)
5. ͨ¹ýÖ¸¶¨¹Ø¼ü×ÖÀ´Ö´ÐÐÒÔÇ°µÄÃüÁî
ÔÚÏÂÃæµÄÀý×Ó£¬ÊäÈë !ps ²¢»Ø³µ£¬½«Ö´ÐÐÒÔ ps ´òÍ·µÄÃüÁ
# !ps
ps aux | grep yp
root 16947 0.0 0.1 36516 1264 ? Sl 13:10 0:00 ypbind
root 17503 0.0 0.0 4124 740 pts/0 S+ 19:19 0:00 grep yp
6. ʹÓà HISTSIZE ¿ØÖÆÀúÊ·ÃüÁî¼Ç¼µÄ×ÜÐÐÊý
½«ÏÂÃæÁ½ÐÐÄÚÈÝ×·¼Óµ½ .bash_profile Îļþ²¢ÖØеǼ bash shell£¬ÃüÁîÀúÊ·µÄ¼Ç¼Êý½«±ä³É 450 Ìõ£º
# vi ~/.bash_profile
HISTSIZE=450
HISTFILESIZE=450
7. ʹÓà HISTFILE ¸ü¸ÄÀúÊ·ÎļþÃû³Æ
ĬÈÏÇé¿öÏ£¬ÃüÁîÀúÊ·´æ´¢ÔÚ ~/.bash_history ÎļþÖС£Ìí¼ÓÏÂÁÐÄÚÈݵ½ .bash_profile Îļþ²¢ÖØеÇÂ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

LinuxÍø¹Üѧϰ±Ê¼Ç£¨26£©Linux²Ù×÷ϵͳѧϰ·Ïßͼ

ARM+LINUX·Ïß Ö÷¹¥Ç¶ÈëʽLinux²Ù×÷ϵͳ¼°ÆäÉÏÓ¦ÓÃÈí¼þ¿ª·¢Ä¿±ê£º
£¨1£© ÕÆÎÕÖ÷Á÷ǶÈëʽ΢´¦ÀíÆ÷µÄ½á¹¹ÓëÔ­Àí£¨³õ²½¶¨Îªarm9£©
£¨2£© ±ØÐëÕÆÎÕÒ»¸öǶÈëʽ²Ù×÷ϵͳ £¨³õ²½¶¨Îªuclinux»òlinux,°æ±¾´ý¶¨£©
£¨3£© ±ØÐëÊìϤǶÈëʽÈí¼þ¿ª·¢Á÷³Ì²¢ÖÁÉÙ×öÒ»¸öǶÈëʽÈí¼þÏîÄ¿¡£
´ÓÊÂǶÈëʽÈí¼þ¿ª·¢µÄºÃ´¦ÊÇ ......

Linux ÈëÃų£ÓÃÃüÁî

Linux ÈëÃų£ÓÃÃüÁî
ÎÄÕµ¼¶Á]
 
×ܵÄÀ´Ëµ£¬Linux»¹ÊÇÒ»¸öÓÃÃüÁîÀ´²Ù×÷µÄϵͳ¡£Ñ§Ï°linux£¬Ê×ÒªµÄÊÇÕÆÎÕËüµÄÃüÁî¡£
1.Linux½øÈëÓëÍ˳öϵͳ
½øÈëLinuxϵͳ£º
±ØÐëÒªÊäÈëÓû§µÄÕ˺ţ¬ÔÚϵͳ°²×°¹ý³ÌÖпÉÒÔ´´½¨ÒÔÏÂÁ½ÖÖÕʺţº
¡¡¡¡1£®root--³¬¼¶Óû§Õʺţ¨ÏµÍ³¹ÜÀíÔ±£©£¬Ê¹ÓÃÕâ¸öÕʺſÉÒÔÔÚϵͳÖÐ×öÈκÎÊÂÇé¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ