Linux¹Ø»úÃüÁî
1 shutdown:
[NAME
] shutdown - bring the system down
SYNOPSIS
/sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]
DESCRIPTION
shutdown brings the system down in a secure way. All logged-in users are notified that the system is going down, and login(1) is blocked. It is possible to shut the system down immediately or after a specified delay. All processes are first notified that the system is going down by the signal SIGTERM. This gives programs like vi(1) the time to save the file being edited, mail and news processing programs a chance to exit cleanly, etc. shutdown does its job by signalling the init process, asking it to change the runlevel. Runlevel 0 is used to halt the system, runlevel 6 is used to reboot the system, and runlevel 1 is used to put to system into a state where administrative tasks can be performed; this is the
default if neither the -h or -r flag is given to shutdown. To see which actions are taken on halt or reboot see the
appropriate entries for these runlevels in the file /etc/inittab.
OPTIONS
-a Use /etc/shutdown.allow.
-t sec Tell init(8) to wait sec seconds between sending processes the warning and the kill signal, before changing to
another runlevel.
-k Do not really shutdown; only send the warning messages to everybody.
-r Reboot after shutdown.
&n
Ïà¹ØÎĵµ£º
ÓÉÓÚ Linux Á¼ºÃµÄÓû§È¨ÏÞ¹ÜÀíÌåϵ£¬²¡¶¾ÍùÍùÊÇ Linux ϵͳ¹ÜÀíÔ±×îºó²ÅÐèÒª¿¼ÂǵÄÎÊÌâ¡£ÒÔÍù£¬Linux ÉϵÄɱ¶¾Èí¼þÖ÷ÒªÊÇΪÆóÒµµÄÓʼþºÍÎļþ·þÎñÆ÷ËùÉè¼ÆµÄ¡£Èç½ñ£¬Ëæ×Å Linux ×ÀÃæÓû§ÊýÁ¿µÄÔö³¤£¬×ÀÃæÓû§ÔÚÊÜÒæÓÚ Linux ϵͳ¶Ô²¡¶¾½ÏÇ¿µÄÌìÈ»ÃâÒßÁ¦µÄͬʱ£¬Ò²ÐèҪɱ¶¾Èí¼þÇåÀí´ÓÍøÂç»òUÅÌ´øÀ´µÄWIndows²¡¶¾¡£¾¡¹ÜÄÇЩ ......
×î½üÔÚѧϰlinux£¬ÔÚÕâÀï¸ø´ó¼ÒÍÆ¼öÒ»¸öÍøÕ¾http://linux.vbird.org/ ÉÏÃæ¹ØÓÚlinuxµÄ½Ì³ÌдµÃºÜºÃ£¬Ò²±ÜÃâÁËÎÒÔÚѧϰ¹ý³ÌÖеĺܶàÍä·¡£
³ÌÐòÒ»£ºHelloWord,ÔÚÆÁÄ»Êä³öHelloWord
ÀûÓÃvim ´´½¨Ò»¸ösh01.shÎļþ
echo -e "Hello World!\a\n"
exit 0
³ÌÐò¶þ£º½«ÊäÈë²ÎÊýÆ´½ÓºóÊä³ö
read -p "First Name:" firstn ......
http://blog.csdn.net/linucos/archive/2010/01/22/5223615.aspx
Linux
ÒÆÖ²¿ª·¢
×¼±¸¹¤×÷£º
×¼±¸
½»²æ±àÒ빤¾ßÁ´£ºÕâÀïÎÒÃÇÑ¡ÔñDENXÈí¼þ¹¤³ÌÌṩµÄELDK½»²æ±àÒë»·¾³£¬²Î¿¼µØÖ·£ºhttp://ftp.denx.de/pub/eldk/4.2/
£¬
ÎÒÃÇʹÓÃÆäÖеÄÒ»Ì×¹¤¾ß¡£×¼±¸¹¤×÷²½ÖèÈçÏ£º
1. ½¨Á¢¹¤×÷Îļþ¼ÐNewMsg2410,²¢½¨Á¢×ÓĿ¼sources ......
LinuxÏÂGetModuleFileNameµÄËÄÖÖд·¨
¡¡¡¡ÎÊÌâµÄÆðÒòÊÇÒª°ÑÒ»¸ö¶«¶«´ÓWindowsÒÆÖ²µ½»ùÓÚLinuxµÄǶÈëʽϵͳÉÏ¡£ÒÆÖ²¹ý³ÌÖУ¬Óöµ½ÁËGetModuleFileNameµÄÎÊ
Ì⡣ΪÁ˽â¾öÕâ¸öÎÊÌ⣬»¨Á˲»ÉÙµÄʱ¼ä£¬Ò²×ßÁ˲»ÉÙÍä·¡£ÏÂÃæÊÇÕûÀíµÄ½á¹û¡£
¡¡¡¡Ê×ÏÈժ¼һ¶ÎÎÄ×Ö£¬À´Ô´¡¶UNIX Programming FAQ ÖÐÎİ桷
1.14. ÎÒÔõÑùÕÒ ......
Linux ÏÂʲô¶¼±È½ÏÂé·³£¬¾ÍÁ¬ÐÞ¸ÄÖ÷»úÃûÒ²²»ÀýÍâ¡£
Linux °²×°ºÃºó£¬ÆäĬÈϵÄÖ÷»úÃûÊÇ localhost¡£ÐÞ¸Ä Linux Ö÷»úÃûÐèÒª3²½¡£
ʹÓà hostname Ð޸ĵ±Ç°Ö÷»úÃû¡£
hostname new-hostname
ÐÞ¸Ä /etc/sysconfig/network ÅäÖÃÎļþ£¬ÒÔ±ãÏ´ÎÖØÆôµÄʱ£¬Ê¹ÓÃеÄÖ÷»úÃû¡£
´ò¿ª /etc/sysconfig/network Îļþ£ ......