linux Äں˴íÎó´úÂë»ã×Ü
1 ¶¨ÒåÎļþ
linux/errno.h
#ifndef _LINUX_ERRNO_H
#define _LINUX_ERRNO_H
#include <asm/errno.h>
#ifdef __KERNEL__
/* Should never be seen by user programs */
#define ERESTARTSYS 512
#define ERESTARTNOINTR 513
#define ERESTARTNOHAND 514 /* restart if no handler.. */
#define ENOIOCTLCMD 515 /* No ioctl command */
#define ERESTART_RESTARTBLOCK 516 /* restart by calling sys_restart_syscall */
/* Defined for the NFSv3 protocol */
#define EBADHANDLE 521 /* Illegal NFS file handle */
#define ENOTSYNC 522 /* Update synchronization mismatch */
#define EBADCOOKIE 523 /* Cookie is stale */
#define ENOTSUPP 524 /* Operation is not supported */
#define ETOOSMALL 525 /* Buffer or request is too small */
#define ESERVERFAULT 526 /* An untranslatable error occurred */
#define EBADTYPE 527 /* Type not supported by server */
#define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */
#define EIOCBQUEUED 529 /* iocb queued, will get completion event */
#define EIOCBRETRY 530 /* iocb queued, will trigger a retry */
#endif
asm/errno.h
#ifndef _I386_ERRNO_H
#define _I386_ERRNO_H
#include <asm-generic/errno.h>
#endi
asm-generic/errno.h
#ifndef _ASM_GENERIC_ERRNO_H
#define _ASM_GENERIC_ERRNO_H
#include <asm-generic/errno-base.h>
#define EDEADLK 35 /* Resource deadlock would occur */
#define ENAMETOOLONG 36 /* File name too long */
#d
Ïà¹ØÎĵµ£º
ÓÉÓÚÔÚwindowsÏÂĬÈÏÊÇgb±àÂ룬¶øÎÒµÄvimĬÈÏÊÇutf-8£¨geditĬÈÏÒ²ÊÇutf-8£©£¬ËùÒÔ´ò¿ª»á³ÉÂÒÂë¡£ÐÞ¸ÄÁËÒ»ÏÂÅäÖÃÎļþ£¬Ê¹viÖ§³Ögb±àÂë¾ÍºÃÁË¡£
$vi ~/.vimrc
let &termencoding=&encoding
set fileencodings=utf-8,gbk
$:wq
Ôٴδò¿ªvi£¬ÏÔʾ¾ÍÕý³£ÁË¡£
vimÖб༲»Í¬±àÂëµÄÎļþʱÐèҪעÒâµÄһЩµØ·½
......
shell ±à³ÌÖÐʹÓõ½µÃifÓï¾äÄÚÅжϲÎÊý
–b µ±file´æÔÚ²¢ÇÒÊÇ¿éÎļþʱ·µ»ØÕæ
-c µ±file´æÔÚ²¢ÇÒÊÇ×Ö·ûÎļþʱ·µ»ØÕæ
-d µ±pathname´æÔÚ²¢ÇÒÊÇÒ»¸öĿ¼ʱ·µ»ØÕæ
-e µ±pathnameÖ¸¶¨µÄÎļþ»òĿ¼´æÔÚʱ·µ»ØÕæ
-f µ±file´æÔÚ²¢ÇÒÊÇÕý¹æÎļþʱ·µ»ØÕæ
-g µ±ÓÉpathnameÖ¸¶¨µÄÎļþ»òĿ¼´æÔÚ²¢ÇÒÉèÖÃÁËSGIDλʱ·µ»ØÎªÕæ
......
Linux×ÔÉí¾ß±¸Ò»ÕûÌ×¹¤¾ßÁ´£¬ÈÝÒ××ÔÐн¨Á¢Ç¶ÈëʽϵͳµÄ¿ª·¢»·¾³ºÍ½»²æÔËÐл·¾³£¬²¢ÇÒ¿ÉÒÔ¿çԽǶÈëʽϵͳ¿ª·¢ÖеķÂÕæ¹¤¾ß£¨ICE£©µÄÕϰ¡£Äں˵ÄÍêÈ«¿ª·ÅʹÈËÃÇ¿ÉÒÔ×Ô¼ºÉè¼ÆºÍ¿ª·¢³öÕæÕýµÄӲʵʱϵͳ£¬ÈíʵʱϵͳÔÚLinuxÖÐÒ²ÈÝÒ׵õ½ÊµÏÖ¡£Ç¿´óµÄÍøÂçÖ§³ÖʹµÃ¿ÉÒÔÀûÓÃLinuxµÄÍøÂçÐÒéÕ»½«Æä¿ª·¢³ÉΪǶÈëʽµÄTCP/IPÍøÂçÐÒéÕ» ......
linuxÖÐgrepÃüÁîÏê½â
ÔÚlinuxÖÐgrepÃüÁîÊǷdz£ÓÐÓõÄ,ËüºÍ¹ÜµÀ(|)ÅäºÏʹÓÃ,·Ç³£Ç¿´ó,ÓÃÓÚËÑË÷Îı¾Îļþ.Èç¹ûÏëÒªÔÚ¼¸¸öÎı¾ÎļþÖвéÕÒÒ»×Ö·û´®£¬¿ÉÒÔʹÓÑgrep’ÃüÁî¡£‘grep’ÔÚÎı¾ÖÐËÑË÷Ö¸¶¨µÄ×Ö·û´®¡£
¼ÙÉèÄúÕýÔÚ‘/usr/src/linux/Documentation’Ŀ¼ÏÂËÑË÷´ø×Ö·û´®‘magic&rs ......
1. Ôö¼ÓÓû§Õʺŗ—useradd / adduser
ÔÚÃüÁîÐÐÏÂʹÓà useradd ÃüÁ
useradd Óû§Ãû
¸ÃÃüÁî×öÁËÏÂÃæ¼¸¼þÊ£º
1£©ÔÚ /etc/passwd ÎļþÖÐÔöÌíÁËÒ»ÐмǼ£»
2£©ÔÚ /home Ŀ¼Ï´´½¨ÐÂÓû§µÄÖ÷Ŀ¼£¬²¢½« /etc/skel Ŀ¼(skeleton:.bashrc, .bash_history, etc.)ÖеÄÎļþ¿½±´µ½¸ÃĿ¼ÖÐÈ¥£»µ«ÊÇÊ ......