分页: 1 / 1
为什么会这样,求解
发表于 : 2008-10-07 21:07
由 风随心动
#!/bin/bash
declare raining="1"
while ["$raining" -eq "1"]
do
clear
echo ""
echo "is it raining?"
echo ""
echo "1.yes"
echo "2.no"
echo ""
echo "enter your selection"
read raining
done
echo "it stopped raining"
提示:./x.sh: line 3: [1:找不到命令
it stopped raining
Re: 为什么会这样,求解
发表于 : 2008-10-07 21:10
由 xiooli
[/]与其他的字母之间要有空格
Re: 为什么会这样,求解
发表于 : 2008-10-13 11:45
由 lseeo
[是一个builtin
[[是一个keyword
Re: 为什么会这样,求解
发表于 : 2008-10-22 0:45
由 风随心动
liucao@liucao-laptop:~$ sudo lvcreate -L 36.36G -n liucaolv liucaovg
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel driver
striped: Required device-mapper target(s) not detected in your kernel
lvcreate: Create a logical volume
lvcreate
[-A|--autobackup {y|n}]
[--addtag Tag]
[--alloc AllocationPolicy]
[-C|--contiguous {y|n}]
[-d|--debug]
[-h|-?|--help]
[-i|--stripes Stripes [-I|--stripesize StripeSize]]
{-l|--extents LogicalExtentsNumber |
-L|--size LogicalVolumeSize[kKmMgGtTpPeE]}
[-M|--persistent {y|n}] [--major major] [--minor minor]
[-m|--mirrors Mirrors [--nosync] [--corelog]]
[-n|--name LogicalVolumeName]
[-p|--permission {r|rw}]
[-r|--readahead ReadAheadSectors]
[-R|--regionsize MirrorLogRegionSize]
[-t|--test]
[--type VolumeType]
[-v|--verbose]
[-Z|--zero {y|n}]
[--version]
VolumeGroupName [PhysicalVolumePath...]
lvcreate -s|--snapshot
[-c|--chunksize]
[-A|--autobackup {y|n}]
[--addtag Tag]
[--alloc AllocationPolicy]
[-C|--contiguous {y|n}]
[-d|--debug]
[-h|-?|--help]
[-i|--stripes Stripes [-I|--stripesize StripeSize]]
{-l|--extents LogicalExtentsNumber[%{VG|LV|FREE}] |
-L|--size LogicalVolumeSize[kKmMgGtTpPeE]}
[-M|--persistent {y|n}] [--major major] [--minor minor]
[-n|--name LogicalVolumeName]
[-p|--permission {r|rw}]
[-r|--readahead ReadAheadSectors]
[-t|--test]
[-v|--verbose]
[--version]
OriginalLogicalVolume[Path] [PhysicalVolumePath...]
每次用lvcreate命令就回到lvcreate命令的界面,这是怎么回事,