Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʹÓÃlinux·ÃÎÊhd.imgÎļþ

#!/bin/bash
#Key Words:linux0.11 bochs harddisk bash
#mount hdimg name:hdimage-devel
#mount point:/mnt/initrd
hdimg=hdimage-devel
mpoint=/mnt/initrd
if [ "$1" == "mount" ]
then
    #mount hdimg
    echo "$1 START"
    sudo losetup /dev/loop1 "$hdimg" && \
    sudo fdisk /dev/loop1 && \
    sudo losetup -d /dev/loop1 && \
    
    #Command (m for help): x
    #Expert command (m for help): p
    #Disk /dev/loop1: 16 heads, 38 sectors, 410 cylinders
    #Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
    # 1 00   0   3    0  15  38  203          2     124030 81
    # 2 00   0   1  204  15  38  407     124032     124032 81
    # 3 00   0   0    0   0   0    0          0          0 00
    # 4 00   0   0    0   0   0    0          0          0 00
    #2*512
    sudo losetup -o 1024 /dev/loop1
$hdimg
&& \
    sudo mount -t minix /dev/loop1 "$mpoint"
    echo "$1 END"
elif [ "$1" == "umount" ]
then
    #umount hdimg
    echo "$1 START"
  


Ïà¹ØÎĵµ£º

LINUXÐÞ¸ÄROOTÃÜÂë·½·¨ »ÆÃöÓñ

>1£®      »úÆ÷Æô¶¯ºó£¬ÔÚµ½À¶É«ÆÁÄ»µÄ½çÃæµÄʱºò£¬°´ÉÏϼüÑ¡Ôñ¡£
>2£®      ÔÚÑ¡ÔñµÄʱºòÑ¡ÔñºóÃæ´øÓÐELSMPµÄÕâÒ»ÐУ¬°´E¼ü£¬Ç§Íò²»Òª°´»Ø³µ
>3£®      È»ºóÔÚÑ¡Ôñ´øÓÐkernel¿ªÍ·µÄÕâÒ»ÐУ¬°´E¼ü£¬²»Òª°´»Ø³µ¡£
>4£® &n ......

LinuxÖÐBash»·¾³±äÁ¿µÄÉ趨˳Ðò

ºÍBashµÄ»·¾³É趨ÓйصÄÎļþÓÐ
/etc/profile (Ö÷Òª)
$HOME/.bash_profile (Ö÷Òª)
$HOME/.bash_login
$HOME/.profile
$HOME/.bash_logout (Ö÷Òª)
$HOME/.bashrc (Ö÷Òª)
/etc/bashrc
˵Ã÷ÈçÏ£º
µÇÈë(login)ʱ
ÏÈÖ´ÐÐ /etc/profile
½Ó×Åbash»á¼ì²éʹÓÃÕßµÄ×Ô¼ÒĿ¼ÖУ¬ÊÇ·ñÓÐ .bash_profile »òÕß .bash_login»òÕß ......

LinuxµÄDateºÍTime

ÖÜÐ÷ºê
http://zxuhong.blog.51cto.com/368977/74442
 
1.1 ¸ÅÊö
ÊÀ½ç±ê׼ʱ¼ä£¨Coordinated Universal Time£¬UTC£©£¬Ò²¾ÍÊÇ´ó¼ÒËùÊìÖªµÄ¸ñÁÖÍþÖαê׼ʱ ¼ä£¨Greenwich Mean Time£¬GMT£©¡£ÊÀ½ç¸÷µØʱ¼äÒ²ÊÀ½ç±ê׼ʱ¼äΪ»ù×¼»®·ÖΪ²»Í¬µÄʱÇø£¬ÀýÈ磬ÖйúµÄ±±¾©Ê±¼äÓëUTCµÄʱ²îΪ+8£¬Ò²¾ÍÊÇUTC+8¡£ÃÀ¹úÊÇUTC-5¡£
& ......

linuxÓÃrdateÃüÁîʵÏÖͬ²½Ê±¼ä

author:skate
time:2010-05-07
ÓÃrdateÃüÁîʵÏÖͬ²½Ê±¼ä
Ç°Á½Ìì˵µ½ÓÃntpʱ¼ä·þÎñÆ÷ºÍntpdateÃüÁîͬ²½Ê±¼ä£¬½ñÌì¼òµ¥¼Ç¼ÏÂÓÃrdateͬ²½Ê±¼ä
http://blog.csdn.net/wyzxg/archive/2010/05/06/5561548.aspx
ÔÚ¸÷ÖÖlinuxÖж¼ÓÐrdateÃüÁî
1. Ñ¡ÔÚһ̨linux×÷Ϊmaster£¬È»ºóÆô¶¯ÉÏÃæµÄʱÖÓ·þÎñ
#chkconfig time on
Èç¹û² ......

linuxϵͳ¹¤³ÌʦÃæÊÔÌâ(¸½´ð°¸)

1.²é¿´Linuxϵͳµ±Ç°µ¥¸ö¹²ÏíÄÚ´æ¶ÎµÄ×î´óÖµ£¨ÃüÁ
ipcs -m
ipcs -a
2.ÓÃʲôÃüÁî²éѯָ¶¨IPµØÖ·µÄ·þÎñÆ÷¶Ë¿Ú
ÌâÒâÓ¦¸ÃÊÇ nmap ºÍnbtscan ÃüÁîÀ´É¨°É¡£
3.crontabÖÐÓÃʲôÃüÁÒåij¸ö³ÌÐòÖ´ÐеÄÓÅÏȼ¶±ð
nice/renice£º½ø³ÌÖ´ÐÐÓÅÏȼ¶
¸ÅÄ
½ø³ÌÓÅÏȼ¶£ºÏµÍ³°´½ø³ÌÓÅÏȼ¶µÄ²»Í¬·ÖÅäCPUʱ¼ä£¬ÓÅÏȼ¶¸ßµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ