linuxϱàÒë¶à¸öÎļþ
ÀýÈ磺
/home/filesÎļþ¼ÐÏÂÓÐÎļþmain.c:
#include <stdio.h>
#include "tou.h"
void main()
{
a();
}
/home/files/commonÎļþ¼ÐÏÂÓÐÎļþtou.hºÍshixian.c¡£
tou.hΪ£º
extern void a();
ÈôÓжà¸öshixianÎļþ£¬±ÈÈçshixian1.c, shixian2.c£¬¶¼¿ÉÒÔÔÚtou.hÖÐÓÃexternÉùÃ÷³öÀ´¡£
shixian.cΪ£º
#include <stdio.h>
void a()
{
printf("a");
}
±àÒëʱÓÃÃüÁgcc main.c ./common/shixian.c -o main -I /home/files/common
ÆäÖУ¬-I /home/files/common´ú±íÁ´½Óµ½Í·ÎļþËùÔÚĿ¼¡£Èô.hÎļþ¶¼ÔÚ±¾Ä¿Â¼Ï£¬Ôò²»ÓüÓ-IÖ¸Ã÷.hÎļþËùÔÚÎļþ¼Ð¡£
ÁíÍ⣬-lm±íʾÁ´½Óµ½Êýѧº¯Êý¿â¡£
Ïà¹ØÎĵµ£º
½ñÌì±àÒëBlueZµÄʱºò£¬Í»È»¼ä·¢ÉúÁËÒ»¸ö´´½¨ Ó²Á´½Óʧ°Ü £¬ÄÔº£ÀïÌø³öÁËÁËÒ»¸öʲôÊÇÓ²Á´½ÓµÄ¸ÅÄһʱ¼ä»¹Õæ»Ø´ð²»ÉÏÀ´£¬googleÁËÏ£¬·¢ÏÖÕâƪ²©ÎÄÃèÊöµÄºÜÇåÎú£¬×ªÔØÖ®£¬ÒÔ±¸Íü...
Á´½Ó——ÊÇÒ»ÖÖÔÚ¹²ÏíÎļþºÍ·ÃÎÊËüµÄÓû§µÄÈô¸ÉĿ¼ÏîÖ®¼ä½¨Á¢ÁªÏµµÄÒ»ÖÖ·½·¨¡£
LinuxÖаüÀ¨Á½ÖÖÁ´½Ó£ºÓ²Á´½Ó(Hard Link)ºÍÈí ......
inuxϵͳµÄÆô¶¯¹ý³ÌÊÇÓɺܶಽÖè×é³ÉµÄ£¬µ«ÊÇ£¬ÎÞÂÛÄãÊÇÆô
¶¯Ò»¸ö±ê×¼µÄx86×ÀÃæ¼ÆËã»ú£¬»¹ÊÇÒ»¸öǶÈëʽPowerPCµÄÄ¿±ê°å£¬´ó¶àÊýµÄÁ÷³ÌÊǾªÈ˵ÃÏàËƵġ£ÕâƪÎÄÕ£¬Ì½Ë÷ÁËlinux´Ó×î³õµÄÆô¶¯×¼±¸µ½Óû§
¿Õ¼äÖÐij¸ö³ÌÐò±»¿ªÆôÖ®¼äµÄÆô¶¯¹ý³Ì£¬¸úËæÕâ¸öÁ÷³Ì£¬Ä㻹ÄÜѧµ½ÆäËûÐí¶àÓëÆô¶¯ÓйصÄ֪ʶ£¬ÀýÈ磬boot
loaders£¬Äں˽â ......
ÔÚÎÒÃÇͨ¹ýSSHµÇ½·þÎñÆ÷ºó£¬Ò»°ãÀ´Ëµ£¬Ëù×öµÄ²Ù×÷»òÕßÃüÁîµÄÊäÈ붼ÊÇÊôsshdϵÄshellµÄ×Ó½ø³Ì£¬ÀýÈç´ò¿ª¸öSSHÖնˣ¬ÊäÈëping www.163.com >>output.txt &£¬È»ºó²é¿´½ø³ÌÇé¿ö£º
$ ps -ef|grep ping
sszheng 27491 27467 0 10:20 pts/0 00:00:00 ping www.163.com
sszheng 27535 27467 ......
ÒýÑÔ
ÔÚLinux²Ù×÷ϵͳÖУ¬ÓÐÒ»ÏîÌØÊâµÄ¹¦ÄÜ——³õʼ»¯ÄÚ´æÅÌINITRD£¨INITial Ram
Disk£©¼¼Êõ£¬¶øÇÒÄÚºËÖ§³ÖѹËõµÄÎļþϵͳӳÏñ¡£ÓÐÁËÕâÁ½ÏÄÜ£¬ÎÒÃÇ¿ÉÒÔÈÃLinuxϵͳ´ÓСµÄ³õʼ»¯ÄÚ´æÅÌÆô¶¯£¬²¢°ÑϵͳÄÚ´æµÄÒ»²¿·Ö×÷Ϊ¸ùÎļþϵ
ͳ¹ÒÔØ£¬¶øÇÒ²»Ê¹Óý»»»·ÖÇø£¨Èç¹û²»ÔËÐÐX
WindowsÕâÊÇÍêÈ«¿ÉÒԵģ©£¬¼ ......