This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#for loop in one line | |
for i in {1..10};do `nohup echo $i 0<&- &>>~/out.txt &` ;done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ps -A | grep MPlayerX | grep Application | awk {'print $1'} | xargs kill | |
if [ "$1" == "" ]; then | |
echo "Positional parameter 1 is empty" | |
exit 0 | |
fi | |
if [[ $1 != /* ]];then | |
path=`pwd` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tar zxvf mysql-5.7.7-labs-json-linux-el6-x86_64.tar.gz | |
path=`pwd` | |
root_path=$path/mysql-5.7.7-labs-json-linux-el6-x86_64 | |
mkdir /opt/mysql | |
mkdir /opt/mysql/mysql | |
mkdir /opt/mysql/mysql/data | |
useradd mysql |
NewerOlder