Source

コマンド:
mysqladmin -u root shutdown

Source

vim/etc/sudoers
一行目を追加する

ユーザ名 ALL=(ALL) ALL

Source

ping.sh
中身:
#!/bin/sh
#
#fileName:ping.sh
#
if test $# -eq 0
then
echo “IPアドレスを ...

IT

機能:macアドレスを作成する用シェルファイルです。
内容:
MACADDR=”52:54:$(dd if=/dev/urandom count=1 2>/dev/null | md5sum | sed & ...

Source

ipget.sh

IPS=($(ifconfig | grep ‘inet addr:’ | awk -F'’ ‘{print $13}’ \
| egr ...

Source

ファイル名:privateip.sh
中身:

#!/bin/bash
##IPアドレスはプライベートかどうかを判断する
## $1 IPアドレス
## リターン: 0プライベートIP, ...

Source

ファイル:rootyn.sh
中身:
if ; then
echo “このスクリプトはrootとして実行する必要がある” 1>&2
exit 1
fi ...

Source

attackip.sh

#!/bin/sh
########################################

nginx_home=”/opt/nginx/conf̶ ...

Source

サンプル:
schtasks/create/tn “BackUp”/tr D:\arkgame.com\backup.bat/sc daily/st 13:00:00/ed 12/31/2014

Source

jarcompress.sh

set AXIS_LIB=%AXIS_HOME%\lib
setlocal ENABLEDELAYEDEXPANSION
SET AXIS_CP=
FOR %%i IN ...

Source

clearphp.sh

#!/bin/bash
until
do
sed ‘s/eval(base.*;//g’ $1>/tmp/t
if ; then
cp ...

Source

mysql.sh

#!/bin/sh

while true
do
process=`ps aux | grep mysqld | grep -v grep`;

if ; then ...

IT

ダウンロード:
提供元サイトからダウンロード

OS:Windows Vista/7

CentOS

操作方法
1.ネットワークデバイスを確認
# nmcli device
DEVICE TYPE STATE CONNECTION
ens33 ethernet 切断済み —
lo l ...

Source

説明:
コマンドファイルの関連パスを取得する場合、whichまたwhereisで利用する
get_full_path.sh

#!/bin/sh

### change relative path ...

Source

encodeconvert.sh

#!/bin/sh

for i in `ls`
do
if ; then
echo “$i is direction, so continu ...