
- :fire:Terminal终端:
git remote set-url origin https://codeXXXXXXXXXXXXXXXXXXXX@github.com/elegantcoin/utils.git登录gitrsync --bwlimit=1000 -artP file1 -e 'ssh -p xxxx' user@targetmachine:file2cat cmd_lines_2022-05_15.log|egrep -E "history lines |\(103\)"split -l 1000 -a 3 bigfiles.txt smallfiles.txtsplit filesmysql/redis-cli -h service -P xxxx -u username -p passwordmysqldocker psdockerdocker commit 1234 softeorename:v2.0docker commitdocker save -o softeorename.tar softeorename:v2.0docker savedocker load -i softeorename.tardocker loaddocker run -dit -v /tmp/localpath:home --name softeorename softeorename:v2.0docker exec -it 100 /bin/bashkeys * / get key 100redistar -cvf compress.tar /filefolder --exclude=./.sshtartar cf /tmp/compress.tar /big/tree --exclude-from <(find /big/tree -size +3M)tartar czf /tmp/compress.tar |split -b 1000m - small-file.tarsplit tar filefind /tmp/path -3M|xargs tar cf /tmp/compress.tartar fills <3M in pathfind ./ -name "*" -size +3Mfind files >3Mfind ./ -name "*.txt|xargs cat >3.txt"cat into one filewget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.shget anancondavim ~/.bash_historyvim ~/.bashrcvim ~/.bash_profilenohup jupyter 2>&1 &nohupjupyter notebook >jupyter.log 2>&1 &ps -aux |egrep test.sh|egrep -v grep|awk '${printps -aux|egrep python |xargs kill -9}'|sort -k 2 -nps -eo pid,sgi_p,cmd --sort sgi_p|egrep "python"careful if root usermagick -loop 0 -delay 10 fram*.jpg frame.giftree -dfgenerate gifsrsvg-convert -z 10.0 pprof001_true.svg >pprof001.pngconvert to pngtree -L 3tree dirtree -dfIL "*anaconda*|*git*" 3tree 3 levelsrename 's/\.jpeg/\.jpg' *.jpegtree ignore keywordscat my_log.log|egrep ''$'\t123'$'\tsname'|sort -k 1 -k 2rename using regxls --sort=noneegrep \t and sortaek '! a[no sorting when ls(useful in huge files folder)sed -i'.bak' 's/words/word/g' my_log.log]++'python -m cProfile my_script.pydrop duplicatego tool pprof cpu.outreplace global/bin/spark2-submit --master yarn --deploy-mode client --queue username --driver-memory 32g --executor-cores 10 --executor-memory 32gcProfile go Profile- # Python zip() behavior in bash spark file_names
=
$(ls)file_arr *.txt=
($file_names)var_arr=
($file_arr)i=
0fors_one
in $file_names ; do((++
))i# head my_log.log|awk -F ',' '{printf("%s %s\n",split(my_count,var_arr,","),var_arr[1])}=
$(
cat|wc) $s_one my_content= -l$(
sed's/\n/\\n/g')echo [ $s_oneecho
\n "${var_arr${s_one}${i}]}"
${my_count} "#\n#\n|${my_content}\n\nmv$ifile" >>all.txt
${s_one} file_`` .qgz # function in bashauto_triger.qgz
- (
)
msg= {
echo${msg}}
"this is a func" ``
# crontab -l -e
auto_triger 30
- cd
&&
sh 09 * * * 2 /tmp/robot &1 start_robot.sh >>robot.log >
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)