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

linuxÎļþºó׺

Ê×ÏÈҪ˵Ã÷µÄÊÇÔÚLinuxϵͳÖУ¬¿ÉÖ´ÐÐÎļþûÓÐͳһµÄºó׺£¬ÏµÍ³´ÓÎļþµÄÊôÐÔÀ´Çø·Ö¿ÉÖ´ÐÐÎļþºÍ²»¿ÉÖ´ÐÐÎļþ¡£¶øgccÔòͨ¹ýºó׺À´Çø±ðÊäÈëÎļþµÄÀà±ð£¬ÏÂÃæÎÒÃÇÀ´½éÉÜgccËù×ñÑ­µÄ²¿·ÖÔ¼¶¨¹æÔò¡£Ò»°ã
.cΪºó׺µÄÎļþ£¬CÓïÑÔÔ´´úÂëÎļþ£»
.aΪºó׺µÄÎļþ£¬ÊÇÓÉÄ¿±êÎļþ¹¹³ÉµÄµµ°¸¿âÎļþ£»
.C£¬.cc»ò.cxxΪºó׺µÄÎļþ£¬ÊÇC Ô´´úÂëÎļþ£»
.hΪºó׺µÄÎļþ£¬ÊdzÌÐòËù°üº¬µÄÍ·Îļþ£»
.iΪºó׺µÄÎļþ£¬ÊÇÒѾ­Ô¤´¦Àí¹ýµÄCÔ´´úÂëÎļþ£»
.iiΪºó׺µÄÎļþ£¬ÊÇÒѾ­Ô¤´¦Àí¹ýµÄC Ô´´úÂëÎļþ£»
.mΪºó׺µÄÎļþ£¬ÊÇObjective-CÔ´´úÂëÎļþ£»
.oΪºó׺µÄÎļþ£¬ÊDZàÒëºóµÄÄ¿±êÎļþ£»
.sΪºó׺µÄÎļþ£¬ÊÇ»ã±àÓïÑÔÔ´´úÂëÎļþ£»
.SΪºó׺µÄÎļþ£¬ÊǾ­¹ýÔ¤±àÒëµÄ»ã±àÓïÑÔÔ´´úÂëÎļþ¡£
Ïêϸ˵һÏÂ:
1.ÒÔ.aΪÀ©Õ¹ÃûµÄÎļþ:
#tarxvfile.a
2.ÒÔ.zΪÀ©Õ¹ÃûµÄÎļþ:
#uncompressfile.Z
3.ÒÔ.gzΪÀ©Õ¹ÃûµÄÎļþ:
#gunzipfile.gz
4.ÒÔ.bz2ΪÀ©Õ¹ÃûµÄÎļþ:
#bunzip2file.bz2
5.ÒÔ.tar.ZΪÀ©Õ¹ÃûµÄÎļþ:
#tarxvZffile.tar.Z
»ò#compress-dcfile.tar.Z|tarxvf-
6.ÒÔ.tar.gz/.tgzΪÀ©Õ¹ÃûµÄÎļþ:
#tarxvzffile.tar.gz
»ògzip-dcfile.tar.gz|tarxvf-
7.ÒÔ.tar.bz2ΪÀ©Õ¹ÃûµÄÎļþ:
#tarxvIffile.tar.bz2
»òbzip2-dcfile.tar.bz2|xvf-
8.ÒÔ.cpio.gz/.cgzΪÀ©Õ¹ÃûµÄÎļþ:
#gzip-dcfile.cgz|cpio-div
9.ÒÔ.cpio/cpioΪÀ©Õ¹ÃûµÄÎļþ:
#cpio-divfile.cpio
»òcpio-divcfile.cpio
10.ÒÔ.rpmΪÀ©Õ¹ÃûµÄÎļþ°²×°:
#rpm-ifile.rpm
11.ÒÔ.rpmΪÀ©Õ¹ÃûµÄÎļþ½âѹËõ£º
#rpm2cpiofile.rpm|cpio-div
12.ÒÔ.debΪÀ©Õ¹ÃûµÄÎļþ°²×°£º
#dpkg-ifile.deb
13.ÒÔ.debΪÀ©Õ¹ÃûµÄÎļþ½âѹËõ:
#dpkg-deb--fsys-tarfilefile.deb|tarxvf-arp
file.debdata.tar.gz|tarxvzf-
14.ÒÔ.zipΪÀ©Õ¹ÃûµÄÎļþ:
#unzipfile.zip


Ïà¹ØÎĵµ£º

Linux³£ÓÃÃüÁî±í

Óû§ÏµÍ³Ïà¹ØÃüÁî
 Óû§Çл»
 Óû§Çл»£º  su [Ñ¡Ïî] [ʹÓÃÕß]
 Óû§¹ÜÀí
  Ôö¼ÓÓû§Õ˺Å:  useradd [Ñ¡Ïî] Óû§Ãû
  ÉèÖÃÓû§Õ˺ÅÊôÐÔ£º usermod [Ñ¡Ïî] ÊôÐÔÖµ
  É¾³ý¶ÔÓ¦Óû§Õ˺ţº userdel [Ñ¡Ïî] Óû§Ãû
  Ôö¼Ó×éÕ˺ţº ......

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
ΪÔöÇ¿°²È«
ÏÈÔö¼ÓÒ»¸öÆÕͨȨÏÞµÄÓû§£º ......

linux ³£ÓÃcº¯Êý


opendir£¨´ò¿ªÄ¿Â¼£©
Ïà¹Øº¯Êý
open£¬readdir£¬closedir£¬rewinddir£¬seekdir£¬telldir£¬scandir
±íÍ·Îļþ
#include<sys/types.h>
#include<dirent.h>
¶¨Ò庯Êý
DIR * opendir(const char * name);
º¯Êý˵Ã÷
opendir()ÓÃÀ´´ò¿ª²ÎÊýnameÖ¸¶¨µÄĿ¼£¬²¢·µ»ØDIR*ÐÎ̬µÄĿ¼Á÷£¬ºÍopen()ÀàËÆ£¬½ÓÏ ......

linuxÏÂechoÃüÁîÏê½â


linuxµÄechoÃüÁî, ÔÚshell±à³ÌÖм«Îª³£ÓÃ, ÔÚÖÕ¶ËÏ´òÓ¡±äÁ¿valueµÄʱºòÒ²Êdz£³£Óõ½µÄ, Òò´ËÓбØÒªÁ˽âÏÂechoµÄÓ÷¨
echoÃüÁîµÄ¹¦ÄÜÊÇÔÚÏÔʾÆ÷ÉÏÏÔʾһ¶ÎÎÄ×Ö£¬Ò»°ãÆðµ½Ò»¸öÌáʾµÄ×÷Óá£
¸ÃÃüÁîµÄÒ»°ã¸ñʽΪ£º echo [ -n ] ×Ö·û´®
ÆäÖÐÑ¡Ïîn±íʾÊä³öÎÄ×Öºó²»»»ÐУ»×Ö·û´®ÄܼÓÒýºÅ£¬Ò²Äܲ»¼ÓÒýºÅ¡£ÓÃechoÃüÁîÊä³ö¼ÓÒýº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ