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

Linux ×î¼Ñʵ¼ù ¶ÁÊé×ܽá

1> ʹÓÃCDPATHÉèÖà cd ÃüÁîµÄ¹¤×÷Ŀ¼
[ramesh@dev-db ~]# pwd 
/home/ramesh 
[ramesh@dev-db ~]# cd mail 
-bash: cd: mail: No such file or directory 
[×¢Ò⣺ÔÚµ±Ç°Ä¿Â¼ÏÂÑ°ÕÒMAILĿ¼] 
[ramesh@dev-db ~]# export CDPATH=/etc 
[ramesh@dev-db ~]# cd mail /etc/mail 
[×¢Ò⣺ÕâÊÇÔÚ/etcÏÂÑ°ÕÒMAILĿ¼] 
[ramesh@dev-db /etc/mail]# pwd 
/etc/mail 
ÏëÒªÕâ¸öÉèÖÃÓÀ¾ÃÉúЧ, °Ñexport CDPATH=/etc Ìí¼Óµ½ÄãµÄ.bash_profileÖС£
2> ʹÓÃcd ±ðÃû(alias)À´¸üÓÐЧµÄ·µ»ØÉϲãĿ¼
# mkdir -p /tmp/very/long/directory/structure/that/is/too/deep 
# cd /tmp/very/long/directory/structure/that/is/too/deep 
# pwd /tmp/very/long/directory/structure/that/is/too/deep 
# cd ../../../../
Ìí¼ÓÈçÏÂ
alias cd1="cd .." 
alias cd2="cd ../.." 
alias cd3="cd ../../.." 
alias cd4="cd ../../../.." 
alias cd5="cd ../../../../.."
µ½ÄãµÄ.bash_profileÖк󣬾ͿÉÒÔÈçÏ»ص½Éϲã/ÉÏÉϲã/ÉÏÉÏÉϲãĿ¼ÁË  :)
# cd /tmp/very/long/directory/structure/that/is/too/deep
# cd4
# pwd
/tmp/very/long/directory/structure/


Ïà¹ØÎĵµ£º

LinuxÏÂMakefileµÄautomakeÉú³ÉÈ«¹¥ÂÔ

¡¡           ת×Ô http://tech.sina.com.cn/s/2004-10-19/1115443045.shtml
   ×÷ΪLinuxϵijÌÐò¿ª·¢ÈËÔ±£¬´ó¼ÒÒ»¶¨¶¼Óöµ½¹ýMakefile£¬ÓÃmakeÃüÁîÀ´±àÒë×Ô¼ºÐ´µÄ³ÌÐòȷʵÊǺܷ½±ã¡£Ò»°ãÇé¿öÏ£¬´ó¼Ò¶¼ÊÇÊÖ¹¤Ð´Ò»¸ö¼òµ¥Makefile£¬Èç¹ûÒªÏëд³öÒ»¸ö·ûºÏ×ÔÓÉÈ ......

linuxÐÞ¸Ässh¶Ë¿ÚºÍ½ûÖ¹rootÔ¶³ÌµÇ½ÉèÖÃ

linuxÐÞ¸Ässh¶Ë¿Ú22
vi /etc/ssh/ssh_config
vi /etc/ssh/sshd_config
È»ºóÐÞ¸ÄΪport 8888
ÒÔrootÉí·Ýservice sshd restart (redhat as3)
ʹÓÃputty,¶Ë¿Ú8888
LinuxÏÂSSHĬÈϵĶ˿ÚÊÇ22,ΪÁË°²È«¿¼ÂÇ£¬ÏÖÐÞ¸ÄSSHµÄ¶Ë¿ÚΪ1433,Ð޸ķ½·¨ÈçÏ £º
/usr/sbin/sshd -p 1433
ΪÔöÇ¿°²È«
ÏÈÔö¼ÓÒ»¸öÆÕͨȨÏÞµÄÓû§£º ......

ÔÚwindowsƽ̨Éϴlinux C ¿ª·¢»·¾³

×¢£ºÇëÔÊÐíÎÒתÔØÄúµÄ¼Ñ×÷
ÔÚwindowsÉÏ¿ª·¢Äܹ»ÔÚlinuxÉϱàÒëµÄC´úÂ룬ÎÒ²éÁ˲éÓÐ2¸öÈí¼þ¿ÉÒÔʵÏÖ£¬Ò»¸öÊÇCygwin£¬Ò»¸öÊÇmingw¡£ÆäÖÐcygwinÊÇÒ»¸öwindowsÉÏlinux»·¾³µÄÄ£Ä⹤¾ß£¬ËûÌṩÁ˺ܶàlinux¹¤¾ßµÄwindowsʵÏÖ°æ±¾£¬ÀýÈçvi£¬emacsµÈµÈ£¬µ±È»Ò²°üÀ¨GCC¡£Ê¹ÓÃmingwµÄºÃ´¦¾ÍÊDZàÒë¹ýµÄ³ÌÐòÖ±½Ó¾Í¿ÉÒÔÅÜÁË£¬¶øcygwinÔòÐè ......

LinuxµÄshell±à³Ì


 
Shell±¾ÉíÊÇÒ»¸öÓÃCÓïÑÔ±àдµÄ³ÌÐò£¬ËüÊÇÓû§Ê¹ÓÃLinuxµÄÇÅÁº¡£Shell¼ÈÊÇÒ»ÖÖÃüÁîÓïÑÔ£¬ÓÖÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ¡£×÷ΪÃüÁîÓïÑÔ£¬Ëü½»»¥Ê½µØ½âÊͺÍÖ´ÐÐÓû§ÊäÈëµÄÃüÁ×÷Ϊ³ÌÐòÉè¼ÆÓïÑÔ£¬Ëü¶¨ÒåÁ˸÷ÖÖ±äÁ¿ºÍ²ÎÊý£¬²¢ÌṩÁËÐí¶àÔڸ߼¶ÓïÑÔÖвžßÓеĿØÖƽṹ£¬°üÀ¨Ñ­»·ºÍ·ÖÖ§¡£ËüËäÈ»²»ÊÇLinuxϵͳºËÐĵÄÒ»²¿·Ö£¬µ«Ë ......

linuxÄÚºËprintkµ÷ÊÔ


linuxÄÚºËprintkµ÷ÊÔ£¨ÕªÂ¼¡¶Linux°²È«Ìåϵ·ÖÎöÓë±à³Ì¡·£©
linuxÄÚºËprintkµ÷ÊÔ£¨ÕªÂ¼¡¶Linux°²È«Ìåϵ·ÖÎöÓë±à³Ì¡·£©
1  printk¼°¿ØÖÆ̨µÄÈÕÖ¾¼¶±ð
º¯ÊýprintkµÄʹÓ÷½·¨ºÍprintfÏàËÆ£¬ÓÃÓÚÄں˴òÓ¡ÏûÏ¢¡£printk¸ù¾ÝÈÕÖ¾¼¶±ð£¨loglevel£©¶ÔÏûÏ¢½øÐзÖÀà¡£
ÈÕÖ¾¼¶±ðÓú궨Ò壬ÈÕÖ¾¼¶±ðºêÕ¹¿ªÎªÒ»¸ö×Ö·û´®£¬ÔÚ±àÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ