Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ϵͳÐÂÊÖѧϰµÄ11µã½¨Òé

LinuxϵͳÐÂÊÖѧϰµÄ11µã½¨Òé
Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¸ù¾ÝѧϰWindwosµÄ¾­ÑéÍùÍùÓÐһЩãȻµÄ¸Ð¾õ£º²»Öª´ÓºÎ´¦¿ªÊ¼Ñ§Æð¡£ÕâÀï½éÉÜѧϰLinuxµÄһЩ½¨Òé¡£
Ò»¡¢´Ó»ù´¡¿ªÊ¼£º³£³£ÓÐЩÅóÓÑÔÚLinuxÂÛ̳ÎÊһЩÎÊÌ⣬²»¹ý£¬ÆäÖдó¶àÊýµÄÎÊÌⶼÊǺܻù´¡µÄ¡£ÀýÈ磺ΪʲôÎÒʹÓÃÒ»¸öÃüÁîµÄʱºò£¬ÏµÍ³¸æËßÎÒÕÒ² ......

linuxÏÂcscopeµÄʹÓÃ

 ÔÚfcdµÄÏîÄ¿ÖУ¬Ê¹ÓÃvim×÷Ϊide¡£ÄÇôcscope¿ÉÒÔ°ïÖúvimÀ©Õ¹ÀàËÆÓÚº¯Êý¡¢¶ÔÏóµÄ²éÕÒ¡¢½»²æÒýÓòéѯµÈ¹¦ÄÜ¡£
ÃüÁîÐÐΪ£º
cscope -Rbkq
Éú³Éµ±Ç°Ä¿Â¼ÏÂcscope.outÎļþÐÅÏ¢£¬±£´æ׎»²æÒýÓõÄÐÅÏ¢¡£
vimÖУ¬cscoupʹÓãº
cs add cscope.out
È»ºó²éÕÒ£º
cs find s Òª²éÕÒµÄÃû³Æ
ÆäÖÐs´¦¿ÉÒÔÊÇ£º ......

¡¾VNC¡¿Linux»·¾³VNC·þÎñ°²×°¡¢ÅäÖÃÓëʹÓÃ

 1.È·ÈÏVNCÊÇ·ñ°²×°
ĬÈÏÇé¿öÏ£¬Red Hat Enterprise Linux°²×°³ÌÐò»á½«VNC·þÎñ°²×°ÔÚϵͳÉÏ¡£
È·ÈÏÊÇ·ñÒѾ­°²×°VNC·þÎñ¼°²é¿´°²×°µÄVNC°æ±¾
[root@testdb ~]# rpm -q vnc-server
vnc-server-4.1.2-9.el5
[root@testdb ~]#
ÈôϵͳûÓа²×°,¿ÉÒÔµ½²Ù×÷ϵͳ°²×°Å̵ÄServerĿ¼ÏÂÕÒµ½VNC·þÎñµÄRPM°²×°°üvnc-server- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ