8µÀСÌ⣬¿¼¿¼´ó¼ÒµÄLinux»ù±¾¹¦£¡
1¡¢ ´´½¨file0, file1, ¡ , file9Ê®¸öÎļþ¡£
2¡¢ ¶Ô/etc/passwdÎļþ°´ÕÕ¡°:¡±·Ö¸ôµÄµÚÒ»¸ö×Ö¶ÎÅÅÐò£¬²¢Êä³öµÚÈýÐе½µÚÎåÐС£
3¡¢ ±È½ÏÁ½¸öÎļþÊÇ·ñÏàͬ£¨ºöÂÔ¿ÕÐУ©¡£
4¡¢ ´Ó¹âÅÌÖÆ×÷isoÎļþ£¬×öÍêºó°Ñ¹âÅ̵¯³ö¡£
5¡¢ ²úÉúÒ»¸ö1G´óСµÄÎļþ¡£
6¡¢ ÏÔʾϵͳµÄÍø¿¨ÐÅÏ¢¡£
7¡¢ ͳ¼Æµ±Ç°ÏµÍ³TCPÁ¬½ÓµÄ×ÜÊý¡£
8¡¢ ½«/homeĿ¼ÏÂËùÓÐÎļþ±¸·Ý²¢Ñ¹Ëõ£¬Èç³É¹¦ÔÙ½«±¸·Ý¿½±´µ½/backupĿ¼Ï¡£
ÿ¸öÌâÓÃÒ»ÌõÓï¾ä¸ã¶¨£¬¿´ËµÄ¼òµ¥£¡£¡£¡
ÓÃʲôÓï¾ä£¬ Shell, C, C++, Java, Perl or Python
µ±È»ÊÇshell Ò»Ðи㶨
ÊÇ°¡~µ±È»ÊÇshell~
5¡¢ ²úÉúÒ»¸ö1G´óСµÄÎļþ¡£
dd if=/dev/hda of=/tmp/1g bs=1024 count=$[1024*1024]
¾Í»áÕâÒ»¸ö
mkdir file0 ......
СÌⲻС¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£
ÆäʵҲÊÇ»ù´¡
mkiso -r -o myiso /dev/cdrom && eject;
or cp /dev/cdrom myiso&&eject
ûÓÐÈ˶¼»á°¡¡¡ÎÒ»¹ÒÔΪcsdnÀïÃæµÄÈ˶¼ºÜÇ¿µÄ¡¡Õâô¼òµ¥µÄÌâÄ¿¶¼Ã»È˻ᡡ
mark ѧϰѧϰ
ºýŪСº¢ÄØ
1. for i in `seq 1 10`; do echo file$i ;done
2. cut -d: -f3,4,5 /etc/passwd | sort -n
3. diff -B file1 file2
5. dd if=/dev/zero of=myfile bs=4096 count=$((1024/4))
Â¥Ö÷×Ô¼ºÀÁµÃ×ö×÷ÒµÁË£¡
3. Èç¹û²»ÒªÇóÈ¥µô¿ÕÐеÄÏÞÖÆ£¬¿ÉÒÔÕâÑù£º
Assembly code:
if cmp file1 file2; then echo same ; else echo not same; fi
1.
Ïà¹ØÎÊ´ð£º
LinuxÐÂÊÖ£¬Çë´ó¸ç´ó½ã²»Òª¼ûЦ¡£
ÎÒÓÃrootÓû§µÇ¼µ½Linuxϵͳ¡£ÔÚ¸ùĿ¼ÏÂÃ潨ÁËĿ¼dir1£¬ºóÓÃÃüÁîcd /dir1½øÈëµ½dir1Ŀ¼Ï£¬È»ºóÔÙÓÃmkdir dir2½¨Á¢ÁËĿ¼dir2 £¬ÔÙºóÀ´ÓÃÃüÁîcd /dir2ÊÇ£¬ÌáʾΪ£º-bush ......
ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖصãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐƸÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£
¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......
ÎÒµÄÒâ˼ÊÇ£º
ÔÚ²»¸ü¸ÄÔÀ´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§
±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬ÔÀ´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔÀ´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......
Ó¦ÓÃϵͳÊÇ°²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔصãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔص㣬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«ÔÀ ......
ÓÉÓÚÎҲŸոսӴ¥socket±à³Ì£¬×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥³ÌÐò£¬µ«¾ÍÊÇÔÚÔËÐеÄʱºò³öÏֶδíÎó£¬ÎÞ·¨½â¾ö£¬ÏÖÔÚÎÒ°ÑÔ´´úÂëÌù³öÀ´£¬Çë¸÷λ´óϺָÕýһϣ¡Ð»Ð»£¡
#include<stdio.h>
#include<stdlib.h>
#include& ......