之前参加ctf比赛时候临时写的,有很多不足,不过可以用,就贴出来分享给大家,希望对大家有帮助. 脚本一:记录当前目录情况 #!/bin/bashfunction getdir(){ for element in `ls $1` do dirfile=$1"/"$element if [ -d $dirfile ] then getdir $dirfile else #将…
#!/bin/bash # 将代码和脚本传送至worker节点 # 改变当前工作目录 cd ${AMAZONCRAWLER_HOME} #读取worker节点ip列表 i= while read line1 do #去除空格 line1=`echo $line1 | sed s/[[:space:]]//g` #若为空则忽略本行 if [ "$line1"x = x ]; then continue fi #若是注释行 忽略 startChar=${line1:0:1} if [ &q…
Linux 文件系统错误的修复方法 ddrescue替代dd的恢复软件 备用超级块 最近处理的一件 linux 服务器断电导致文件系统启动后文件系统不可读写,数据不可用的案例,现总结下 Linux 文件系统错误的修复方法.EXT3-fs error (device hda3) in start_transaction: Journal has abortedIf your system abruptly loses power, or if a RAID card is beginning…