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

a shortcut for linux( from linux journal )

if you come from the world of Windows, you undoubtedly understand the concept of a shortcut. In the Linux world, shortcuts do exist, but they're generally referred to as symbolic links, or symlinks. They are so named because, like shortcuts, a symlink is really just a symbolic placeholder or link to the file or directory you're trying to get at.
Of course, the world of pretty graphics and windows provides ways of creating symlinks. However, for the impatient, the command line allows you to do the job with less clicking around. Let's have a look at an example.
Suppose I'm working on a Web site, and I want all of the Web site files to be located in /home/jonesy/public_html/websites/testing/site1. I need to have quick access to this directory on a pretty regular basis, so it would be nice to have a shortcut on my desktop so I can get to it in a single click. It also would be nice to be able to drag files to the folder without having to browse to it first.
In this scenario, we call /home/jonesy/public_html/websites/testing/site1 the source directory, and I create that directory using the mkdir command. Follow along at home:
mkdir -p /home/jonesy/public_html/websites/testing/site1
Remember to change jonesy to your own login name.
Again, we've just created the source directory. The mkdir command creates a directory anywhere you have permission to do so. The -p option tells mkdir to create any parent directories along the way that don't already exist.
We call the symlink itself the target, and it points to the source we just created. Note that we can call the target whatever we want. In this case, I just call it site1. To make a link that shows up on my desktop, I open up Konsole and run the following command:
@cx:ln -s /home/jonesy/public_html/websites/testing/site1<\n>/home/jonesy/Desktop/site1
Again, remember to change jonesy in the above command to your own login name.
The ln command can make other types of links besides symbolic links, so it's importan


Ïà¹ØÎĵµ£º

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

дµÃÂùºÃµÄlinuxѧϰ±Ê¼Ç£¨×ª£©


linuxĿ¼¼Ü¹¹
/   ¸ùĿ¼
/bin    ³£ÓõÄÃüÁî
binary file µÄÄ¿錄
/boot   ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ
(kernel) ÔÚÄÚ
     /boot/grub/menu.lst   GRUBÉèÖÃ
     /boot/vmlinuz   ÄÚºË
  ......

ÆÊÎöÒ»¸öÓÉsendfileÒý·¢µÄlinuxÄÚºËBUG

֮ǰ¿´ÁË¡¶Ð±¬Äں˸ßΣ©¶´sock_sendpageµÄÀûÓ÷ÖÎöµÄÌÖÂÛ
¡·ÕâƪÌû×Ó£¬ÔھżúÐÖºÍÖîλCUerµÄÖ¸ÒýÏ£¬´óÖÂŪÇåÁËÕû¸ö©¶´µÄʼĩ¡£ÏÖÓë´ó¼Ò·ÖÏí£¨ÒýÓÃ×ÔÎҵĿռä
£©¡£
ÓÐʲô²»×ãÖ®´¦»¹Íû¶à¶àÖ¸½Ì~
Äں˵ÄBUG
Õâ¸öBUGÊ×ÏȵôÓsendfileϵͳµ÷ÓÃ˵Æð¡£
¿¼Âǽ«Ò»¸ö±¾µØÎļþͨ¹ýsocket·¢ËͳöÈ¥µÄÎÊÌâ¡£ÎÒÃÇͨ³£µÄ×ö·¨ÊÇ£º ......

¹ØÓÚLinux²Ù×÷ϵͳϱðÃûµÄÉèÖÃ


linuxϵͳ¿ÉÒÔ°ÑһЩ³£ÓõÄÃüÁî×öÒ»¸ö¼ò¶ÌµÄ±ðÃû
 
alias tomcat£½"cd /usr/local/tomcat",µ«ÊÇÍ˳öϵͳºóÕâЩ±ðÃû¾ÍʧЧÁË£¬ÈçºÎ°Ñ±ðÃûдÈëÅäÖÃÎļþ£º
 
Ê×ÏÈÕÒµ½µÇ½µÄÓû§µÄÎļþ¼Ð£¬±ÈÈçROOTµÇ½µÄʱºò£¬ÔÚ/Ŀ¼Ï½øÈëROOTĿ¼±à¼­.bash_profileÎļþ
 
±ÈÈç¿ÉÒÔÕâÑù±à¼­£¨alias ÕâÁ ......

LinuxÈçºÎ±àÒë°²×°Ô´Âë°üÈí¼þ

Ò»¡¢Ê²Ã´ÊÇÔ´Âë°üÈí¼þ£»
¹ËÃû˼Ò壬ԴÂë°ü¾ÍÊÇÔ´´úÂëµÄ¿É¼ûµÄÈí¼þ°ü£¬»ùÓÚLinuxºÍBSDϵͳµÄÈí¼þ×î³£¼û£»ÔÚ¹úÄÚÔ´¿É¼ûµÄÈí¼þ¼¸ºõ¾ø¼££»´ó¶à¿ªÔ´Èí¼þ¶¼ÊǹúÍâ³öÆ·£»ÔÚ¹úÄÚ½ÏΪ³öÃûµÄ¿ªÔ´Èí¼þÓÐfcitx;lumaqq;Lumaqq¼°scimµÈ£»
µ«Èí¼þµÄÔ´´úÂë¿É¼û²¢²»µÈÓÚÈí¼þÊÇ¿ªÔ´µÄ£¬ÎÒÃÇ»¹ÒªÒÔÈí¼þµÄÐí¿ÉΪ׼£»±ÈÈçÓÐЩÈí¼þÊÇÔ´Âë¿É¼ûµÄ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ