一一阿列克巴罗什赛耶夫斯基
无论什么编程语言都离不开条件判断。SHELL也不例外。 if list then do something here elif list then do another thing here else do something else here fi EX1: #!/bin/sh SYSTEM=`uname -s` #获取操作系统类型,我本地是linux if [ $SYSTEM = "Linu ...
#yum install convmv #rpmforge源 1.将GB2312编码的文件名转换为UTF-8 convmv -f GB2312 -t UTF-8 --notest file-name 2.将UTF-8编码的文件名转换为GB2312 convmv -f UTF-8 -t GB2312 --notest file-name 3.将GB2312编码的文件内容转换为UTF-8 ic ...
要保护自己编写的shell脚本程序,方法有很多,最简单的方法有两种:1、加密 2、设定过期时间,下面以shc工具为例说明: 安装shc工具 shc是一个加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件. shc的下载地址: http://www.datsi.fi.upm.es/~frosal/sources/ http ...
安装 wget -P /etc/yum.repos.d/ https://copr.fedorainfracloud.org/coprs/lantw44/vim-latest/repo/epel-7/lantw44-vim-latest-epel-7.repo yum install vim-enhanced vim-filesystem 查看插件列表 :scriptnames 在. ...
下载安装 wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz wget http://downloads.ghostscript.com/public/ghostscript-9.02.tar.gz yum install libpng-devel yum install libjpeg yum install g ...
rsync有时候因为服务器时间错了,需要更改文件的修改时间时间,可以使用 touch命令来修改文件的修改时间: touch -c -m -t 201101110000 teadme.txt 修改readme.txt为2011年1月11日零时零分修改如果批量修改文件和目录,则使用 find /home/www/site -exec touch -c -m -t 2011011 ...
最新评论