Linuxϳ£ÓõĹػúʵÀý
LinuxϹػú×îÒªÓÐÒÔÏ·½·¨£¬ÎÒÏëÕâЩ·½·¨×ãÒÔÂú×ãÄãµÄÐèÒª£º
[root@localhost /]# shutdown [-tÃë] [-arkhcncfF] [ʱ¼ä] [ÌáʾÐÅÏ¢]
[root@localhost /]# shutdown -h 10 'I will shutdown after 10 mins'
-t sec : -t ºó¼ÓÃëÊý£¬¼´‘¹ý¼¸ÃëÖÓºó¹Ø»ú’µÄÒâ˼¡£
-k : ²»ÒªÕæµÄ¹Ø»ú£¬Ö»ÊÇ·¢ËÍÌáʾÐÅÏ¢¡£
-r : ÔÚ½«ÏµÍ³µÄ·þÎñ¹ØµôÖ®ºó¾ÍÖØÐÂÆô¶¯¡£
-h : ÔÚ½«ÏµÍ³µÄ·þÎñ¹ØµôÖ®ºó¾Í¹Ø»ú¡£
-n : ²»Òª½ø¹ýinit³ÌÐò£¬Ö±½ÓÒÔshutdown¹Ø»ú¡£
-f : ¹Ø»ú²¢Æô¶¯ºó£¬Ç¿ÖÆÂÔ¹ýfsckµÄ´ÅÅ̼ì²é
-F : ϵͳÖØÐÂÆô¶¯ºó£¬Ç¿ÖƽøÐÐfsckµÄ´ÅÅ̼ì²é
-c : È¡ÏûÒѾÔÚ½øÐеÄshutdownÃüÁî·û
Á¢¼´¹Ø»ú
[root@localhost /]#shutdown -h now
ϵͳÔÚ½ñÌìµÄ20:25¹Ø»ú
[root@localhost /]#shutdown -h 20:25
ϵͳÔÙ¹ý10·ÖÖÓºóÖØÐÂÆô¶¯
[root@localhost /]#shutdown -h +10
ϵͳÁ¢¼´ÖØÐÂÆô¶¯
[root@localhost /]#shutdown -r now
ÔÙ¹ý30·ÖÖÓϵͳ»áÖØÐÂÆô¶¯£¬²¢ÏÔʾºóÃæµÄÐÅÏ¢
[root@localhost /]#shutdown -r +30 'The system will reboot'
½ö½ö·¢³ö¾¯¸æÐÅÏ¢£¬ÏµÍ³²¢²»»á¹Ø»ú
[root@localhost /]#shutdown -r +30 'The system will reboot'
Ïà¹ØÎĵµ£º
/*
* linux/fs/bitmap.c
*
* (C) 1991 Linus Torvalds
*/
/* bitmap.c contains the code that handles the inode and block bitmaps */
#include <string.h>
#include <linux/sched.h>
#include <linux/kernel.h> // һЩÄں˳£Óú¯ÊýµÄÔÐζ¨Òå
......
Á½ÖÖ·½Ê½£º
Ò»ÖÖÊÇͨ¹ýÖÕ¶ËÊÖ¶¯¹ÒÔؼÓÉϲÎÊý: -o iocharset=utf8
È磺# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8
µÚ¶þÖÖÊÇͨ¹ý¼ÓÈëÄÚºËÖ§³ÖÔÚFile systems ---> DOS/FAT/NT Filesystems --->ÖÐÓÐÁ½ÏîÐÞ¸ÄΪ£ ......
V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓƵ -1 £¨º®±ù×÷Æ·£©
http://www.boobooke.com/v/bbk1301
[V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓƵ -2 £¨º®±ù×÷Æ·£©
http://www.boobooke.com/v/bbk1304
[V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓƵ -3 £¨º®±ù×÷Æ·£©
http://www.boobooke.com/v/bbk1305
[V] ÁãÆðµãѧϰLinuxϵÁÐÅàѵÊÓƵ -4 £¨º®±ù×÷Æ·£©
......
public class Test {
public static void main(String aa[]) {
if (System.getProperty("os.name").equals("Linux")) {
System.out.println("linux");
} else if (System.getProperty("os.name").equals("Windows XP")) {
System.out.println("win ......
»¨ÁËÒ»¸öÖÜÄ©µÄʱ¼äÁгöÀ´µÄ¡£¹²Ïí³öÀ´£¬Ï£Íû´ó¼Ò»¨¼¸·ÖÖÓ¿´¿´¡£ÕâÒ²ËãÊÇLINUXϱȽÏʵÓõIJéÕÒ·½Ê½ÁË
which(Ñ°ÕÒ“Ö´ÐÐÎļþ”)
[root@localhost home]# which [-a] command
-a : ½«ËùÓпÉÕÒµ½µÄÃüÁî¾ùÁгö£¬¶ø²»½ö½öÁгöµÚÒ»¸öÕÒµ½µÄÃüÁîÃû³Æ
·¶Àý£º
[root@localhost home]# which passwd
/usr/bin/passwd ......