ITeye博客

linux查找文件的常用命令

lc0451 · 2010-11-09 11:34 · 编程语言 · Markdown

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 成功!"

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。