只设置文件夹权限为755 文件权限为644find -type d -exec chmod 755 {} \;find -type f -exec chmod 644 {} \;或者find -type d|xargs chmod 755find -type f|xargs chmod 644
分类:
系统相关 时间:
2014-07-01 22:35:28
阅读次数:
235
带有镜像的数据库的压缩,如果有些情况没有按照步骤,可能不能将数据库压缩1: backup logBACKUP LOG [database name] TO DISK = N'path\txxx.bak'WITH NOFORMAT, NOINIT, NAME = database name-Trans...
分类:
数据库 时间:
2014-07-01 22:16:43
阅读次数:
478
/*EXEC master..xp_cmdshell 'BCP "select * from NBZA_Live_20140613.dbo.StoreList for xml Raw " queryout D:\XML\my_StoreList_20140630001.xml -c -U"sa" -...
分类:
其他好文 时间:
2014-07-01 12:23:38
阅读次数:
313
最近在做一套DB2数据库迁移时遭遇 SQL20321N报错。
场景:一套干净的环境,刚装了DB2,预计将一套老的DB2数据库迁移至此。
在源端进行冷备:
db2 backup db sundb to /db2sys compress
将备份介质传输到目标端/db2sys目录下。
在目标端进行恢复:
db2 restore db sundb from . on /...
分类:
数据库 时间:
2014-06-30 18:58:35
阅读次数:
416
创建命令f1
创建一个shell脚本 f1,放到 $PATH 可以找到的位置:
{CSDN:CODE:411063}
f1用法
1. 创建一个文件 foo.txt,并 backup 它
$ cat foo.txt
1
$ f1 backup foo.txt
2. 修改它
$ cat foo.txt
2
3. 还原到上一个版本
$ f1 ...
分类:
其他好文 时间:
2014-06-30 17:04:38
阅读次数:
228
1、网络设置的备份与恢复
备份操作: netsh dump >bak12.txt
恢复操作: nesh exec bak12.txt
2、用命令改IP,如下:
C:/>netsh (进入设置模式)
netsh>interface
interface>ip
interface ip>set address "本地连接" static 10.1.1.111 255.255....
分类:
Web程序 时间:
2014-06-30 16:31:56
阅读次数:
297
环境是AIX 6.1,DB2版本9.7.0.7
首先查看db2主进程是否存在
ps -ef|grep db2sys
若不存在使用db2start打开数据库
备份介质为冷备数据源,
cd 到介质所在目录下:
cd /home/db2inst1/backup
使用redirect参数来更改目录:
1.>db2 restore db xxx from . ...
分类:
数据库 时间:
2014-06-30 16:25:45
阅读次数:
459
Write something like this to automatically mount system drive:/dev/sda1 /media/win-c ntfs-3gauto,rw,suid,exec,async,users,locale=zh_CN.UTF-8 0 0...
分类:
其他好文 时间:
2014-06-30 13:30:17
阅读次数:
276
1、命令注入(Command Injection)PHP中可以使用下列5个函数来执行外部的应用程序或函数system、exec、passthru、shell_exec、“(单撇号,与shell_exec功能相同,如)例:提交http://www.sectop.com/ex1.php?dir=| ca...
分类:
Web程序 时间:
2014-06-30 12:10:17
阅读次数:
263
find命令
find pathname -options [-print -exec -ok ...]
-print: find命令将匹配的文件输出到标准输出。
-exec: find命令对匹配的文件执行该参数所给出的shell命令。相应命令的形式为'command' { } \;,注意{ }和\;之间的空格。
-ok: 和-exec的作用相同,只不过以一种更...
分类:
系统相关 时间:
2014-06-29 20:48:34
阅读次数:
355