日期:2014-05-16 浏览次数:20760 次
find?fromDir?-iname?"filename"?-type?f?-exec?grep?"string"?{}?\;?-print
find . | grep "filename"
?
svn revert . -R
svn log --stop-on-copy url
svn merge -r 367768:head url --dry-run
?
mount的sh脚本:
#!/bin/bash
df
echo "输入管理员密码:"
sudo /etc/init.d/nfs-common start
sudo mount 10.20.131.157:/home/admin /mnt/efs/www
sudo mount -t nfs -o rw 10.20.131.157:/home/admin/volume_photobank /mnt/photobank
sudo mount -t nfs -o rw 10.20.131.157:/home/admin/volume_product /mnt/product_repository?
sudo mount -t nfs -o rw 10.20.131.157:/home/admin/volume_wsproduct /mnt/wsproduct_repository
echo "mount 成功!"
df
?
umount的sh脚本:
#!/bin/bash
df
echo "输入管理员密码:"
sudo /etc/init.d/nfs-common start
sudo umount /mnt/efs/www
sudo umount /mnt/photobank
sudo umount /mnt/product_repository?
sudo umount /mnt/wsproduct_repository
echo "umount 成功!"