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
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄϰ¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
Ò»¡¢ÒýÑÔ£º
±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØÍ¼£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾Ñ飨Õâ¸ö»¹µ ......
×î½üÔÚѧϰlinux£¬ÔÚÕâÀï¸ø´ó¼ÒÍÆ¼öÒ»¸öÍøÕ¾http://linux.vbird.org/ ÉÏÃæ¹ØÓÚlinuxµÄ½Ì³ÌдµÃºÜºÃ£¬Ò²±ÜÃâÁËÎÒÔÚѧϰ¹ý³ÌÖеĺܶàÍä·¡£
³ÌÐòÒ»£ºHelloWord,ÔÚÆÁÄ»Êä³öHelloWord
ÀûÓÃvim ´´½¨Ò»¸ösh01.shÎļþ
echo -e "Hello World!\a\n"
exit 0
³ÌÐò¶þ£º½«ÊäÈë²ÎÊýÆ´½ÓºóÊä³ö
read -p "First Name:" firstn ......
Ò»¡¢Ê¹ÓÃÃüÁîÉèÖÃubuntuµÄipµØÖ·
1.ÐÞ¸ÄÅäÖÃÎļþblacklist.conf½ûÓÃIPV6£º
sudo vi /etc/modprobe.d/blacklist.conf
2.ÔÚÎĵµ×îºóÌí¼Ó blacklist ipv6£¬È»ºó²é¿´Ð޸Ľá¹û£º
cat /etc/modprobe.d/blacklist.conf
3.ÉèÖÃIP£¨ÉèÖÃÍø¿¨eth0µÄIPµØÖ·ºÍ×ÓÍøÑÚÂ룩
sudo ifconfig eth0 192.168.2.1 netmask 255.255.255.0 ......