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

Linux»ù´¡ÏµÁÐÖ®ÅжϷûÔÚshellÖеÄʹÓ÷½Ê½


×÷Õߣº¿µ»ª,»ªÇåÔ¶¼ûǶÈëʽѧԺ½²Ê¦¡£
1. ¹ØÓÚij¸öµµÃûµÄ¡ºÀàÐÍ¡»Õì²â(´æÔÚÓë·ñ)£¬Èç test -e filename
-e ¸Ã¡ºµµÃû¡»ÊÇ·ñ´æÔÚ£¿(³£ÓÃ)
        -f ¸Ã¡ºµµÃû¡»ÊÇ·ñΪµµ°¸(file)£¿(³£ÓÃ)
        -d ¸Ã¡ºÎļþÃû¡»ÊÇ·ñΪĿ¼(directory)£¿(³£ÓÃ)
        -b ¸Ã¡ºÎļþÃû¡»ÊÇ·ñΪһ¸ö block device ×°Öã¿
        -c ¸Ã¡ºÎļþÃû¡»ÊÇ·ñΪһ¸ö character device ×°Öã¿
        -S ¸Ã¡ºµµÃû¡»ÊÇ·ñΪһ¸ö Socket µµ°¸£¿
        -p ¸Ã¡ºµµÃû¡»ÊÇ·ñΪһ¸ö FIFO (pipe) µµ°¸£¿
        -L ¸Ã¡ºµµÃû¡»ÊÇ·ñΪһ¸öÁ¬½áµµ£¿
2. ¹ØÓÚµµ°¸µÄȨÏÞÕì²â£¬Èç test -r filename
-r Õì²â¸ÃÎļþÃûÊÇ·ñ¾ßÓСº¿É¶Á¡»µÄÊôÐÔ£¿
        -w Õì²â¸ÃµµÃûÊÇ·ñ¾ßÓСº¿Éд¡»µÄÊôÐÔ£¿
        -x Õì²â¸ÃµµÃûÊÇ·ñ¾ßÓСº¿ÉÖ´ÐС»µÄÊôÐÔ£¿
        -u Õì²â¸ÃÎļþÃûÊÇ·ñ¾ßÓСºSUID¡»µÄÊôÐÔ£¿
        -g Õì²â¸ÃÎļþÃûÊÇ·ñ¾ßÓСºSGID¡»µÄÊôÐÔ£¿
        -k Õì²â¸ÃÎļþÃûÊÇ·ñ¾ßÓСºSticky bit¡»µÄÊôÐÔ£¿
        -s Õì²â¸ÃµµÃûÊÇ·ñΪ¡º·Ç¿Õ°×µµ°¸¡»£¿
3. Á½¸öµµ°¸Ö®¼äµÄ±È½Ï£¬È磺 test file1 -nt file2
-nt (newer than)ÅÐ¶Ï file1 ÊÇ·ñ±È file2 ÐÂ
        -ot (older than)ÅÐ¶Ï file1 ÊÇ·ñ±È file2 ¾É
        -ef ÅÐ¶Ï file2 Óë file2 ÊÇ·ñΪͬһµµ°¸£¬¿ÉÓÃÔÚÅÐ¶Ï hard link µÄÅж¨ÉÏ¡£ Ö÷ÒªÒâÒåÔÚÅж¨£¬Á½¸öµµ°¸ÊÇ·ñ¾ùÖ¸Ïòͬһ¸ö inode Á¨£¡
4. ¹ØÓÚÁ½¸öÕûÊýÖ®¼äµÄÅж¨£¬ÀýÈç test n1 -eq n2
-eq Á½ÊýÖµÏàµÈ (equal)
        -ne Á½ÊýÖµ²»µÈ (not equal)
        -gt n1 ´óÓÚ n2 (greater than)
    &nb


Ïà¹ØÎĵµ£º

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

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

Linux CÓïÑÔѧϰ±Ê¼Ç

1¡¢int    4×Ö½Ú
   long   8×Ö½Ú
   float  4×Ö½Ú
   double 8×Ö½Ú
   long double 16×Ö½Ú
2¡¢Ò»¸ö×Ö·û±äÁ¿Ö»ÄÜ´æ·ÅÒ»¸ö×Ö·û¡¢Ò»¸ö×Ö½Ú´æ·ÅÒ»¸ö×Ö½Ú
   char c;
   c = 'a';    c = '\034'   ......

Axis C++ÔÚRedhat LinuxÉÏ°²×°(δÍê´ýÕûÀí)

ÏÂÔصİ汾ÊÇAxis C++ 1.6 Beta
¿Í»§¶ËºÍ·þÎñÆ÷¶Ë¶¼ÐèҪʵÏÖ°²×°xml½âÎöÆ÷
Xerces C++ (2.2.0)
·þÎñÆ÷¶Ë»¹ÐèÒªapache1.3.x»òÕß2.0.x
Ò»¡¢·þÎñÆ÷¶Ë°²×°
1¡¢°²×°Axis C++
2¡¢°²×°Apache£¬ÎÒÃDzÉÓÃApache 2.2.6
×¢ÒâÒ»¶¨ÒªApache 1.3.x use --enable-module=so; for Apache 2.0.x use --enable-so when configuring£¬± ......

LinuxÀïÉèÖû·¾³±äÁ¿µÄ·½·¨

ÔÚLinuxÀïÉèÖû·¾³±äÁ¿µÄ·½·¨£¨export PATH£©Ò»°ãÀ´Ëµ£¬ÅäÖý»²æ±àÒ빤¾ßÁ´µÄʱºòÐèÒªÖ¸¶¨±àÒ빤¾ßµÄ·¾¶£¬´Ëʱ¾ÍÐèÒªÉèÖû·¾³±äÁ¿¡£ÀýÈçÎÒµÄmips-linux-gcc±àÒëÆ÷ÔÚ“/opt/au1200_rm/build_tools/bin”Ŀ¼Ï£¬build_tools¾ÍÊÇÎҵıàÒ빤¾ß£¬ÔòÓÐÈçÏÂÈýÖÖ·½·¨À´ÉèÖû·¾³±äÁ¿£º
1¡¢Ö±½ÓÓÃexportÃüÁ
#expor ......

Debian LinuxÏ·ÃÎÊWindows¹²ÏíÎļþ¼Ð

ÔÚ
Debian
Ï·ÃÎÊ
Windows
¹²ÏíÎļþ¼Ð£¬ÐèÒª°²×°
smbfs
Èí¼þ°ü¡£ÓÃ
aptitude
°²×°ÒԺ󣬽«
Windows
ϵÄÎļþ¼ÐÉèΪ¹²Ïí£¬¿ÉÒÔÓÃÒÔÏÂÃüÁîÔÚ
Linux
Ï·ÃÎÊ
Windows
¹²ÏíÎļþ¼Ð£º
mount -t
smbfs //10.0.0.25/microsoft /mnt
»òÕß
mount -t cifs //10.0.0.25/microsoft /mnt
»òÕß
smbmount //10.0.0.25/mi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ