linux getoptsÃüÁ´¦Àíshell½Å±¾²ÎÊý
#!/bin/bash
while getopts "ab:cd:" Option
# b and d take arguments
#
do
case $Option in
a) echo -e "a = $OPTIND";;
b) echo -e "b = $OPTIND $OPTARG";;
c) echo -e "c = $OPTIND";;
d) echo -e "d = $OPTIND $OPTARG";;
esac
done
shift $(($OPTIND - 1))
Ïà¹ØÎĵµ£º
µÚÒ»²½£ºÔÚVMWAREÖУ¬ÔËÐÐÆô¶¯LINUXºó¡£µã»÷VM->INSTALL VMWare TOOLS£¬µã»÷OK¡££¨²¹³ä£ºÍ˳öVMWARE»Øµ½XPÓÃCTRL+ALT£©
µÚ¶þ²½£º½øÈëLINUXºó£¬ÔËÐÐÖÕ¶Ë¡£Ö´ÐÐmount /dev/cdromÒÔÎļþ·½Ê½¹ÒÔØ¹âÇý£¨Èç¹ûûÓеÚÒ»²½£¬¾ÍûÓÐÕâÒ»²½£¬ÒòΪÐèÒªµÄTOOLSÊÇÒÔ¹âÇýÎļþÐÎʽ´æ·Å£© ......
½ñÌìfedora¹ÒÁË£¬ÎªÁ˱¸·ÝÊý¾ÝÓÃubuntuµÄlivecdÀ´½øÐÐÊý¾Ý±¸·Ý£¬´ÓÍøÉÏ¿´µ½ÁËһƪÌû×Ó£¬
http://www.linux-sxs.org/storage/fedora2ubuntu.html
½â¾öÁËÎÊÌâ
ÄÚÈÝÈçÏ£º
Boot Ubuntu.
Install lvm2:
$ sudo apt-get install lvm2
Load the necessary module(s):
$ sudo modprobe dm-mod
Scan your system for LVM v ......
½Å±¾Îļþ backup.sh
#!/bin/sh
a=`date "+%y_%m%d_%H%M"`
echo $a
/home/oracle/10g/bin/exp username@password@//192.168.0.126/SID owner=username FILE=/opt/beifen/126_username_$a.dmp
±¸·ÝµÄÎļþ¸ñʽÈ磺126_username_09_0920_2300.dmp
±àдÍêshell½Å±¾Ö®ºó£¬Òª¶ÔÆä¸³Óè¿ÉÖ´ÐÐȨÏÞ¼°ÆäÓû§ËùÊô£º
# chmod 7 ......
Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)
Ò»°²×°ÐèÇó
1.swap ·ÖÇø²»µÍÓÚ2G
2.selinux ״̬disable
3.ÎïÀíÄÚ´æ²»µÍÓÚ512M
ϵͳ×é¼þ
GNOME Desktop Environment
Editors
Graphical Internet
Text-based Internet
Development Libraries
Development Tools
......
1 ²é¿´µ±Ç°°²×°sambaûÓУ¬
ÃüÁrpm -qa | grep samba
ÓÐ3¸öÎļþÈ磺samba¡¢common¡¢clientÔò±íÃ÷³É¹¦°²×°ÁË
·ñÔò£ºÓÃÃüÁîrpm -ivh samba*.rpm°²×°sambaÈí¼þ°ü¡£
2 °²×°Íêºó¶àÊý¶¼±£´æÔÚ/etc/sambaĿ¼Ï£¬Ä¿Â¼ÏÂÓÐÒ»¸ösmb.confµÄÎļþ£¬
ËüÊÇsamba·þÎñµÄºËÐÄÎļþ£¬ËùÓÐÅäÖö¼ÔÚÕâÀïÐ޸ġ£
ÆäÖаüÀ¨smbdºÍnmbdÁ½¸ö³ ......