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

linuxÏ»ñÈ¡Óû§»ù±¾ÐÅÏ¢


ͨ¹ýcÓïÑÔ»ù´¡¿â´Ó»ñÈ¡linuxÓû§µÄ»ù±¾ÐÅÏ¢¡£
1¡¢Ê¹ÓÃstruct passwd¹ÜÀíÓû§ÐÅÏ¢¡£
struct passwd
{
  char *pw_name;                /* Óû§µÇ¼Ãû    */
  char *pw_passwd;              /* ÃÜÂë(¼ÓÃܺó)*/
  __uid_t pw_uid;               /* Óû§ID     */
  __gid_t pw_gid;               /* ×éID       */
  char *pw_gecos;               /* ÏêϸÓû§Ãû    */
  char *pw_dir;                 /* Óû§Ä¿Â¼       */
  char *pw_shell;               /* Shell³ÌÐòÃû */
};
 
2¡¢·ÖÎöÏಢµÄϵͳÎļþ/etc/passwd
1.     root:x:0:0:root:/root:/bin/bash   
2.     daemon:x:1:1:daemon:/usr/sbin:/bin/sh   
3.     bin:x:2:2:bin:/bin:/bin/sh  
ÔÚpasswdÎļþÖмǼµÄÊÇËùÓÐϵͳÓû§
ÿһÐбíʾһ¸öÍêÕûµÄstruct passwd½á¹¹£¬ÒÔ':'·Ö¸ô³öÿһÏîÖµ£¬Æä7Ïî¡£
3¡¢»ñȡϵͳµ±Ç°ÔËÐÐÓû§µÄ»ù±¾ÐÅÏ¢¡£
#include <grp.h>
#include <pwd.h>
#include <unistd.h>
#include <stdio.h>
 
int main ()
{
      uid_t uid;
      struct passwd *pw;
      struct group *grp;
      char **members;
     
      uid = getuid ();
      pw = getpwuid (uid);
     


Ïà¹ØÎĵµ£º

Linux fopenº¯Êý statº¯Êý

   1.
     ½ñÌìÉÏ°à×·Á˸öÎÊÌ⣬׷ÁË°ëÌì·¢ÏÖÊÇfopen´ò¿ª´óÓÚ2GµÄÎļþÓÐÎÊÌâ¡£
ÂíÉÏGoogleÏ£¬×ö¸ö±Ê¼Ç£º
  //   ¶¨Òåºê£¬Ê¹µÃ¿ÉÒÔ´¦Àí´óÎļþ£¨>4GB£©  
  #undef   _FILE_OFFSET_BITS  
  #define   _FILE_OFFSET_BITS   64 &nb ......

¹È¸èChrome OS³å»÷Linux×ÀÃæ

 




<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->

        ·¢Õ¹
Linux
µÄ×îÖÕÄ¿µÄÊÇ´ø¸øÈËÃÇÒ»¸öÍêÃÀµÄ×ÀÃ棨
Desktop
£©
,
ÓÃÓÚ¹¤×÷ºÍÓéÀÖ£¬ÆäÓàÊÂÇ鶼ÊǵڶþλµÄ¡£Õ⻰˵µÃÓеã¾ø¶Ô£¬µ«ÊÇ£¬ÏÖÔÚ²»µÃ²»Õâô˵¡£ÎªÊ²Ã´£¿
&n ......

ÐÞ¸´Linux¡¢Windows˫ϵͳÖÐË𻵵ÄGrub

 ¡¡¡¡×î½ü×°¹ýµÄVista×°´íÁË£¬ÊǸöMSDN°æ£¬¸üйýºóÌáʾÎÒÒª¼¤»î¡£Ã»ÕÞ£¬Ö»ÄÜÖØ×°»»»ØÔ­À´µÄOEM
Ultimate°æ¡£Õâ¸öÖØ×°Ö®ºóµÄºó¹ûÎÒÊÇ¿¼ÂǹýµÄ£¬¾ÍÊÇGrubµÄ¶ªÊ§¡£¿ÉÎÒ²»Ïë¾ÍÕâôΪ´ËÖØÐÂ×°Ò»±éLinux¡£ÒªÖªµÀÎÒ¿ÉÊÇyumÁËÒ»Ìì²Å´Ó
Fedora7 yumµ½Fedora8µÄ£¬³¢ÊÔÒ»ÏÂÐÞ¸´Grub°É£¬¼¸Ìõ¼òµ¥µÄÃüÁî¾Í¸ã¶¨ÁË¡£
1¡¢·ÅÈëLinu ......

ɽկ°æ¹È¸èChromeϵͳ³öÏÖ Ô´ÓÚLinux

2009-11-17 
11ÔÂ17ÈÕÏûÏ¢£¬¹È¸èChrome²Ù×÷ϵͳ¼´½«ÓÚ18ºÅ·¢Ê۵Ĵ«ÑÔÉÐδÃ÷Îú£¬ÍøÂçÉÏÓÖÓÐÈË·¢²¼ÁËɽկ°æChrome²Ù×÷ϵͳ¹©ÍøÓÑÏÂÔØ£¬Õâ¿îɽկ°æChrome·ÂÕæ¶È¼«¸ß£¬Ï¸½Ú×ãÒÔÂÒÕ棬ËùÒÔÎüÒýÁËÎÞÊýÍøÓÑÏÂÔØÌåÑé¡£
ɽկ°æChromeÆô¶¯»­Ãæ
ɽկ°æChromeÎļþ¼Ð
ɽկ°æChrome×ÀÃæ
¾ÝÁ˽⣬Õâ¿îɽկChromeÊǵ¹úÖøÃûLinux¿ ......

linuxµÄchmodÓëchownÃüÁîÏê½â

 linuxµÄchmodÓëchownÃüÁîÏê½â 
 
linuxµÄchmodÃüÁîʹÓÃÏê½â
ʹÓ÷½Ê½ : chmod [-cfvR] [--help] [--version] mode file...
˵Ã÷ : Linux/Unix µÄµµ°¸´æȡȨÏÞ·ÖΪÈý¼¶ : µµ°¸ÓµÓÐÕß¡¢Èº×é¡¢ÆäËû¡£ÀûÓà chmod ¿ÉÒÔ½åÒÔ¿ØÖƵµ°¸ÈçºÎ±»ËûÈËËù´æÈ¡¡£
mode : ȨÏÞÉ趨×Ö´®£¬¸ñʽÈçÏ : [ugoa...][[+-=][rw ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ