所有命令 ()

linux命令:sudo netstat -plnt | awk '($4 ~ /:50$/){sub(/\/.*/, "", $7); system("sudo kill " $7)}' $7)}' " kill system("sudo $7); "", /:50$/){sub(/\/.*/, ~ '($4 awk | -plnt netstat sudo sudo netstat -plnt | awk '($4 ~ /:50$/){sub(/\/.*/, "", $7); system("sudo kill " $7)}'rootopen.com
linux命令:sudo netstat -plnt | awk '($4 ~ /:50$/){sub(/\/.*/, "", $7); system("sudo kill " $7)}' $7)}' " kill system("sudo $7); "", /:50$/){sub(/\/.*/, ~ '($4 awk | -plnt netstat sudo sudo netstat -plnt | awk '($4 ~ /:50$/){sub(/\/.*/, "", $7); system("sudo kill " $7)}'rootopen.com
xiaohaizi 2018-07-14 22:11:25

linux命令:DAY=01; MONTH=07; YEAR=1979; CURRENT_YEAR=$(date +%Y); for i in $(seq $YEAR $CURRENT_YEAR); do echo -n "$i -> "; date --date "$i-$MONTH-$DAY" +%A; done done +%A; "$i-$MONTH-$DAY" --date date "; -> "$i -n echo do $CURRENT_YEAR); $YEAR $(seq in i for +%Y); CURRENT_YEAR=$(date YEAR=1979; MONTH=07; DAY=01; DAY=01; MONTH=07; YEAR=1979; CURRENT_YEAR=$(date +%Y); for i in $(seq $YEAR $CURRENT_YEAR); do echo -n "$i -> "; date --date "$i-$MONTH-$DAY" +%A; donerootopen.com
linux命令:DAY=01; MONTH=07; YEAR=1979; CURRENT_YEAR=$(date +%Y); for i in $(seq $YEAR $CURRENT_YEAR); do echo -n "$i -> "; date --date "$i-$MONTH-$DAY" +%A; done done +%A; "$i-$MONTH-$DAY" --date date "; -> "$i -n echo do $CURRENT_YEAR); $YEAR $(seq in i for +%Y); CURRENT_YEAR=$(date YEAR=1979; MONTH=07; DAY=01; DAY=01; MONTH=07; YEAR=1979; CURRENT_YEAR=$(date +%Y); for i in $(seq $YEAR $CURRENT_YEAR); do echo -n "$i -> "; date --date "$i-$MONTH-$DAY" +%A; donerootopen.com
xiaohaizi 2018-07-14 22:10:08

linux命令:function wpoxiy () { # What percentage of X is Y? Where percent/100 = X/Y => percent=100*X/Y # Example: wpoxiy 10 5 # 50.00% # Example: wpoxiy 30 10 # 33.33% echo $(bc <<< "scale=2; y=${1}; x=${2}; percent=x*100/y; percent")"%"; } } percent")"%"; percent=x*100/y; x=${2}; y=${1}; "scale=2; <<< $(bc echo 33.33% # 10 30 wpoxiy Example: # 50.00% # 5 10 wpoxiy Example: # percent=100*X/Y => X/Y = percent/100 Where Y? is X of percentage What # { () wpoxiy function function wpoxiy () { # What percentage of X is Y? Where percent/100 = X/Y => percent=100*X/Y # Example: wpoxiy 10 5 # 50.00% # Example: wpoxiy 30 10 # 33.33% echo $(bc <<< "scale=2; y=${1}; x=${2}; percent=x*100/y; percent")"%"; }rootopen.com
linux命令:function wpoxiy () { # What percentage of X is Y? Where percent/100 = X/Y => percent=100*X/Y # Example: wpoxiy 10 5 # 50.00% # Example: wpoxiy 30 10 # 33.33% echo $(bc <<< "scale=2; y=${1}; x=${2}; percent=x*100/y; percent")"%"; } } percent")"%"; percent=x*100/y; x=${2}; y=${1}; "scale=2; <<< $(bc echo 33.33% # 10 30 wpoxiy Example: # 50.00% # 5 10 wpoxiy Example: # percent=100*X/Y => X/Y = percent/100 Where Y? is X of percentage What # { () wpoxiy function function wpoxiy () { # What percentage of X is Y? Where percent/100 = X/Y => percent=100*X/Y # Example: wpoxiy 10 5 # 50.00% # Example: wpoxiy 30 10 # 33.33% echo $(bc <<< "scale=2; y=${1}; x=${2}; percent=x*100/y; percent")"%"; }rootopen.com
xiaohaizi 2018-07-14 22:08:21

linux命令: zgrep -i --color=always "search" file.gz | less -R -R less | file.gz "search" --color=always -i zgrep zgrep -i --color=always "search" file.gz | less -Rrootopen.com
linux命令: zgrep -i --color=always "search" file.gz | less -R -R less | file.gz "search" --color=always -i zgrep zgrep -i --color=always "search" file.gz | less -Rrootopen.com
xiaohaizi 2018-07-14 22:06:58

linux命令: zgrep -i --color=always "string" files.gz | sort -k 2,3 2,3 -k sort | files.gz "string" --color=always -i zgrep zgrep -i --color=always "string" files.gz | sort -k 2,3rootopen.com
linux命令: zgrep -i --color=always "string" files.gz | sort -k 2,3 2,3 -k sort | files.gz "string" --color=always -i zgrep zgrep -i --color=always "string" files.gz | sort -k 2,3rootopen.com
xiaohaizi 2018-07-14 22:06:15

linux命令:alias please='sudo $(fc -ln -1)' -1)' -ln $(fc please='sudo alias alias please='sudo $(fc -ln -1)'rootopen.com
linux命令:alias please='sudo $(fc -ln -1)' -1)' -ln $(fc please='sudo alias alias please='sudo $(fc -ln -1)'rootopen.com
xiaohaizi 2018-07-14 16:31:14

linux命令:sed -i 's/\r//g somefile.txt somefile.txt 's/\r//g -i sed sed -i 's/\r//g somefile.txtrootopen.com
linux命令:sed -i 's/\r//g somefile.txt somefile.txt 's/\r//g -i sed sed -i 's/\r//g somefile.txtrootopen.com
nono 2018-07-14 16:28:09

linux命令:echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA" "NS|SOA" -vE grep | - join("\t")' | .ResourceRecords[0].Value] .Type, [.Name, | '.ResourceRecordSets[] -r jq | Z1EEXAMPLE9SF3 --hosted-zone-id list-resource-record-sets route53 aws && "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" -e echo echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA"rootopen.com
linux命令:echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA" "NS|SOA" -vE grep | - join("\t")' | .ResourceRecords[0].Value] .Type, [.Name, | '.ResourceRecordSets[] -r jq | Z1EEXAMPLE9SF3 --hosted-zone-id list-resource-record-sets route53 aws && "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" -e echo echo -e "\$ORIGIN\tumccr.org.\n\$TTL\t1h\n" && aws route53 list-resource-record-sets --hosted-zone-id Z1EEXAMPLE9SF3 | jq -r '.ResourceRecordSets[] | [.Name, .Type, .ResourceRecords[0].Value] | join("\t")' - | grep -vE "NS|SOA"rootopen.com
nono 2018-07-14 16:27:17

linux命令:watch -n 1 curl -XGET 'http://localhost:9200/_cluster/health?pretty=true' 'http://localhost:9200/_cluster/health?pretty=true' -XGET curl 1 -n watch watch -n 1 curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'rootopen.com
linux命令:watch -n 1 curl -XGET 'http://localhost:9200/_cluster/health?pretty=true' 'http://localhost:9200/_cluster/health?pretty=true' -XGET curl 1 -n watch watch -n 1 curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'rootopen.com
dawang 2018-07-14 16:19:34

linux命令:for i in *.pdf; do mv "$i" CS749__"$i"; done done CS749__"$i"; "$i" mv do *.pdf; in i for for i in *.pdf; do mv "$i" CS749__"$i"; donerootopen.com
linux命令:for i in *.pdf; do mv "$i" CS749__"$i"; done done CS749__"$i"; "$i" mv do *.pdf; in i for for i in *.pdf; do mv "$i" CS749__"$i"; donerootopen.com
dawang 2018-07-14 16:18:38

linux命令:printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n" btc/KB\n" get to 100,000 by +%c)\nDivide $(date of as confirmations 6 for feerate estimated sat/B " .feerate*100000)";printf jq | "ECONOMICAL" 6 estimatesmartfee "$(bitcoin-cli %g printf printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n"rootopen.com
linux命令:printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n" btc/KB\n" get to 100,000 by +%c)\nDivide $(date of as confirmations 6 for feerate estimated sat/B " .feerate*100000)";printf jq | "ECONOMICAL" 6 estimatesmartfee "$(bitcoin-cli %g printf printf %g "$(bitcoin-cli estimatesmartfee 6 "ECONOMICAL" | jq .feerate*100000)";printf " sat/B estimated feerate for 6 confirmations as of $(date +%c)\nDivide by 100,000 to get btc/KB\n"rootopen.com
dawang 2018-07-14 16:17:48

linux命令:genRandomText() { perl -e '$n=shift; print chr(int(rand(26)) + 97) for 1..$n; print "\n"' $1;} $1;} "\n"' print 1..$n; for 97) + chr(int(rand(26)) print '$n=shift; -e perl { genRandomText() genRandomText() { perl -e '$n=shift; print chr(int(rand(26)) + 97) for 1..$n; print "\n"' $1;}rootopen.com
linux命令:genRandomText() { perl -e '$n=shift; print chr(int(rand(26)) + 97) for 1..$n; print "\n"' $1;} $1;} "\n"' print 1..$n; for 97) + chr(int(rand(26)) print '$n=shift; -e perl { genRandomText() genRandomText() { perl -e '$n=shift; print chr(int(rand(26)) + 97) for 1..$n; print "\n"' $1;}rootopen.com
dawang 2018-07-14 16:13:21

linux命令:genRandomText() { x=({a..z}); for(( i=0; i<$1; i++ )); do printf ${x[$((RANDOM%26))]}; done; printf "\n"; } } "\n"; printf done; ${x[$((RANDOM%26))]}; printf do )); i++ i<$1; i=0; for(( x=({a..z}); { genRandomText() genRandomText() { x=({a..z}); for(( i=0; i<$1; i++ )); do printf ${x[$((RANDOM%26))]}; done; printf "\n"; }rootopen.com
linux命令:genRandomText() { x=({a..z}); for(( i=0; i<$1; i++ )); do printf ${x[$((RANDOM%26))]}; done; printf "\n"; } } "\n"; printf done; ${x[$((RANDOM%26))]}; printf do )); i++ i<$1; i=0; for(( x=({a..z}); { genRandomText() genRandomText() { x=({a..z}); for(( i=0; i<$1; i++ )); do printf ${x[$((RANDOM%26))]}; done; printf "\n"; }rootopen.com
dawang 2018-07-14 16:12:50

linux命令:genRandomText() { cat /dev/urandom|tr -dc 'a-zA-Z'|head -c $1 } } $1 -c 'a-zA-Z'|head -dc /dev/urandom|tr cat { genRandomText() genRandomText() { cat /dev/urandom|tr -dc 'a-zA-Z'|head -c $1 }rootopen.com
linux命令:genRandomText() { cat /dev/urandom|tr -dc 'a-zA-Z'|head -c $1 } } $1 -c 'a-zA-Z'|head -dc /dev/urandom|tr cat { genRandomText() genRandomText() { cat /dev/urandom|tr -dc 'a-zA-Z'|head -c $1 }rootopen.com
dawang 2018-07-14 16:12:28

linux命令: genRandomText() { a=( a b c d e f g h i j k l m n o p q r s t u v w x y z );f=0;for i in $(seq 1 $(($1-1))); do r=$(($RANDOM%26)); if [ "$f" -eq 1 -a $(($r%$i)) -eq 0 ]; then echo -n " ";f=0;continue; else f=1;fi;echo -n ${a[$r]};done;echo"";} ${a[$r]};done;echo"";} -n f=1;fi;echo else ";f=0;continue; " -n echo then ]; 0 -eq $(($r%$i)) -a 1 -eq "$f" [ if r=$(($RANDOM%26)); do $(($1-1))); 1 $(seq in i );f=0;for z y x w v u t s r q p o n m l k j i h g f e d c b a a=( { genRandomText() genRandomText() { a=( a b c d e f g h i j k l m n o p q r s t u v w x y z );f=0;for i in $(seq 1 $(($1-1))); do r=$(($RANDOM%26)); if [ "$f" -eq 1 -a $(($r%$i)) -eq 0 ]; then echo -n " ";f=0;continue; else f=1;fi;echo -n ${a[$r]};done;echo"";}rootopen.com
linux命令: genRandomText() { a=( a b c d e f g h i j k l m n o p q r s t u v w x y z );f=0;for i in $(seq 1 $(($1-1))); do r=$(($RANDOM%26)); if [ "$f" -eq 1 -a $(($r%$i)) -eq 0 ]; then echo -n " ";f=0;continue; else f=1;fi;echo -n ${a[$r]};done;echo"";} ${a[$r]};done;echo"";} -n f=1;fi;echo else ";f=0;continue; " -n echo then ]; 0 -eq $(($r%$i)) -a 1 -eq "$f" [ if r=$(($RANDOM%26)); do $(($1-1))); 1 $(seq in i );f=0;for z y x w v u t s r q p o n m l k j i h g f e d c b a a=( { genRandomText() genRandomText() { a=( a b c d e f g h i j k l m n o p q r s t u v w x y z );f=0;for i in $(seq 1 $(($1-1))); do r=$(($RANDOM%26)); if [ "$f" -eq 1 -a $(($r%$i)) -eq 0 ]; then echo -n " ";f=0;continue; else f=1;fi;echo -n ${a[$r]};done;echo"";}rootopen.com
dawang 2018-07-14 16:11:38

linux命令: genRandomText() { local n=$1; while [ $((n--)) -gt 0 ]; do printf "\x$(printf %x $((RANDOM % 26 + 65)))" ; done ; echo ; } } ; echo ; done ; 65)))" + 26 % $((RANDOM %x "\x$(printf printf do ]; 0 -gt $((n--)) [ while n=$1; local { genRandomText() genRandomText() { local n=$1; while [ $((n--)) -gt 0 ]; do printf "\x$(printf %x $((RANDOM % 26 + 65)))" ; done ; echo ; }rootopen.com
linux命令: genRandomText() { local n=$1; while [ $((n--)) -gt 0 ]; do printf "\x$(printf %x $((RANDOM % 26 + 65)))" ; done ; echo ; } } ; echo ; done ; 65)))" + 26 % $((RANDOM %x "\x$(printf printf do ]; 0 -gt $((n--)) [ while n=$1; local { genRandomText() genRandomText() { local n=$1; while [ $((n--)) -gt 0 ]; do printf "\x$(printf %x $((RANDOM % 26 + 65)))" ; done ; echo ; }rootopen.com
dawang 2018-07-14 16:10:44

linux命令:echo $(( $(grep -c '^ $' file_name) / 2 )) )) 2 / file_name) $' '^ -c $(grep $(( echo echo $(( $(grep -c '^ $' file_name) / 2 ))rootopen.com
linux命令:echo $(( $(grep -c '^ $' file_name) / 2 )) )) 2 / file_name) $' '^ -c $(grep $(( echo echo $(( $(grep -c '^ $' file_name) / 2 ))rootopen.com
dawang 2018-07-14 16:08:54

linux命令:for i in *; do I=`echo $i|cut -c 1|tr a-z A-Z`; if [ ! -d "$I" ]; then mkdir "$I"; fi; mv "$i" "$I"/"$i"; done done "$I"/"$i"; "$i" mv fi; "$I"; mkdir then ]; "$I" -d ! [ if A-Z`; a-z 1|tr -c $i|cut I=`echo do *; in i for for i in *; do I=`echo $i|cut -c 1|tr a-z A-Z`; if [ ! -d "$I" ]; then mkdir "$I"; fi; mv "$i" "$I"/"$i"; donerootopen.com
linux命令:for i in *; do I=`echo $i|cut -c 1|tr a-z A-Z`; if [ ! -d "$I" ]; then mkdir "$I"; fi; mv "$i" "$I"/"$i"; done done "$I"/"$i"; "$i" mv fi; "$I"; mkdir then ]; "$I" -d ! [ if A-Z`; a-z 1|tr -c $i|cut I=`echo do *; in i for for i in *; do I=`echo $i|cut -c 1|tr a-z A-Z`; if [ ! -d "$I" ]; then mkdir "$I"; fi; mv "$i" "$I"/"$i"; donerootopen.com
dawang 2018-07-14 16:07:21

linux命令:sed 's / \“/ \\\”/ g'json_file | tr -d '\ n' | tr -d '[[:blank:]]' '[[:blank:]]' -d tr | n' '\ -d tr | g'json_file \\\”/ \“/ / 's sed sed 's / \“/ \\\”/ g'json_file | tr -d '\ n' | tr -d '[[:blank:]]'rootopen.com
linux命令:sed 's / \“/ \\\”/ g'json_file | tr -d '\ n' | tr -d '[[:blank:]]' '[[:blank:]]' -d tr | n' '\ -d tr | g'json_file \\\”/ \“/ / 's sed sed 's / \“/ \\\”/ g'json_file | tr -d '\ n' | tr -d '[[:blank:]]'rootopen.com
dawang 2018-07-14 16:06:46

linux命令:parallel echo -n {}"\ "\;echo '$(du -s {} | awk "{print \$1}") / $(find {} | wc -l)' \| bc -l ::: * * ::: -l bc \| -l)' wc | {} $(find / \$1}") "{print awk | {} -s '$(du "\;echo {}"\ -n echo parallel parallel echo -n {}"\ "\;echo '$(du -s {} | awk "{print \$1}") / $(find {} | wc -l)' \| bc -l ::: *rootopen.com
linux命令:parallel echo -n {}"\ "\;echo '$(du -s {} | awk "{print \$1}") / $(find {} | wc -l)' \| bc -l ::: * * ::: -l bc \| -l)' wc | {} $(find / \$1}") "{print awk | {} -s '$(du "\;echo {}"\ -n echo parallel parallel echo -n {}"\ "\;echo '$(du -s {} | awk "{print \$1}") / $(find {} | wc -l)' \| bc -l ::: *rootopen.com
dawang 2018-07-14 16:06:12
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章