摘要:
# these shell code used to test file attributes# block devicedevice0="/dev/sda2"if [ -b "$device0" ]then echo "$device0 is a block device."fi# character devicedevice1="/dev/ttyS1" # PCMCIA modem cardif [ -c "$device1" ]then echo "$device is a ch 阅读全文