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

linuxϵͳ³£ÓÃÃüÁî

£¨Ò»£©Îļþ¡¢Ä¿Â¼²Ù×÷ÃüÁî
1¡¢lsÃüÁî
¹¦ÄÜ£ºÏÔʾÎļþºÍĿ¼µÄÐÅÏ¢
ls¡¡ÒÔĬÈÏ·½Ê½ÏÔʾµ±Ç°Ä¿Â¼ÎļþÁбí
ls -a ÏÔʾËùÓÐÎļþ°üÀ¨Òþ²ØÎļþ
ls -l ÏÔʾÎļþÊôÐÔ£¬°üÀ¨´óС£¬ÈÕÆÚ£¬·ûºÅÁ¬½Ó£¬ÊÇ·ñ¿É¶Áд¼°ÊÇ·ñ¿ÉÖ´ÐÐ
ls -lh ÏÔʾÎļþµÄ´óС£¬ÒÔÈÝÒ×Àí½âµÄ¸ñʽӡ³öÎļþ´óС (ÀýÈç 1K 234M 2G)
ls -lt ÏÔʾÎļþ£¬°´ÕÕÐÞ¸Äʱ¼äÅÅÐò
 
2¡¢cdÃüÁî
¹¦ÄÜ£º¸ÄÃûĿ¼
cd dir¡¡Çл»µ½µ±Ç°Ä¿Â¼ÏµÄdirĿ¼
cd /¡¡Çл»µ½¸ùĿ¼
cd ..¡¡Çл»µ½µ½ÉÏÒ»¼¶Ä¿Â¼
cd ../..¡¡Çл»µ½É϶þ¼¶Ä¿Â¼
cd ~¡¡Çл»µ½Óû§Ä¿Â¼£¬±ÈÈçÊÇrootÓû§£¬ÔòÇл»µ½/rootÏÂ
 
3¡¢cpÃüÁî
¹¦ÄÜ£ºcopyÎļþ
cp source target¡¡½«Îļþsource¸´ÖÆΪtarget
cp /root /source.¡¡½«/rootϵÄÎļþsource¸´ÖƵ½µ±Ç°Ä¿Â¼
cp –av soure_dir target_dir¡¡½«Õû¸öĿ¼¸´ÖÆ£¬Á½Ä¿Â¼ÍêÈ«Ò»Ñù
 
4¡¢rmÃüÁî
¹¦ÄÜ£ºÉ¾³ýÎļþ»òĿ¼
rm file¡¡É¾³ýijһ¸öÎļþ
rm -f file ɾ³ýʱºò²»½øÐÐÌáʾ¡£¿ÉÒÔÓÚr²ÎÊýÅäºÏʹÓÃ
rm -rf dir¡¡É¾³ýµ±Ç°Ä¿Â¼Ï½ÐdirµÄÕû¸öĿ¼
 
5¡¢mvÃüÁî
¹¦ÄÜ£ºÎļþÒƶ¯£¬»òÕ߸ÄÃû£¬ÔÚuinxÏÂÃæûÓиÄÃûµÄÃüÁÈç¹ûÏë¸ÄÃû£¬¿ÉÒÔʹÓøÃÃüÁî
mv source target¡¡½«Îļþsource¸üÃûΪtarget
6¡¢diff
¹¦ÄÜ£º±È½ÏÎļþÄÚÈÝ
diff dir1 dir2¡¡±È½ÏĿ¼1ÓëĿ¼2µÄÎļþÁбíÊÇ·ñÏàͬ£¬µ«²»±È½ÏÎļþµÄʵ¼ÊÄÚÈÝ£¬²»Í¬ÔòÁгö
diff file1 file2¡¡±È½ÏÎļþ1ÓëÎļþ2µÄÄÚÈÝÊÇ·ñÏàͬ£¬Èç¹ûÊÇÎı¾¸ñʽµÄÎļþ£¬Ôò½«²»ÏàͬµÄÄÚÈÝÏÔʾ£¬Èç¹ûÊǶþ½øÖÆ´úÂëÔòÖ»±íʾÁ½¸öÎļþÊDz»Í¬µÄ
comm file1 file2¡¡±È½ÏÎļþ£¬ÏÔʾÁ½¸öÎļþ²»ÏàͬµÄÄÚÈÝ
7¡¢lnÃüÁî
¹¦ÄÜ£º½¨Á¢Á´½Ó
ln source_path target_path Ó²Á¬½Ó
ln -s source_path target_path ÈíÁ¬½Ó
 
£¨¶þ£©²é¿´ÎļþÄÚÈÝÃüÁî
1¡¢catÃüÁî
ÏÔʾÎļþµÄÄÚÈÝ£¬ºÍDOSµÄtypeÏàͬ
cat file¡¡
 
2¡¢moreÃüÁî
¹¦ÄÜ£º·ÖÒ³ÏÔʾÃüÁî
more¡¡file 
moreÃüÁîÒ²¿ÉÒÔͨ¹ý¹ÜµÀ·û(|)ÓëÆäËûµÄÃüÁîÒ»ÆðʹÓÃ,ÀýÈ磺
ps ux|more
ls|more
 
3¡¢tail ÃüÁî
¹¦ÄÜ£ºÏÔʾÎļþµÄ×îºó¼¸ÐÐ
tail -n 100 aaa.txt ÏÔʾÎļþaaa.txtÎļþµÄ×îºó100ÐÐ
 
4¡¢viÃüÁî
vi file¡¡±à¼­Îļþfile
vi Ô­»ù±¾Ê¹Óü°ÃüÁ
ÊäÈëÃüÁîµÄ·½Ê½ÎªÏÈ°´[ESC]¼ü£¬È»ºóÊäÈë:w(дÈëÎļþ),:w!(²»Ñ¯ÎÊ·½Ê½Ð´ÈëÎļþ£©,:wq±£´æ²¢Í˳ö,:qÍ˳ö,q!²»±£´æÍ˳ö
 
£¨Èý£©»ù±¾ÏµÍ³ÃüÁî
1¡¢manÃüÁî
¹¦ÄÜ£º²é¿´Ä³¸öÃüÁîµÄ°ïÖú
ÀýÈ磺
man


Ïà¹ØÎĵµ£º

LinuxÈí¼þ°²×°ÓëжÔØ

LinuxÏÂÈí¼þµÄ°²×°ÓëжÔØ
Ò»¡¢¶þ½øÖÆ·Ö·¢Èí¼þ°üµÄ°²×°ÓëжÔØ
LinuxÈí¼þµÄ¶þ½øÖÆ·Ö·¢ÊÇÖ¸ÊÂÏÈÒѾ­±àÒëºÃ¶þ½øÖÆÐÎʽµÄÈí¼þ°üµÄ·¢²¼ÐÎʽ£¬ÆäÓŵãÊÇ°²×°Ê¹ÓÃÈÝÒ×£¬È±µãÔòÊÇȱ·¦Áé»îÐÔ£¬Èç¹û¸ÃÈí¼þ°üÊÇΪÌض¨µÄÓ²¼þ/²Ù×÷ϵͳƽ̨±àÒëµÄ£¬ÄÇËü¾Í²»ÄÜÔÚÁíÍâµÄƽ̨»ò»·¾³ÏÂÕýÈ·Ö´ÐС£
1¡¢*.rpmÐÎʽµÄ¶þ½øÖÆÈí¼þ°ü
°²×°£ºrpm ......

Linux GCC makeÎļþµÄд·¨3

 °üº¬3¸öÎļþ¼Ð
Ŀ¼×éÖ¯½á¹¹ÈçÏ£º
inc/hello.h
main/main.c, Makefile
src/hello.c
ÎļþÄÚÈÝÈçÏ£º
hello.h:
void hello(char name[]);
main.c:
#include <stdio.h>
#include "../inc/hello.h"
// The second hello.h should in ""
int main()
{
hello("GCC");
printf("Haha Linux Ub ......

LinuxÏÂËøÓû§Óë½âËøÎÊÌâ

LinuxÏÂËøÓû§Óë½âËøÎÊÌâ [Ô­´´ 2010-02-03 21:44:35]   
×ֺţº´ó ÖРС
Ò»£ºµÇ¼ʧ°Ü´Î»Ø³¬¹ýÏÞÖÆ
1£©ËøÓû§µÄÉ趨
/etc/pam.d/Ï°üº¬¸÷ÖÖÈÏÖ¤³ÌÐò»ò·þÎñµÄÅäÖÃÎļþ¡£±à¼­ÕâЩ¿ÉÏÞÖÆÈÏ֤ʧ°Ü´ÎÊý£¬µ±Ê§°Ü´ÎÊý³¬¹ýÖ¸¶¨ÖµÊ±Óû§»á±»Ëøס¡£
ÔÚ´Ë£¬ÒÔrun levelΪ3µÄʱºò£¬¶à´ÎµÇ¼µÇ¼ʧ°Ü¼´ËøÓû§ÎªÀý£º
......

googleÔõÑùʹÓÃlinux£¨Äںˣ©


googleÔõÑùʹÓÃlinux£¨Äںˣ©
½ñÄêµÄlinuxÄں˿ª·¢´ó»áÉÏ£¬googleµÄ¿ª·¢ÈËÔ±Ò²ÉĮ̈×öÁËÃûΪ“how google use linux"µÄÑݽ²¡£ÎÒ¶·µ¨·­Òë×¢½âÒ»·¬——À¨ºÅÄÚΪע½â£¬»¶Ó­¶ÁÕ߸«Õý¡£
£¨Ç°Ã漸¶Î½²google¶Ôlinux kernel´úÂëµÄ¹ÜÀí¼°¸ú½ø£¬Æ«Ï¸Ë飬²»·­ÒëÁË£©
ÔÚgoogleΪlinux¼ÓÈëµÄ´úÂëÖУ¬3/4ÊǶÔÄں˺ËÐÄ ......

´Ó»úÆ÷µÄÅäÖÃdz̸Linux°æ±¾µÄÑ¡Ôñ

×¢£ºÕâƪÎÄÕ±ȽϾɣ¬µ«ÊÇÓÐÒ»¶¨µÄ²Î¿¼¼ÛÖµ~~×Ô¼ºÊÔ¹ýµÄLinux²»¶à£¬ËùÒÔ»¹ÊÇÓÐÒª²Î¿¼µÄµØ·½¡£
Ô­ÎÄÁ´½Ó£ºhttp://www.linux521.com/2009/newbie/200904/1963.html
Ä¿Ç°LinuxÔÚ¹úÄÚ½øÈëÁËÒ»¸ö½Ï¿ìËٵķ¢Õ¹½×¶Î,ÕýÈçÎÒÃÇ¿´µ½µÄ,Ðí¶àµÄWindowsÓû§×ªÍ¶
LinuxÕóÓª.ÓÉÓÚLinux±¾ÉíÊÇÒ»¸ö¿ª·ÅµÄ²Ù×÷ϵͳ,Òò¶øÓµÓÐÖÚ¶àµÄ·¢Ðаæ°æ± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ