mountusb~

来自「机房管理系统」· 代码 · 共 14 行

TXT
14
字号
  mountusb()  {  echo "Please implant your UDisk..."  fdisk -l > $HOME/cms/temp/tmp2.txt  sdiff -s $HOME/cms/temp/tmp1.txt $HOME/cms/temp/tmp2.txt > $HOME/cms/temp/tmp3.txt  grep -o "Disk /dev/sd\w*" $HOME/cms/temp/tmp3.txt > $HOME/cms/temp/tmp4.txt  UDisk_Info=`grep -o "/dev/sd\w*" $HOME/cms/temp/tmp4.txt`  echo "$UDisk_Info"  mount ${UDisk_Info} /mnt  sleep 2  echo "mount UDisk success..."  }  mountusb

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?