随笔分类 -  shell

nginx issue
摘要:nginx: [emerg] BIO_new_file("/tmp/recorderApp/speech/cert.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/tmp 阅读全文

posted @ 2022-05-04 12:52 cdekelon 阅读(25) 评论(0) 推荐(0) 编辑

批量kill 进程
摘要:# ps -aux |grep speech |awk -F " " '{print $2}' |xargs kill -9 https://blog.csdn.net/liveway6/article/details/100192121 阅读全文

posted @ 2022-04-05 23:32 cdekelon 阅读(12) 评论(0) 推荐(0) 编辑

vimdiff
摘要:至于光标在两个窗口之前的切换,可以使用如下按键: Ctrl-w, l :光标切换到右侧的窗口 Ctrl-w, h :光标切换到左侧的窗口 Ctrl-w, w :光标在两个窗口间彼此切换 阅读全文

posted @ 2021-12-18 23:44 cdekelon 阅读(68) 评论(0) 推荐(0) 编辑

整片注释 ,shell
摘要:https://blog.csdn.net/qianggezhishen/article/details/51981804 <<'COMMENT' mkdir xxx balabalabala cd xxx COMMENT 在我们写 shell 脚本的时候,特别在调试的时候经常需要注释多行命令,但在 阅读全文

posted @ 2021-12-11 22:57 cdekelon 阅读(118) 评论(0) 推荐(0) 编辑

input something to stdin, especially there is "$" in the uname
摘要:$ docker login --username=\$oauthtoken --password="yourkey" nvcr.io https://docs.docker.com/engine/reference/commandline/login/ 阅读全文

posted @ 2021-07-21 18:02 cdekelon 阅读(31) 评论(0) 推荐(0) 编辑

vim how to set nu with 0-index instead of 1-index
摘要:set relativenumber or for short "set rnu" This starts the count from 0 https://stackoverflow.com/questions/1176326/vim-zero-indexed-line-numbers-in-se 阅读全文

posted @ 2021-02-23 18:06 cdekelon 阅读(34) 评论(0) 推荐(0) 编辑

vim, sublimetext http://www.sublimetext.cn/
摘要:vim, sublimetext http://www.sublimetext.cn/ 阅读全文

posted @ 2021-01-27 21:25 cdekelon 阅读(59) 评论(0) 推荐(0) 编辑

How to download file from google drive
摘要:If one file is named https://drive.google.com/file/d/1rdEsCUcIUaYOVRkx5IMTRNA7PcGMmSgc/edit It means its id is 1rdEsCUcIUaYOVRkx5IMTRNA7PcGMmSgc Then 阅读全文

posted @ 2020-08-06 15:55 cdekelon 阅读(351) 评论(0) 推荐(0) 编辑

shell 计算器
摘要:$ bcbc 1.07.1Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.This is free software with ABSOLUTELY NO 阅读全文

posted @ 2019-05-23 15:33 cdekelon 阅读(145) 评论(0) 推荐(0) 编辑

grep -r xxx .
摘要:$ grep -r load . ./bak_0413.py: json_data = unicode_convert(json.load(bbox_info_json_file)) ./process_label.py: data = json.load(f) ./0418_delete_class.py: json_data = unicode_convert(js... 阅读全文

posted @ 2019-04-23 11:04 cdekelon 阅读(3549) 评论(0) 推荐(0) 编辑

rm xxx , 如何恢复
摘要:Refer to https://blog.csdn.net/Q1302182594/article/details/47315177 $ sudo apt-get install extundelete $ sudo extundelete /dev/sda1 --restore-all 阅读全文

posted @ 2019-04-04 14:57 cdekelon 阅读(175) 评论(0) 推荐(0) 编辑

设置系统时间
摘要:$ timedatectl set-time 2019-03-15 $ timedatectl https://www.tecmint.com/set-time-timezone-and-synchronize-time-using-timedatectl-command/ 阅读全文

posted @ 2019-03-19 15:43 cdekelon 阅读(104) 评论(0) 推荐(0) 编辑

(shell)Show all the files in folders and subfolders
摘要:for d in ./*; do if [ -d "$d" ]; then for e in $d/*;do if [ -d "$e" ]; then find "$e" -type f -print fi done fi done for d in ./*; do if [ -d "$d" ... 阅读全文

posted @ 2018-01-23 17:12 cdekelon 阅读(185) 评论(0) 推荐(0) 编辑

(shell)show all the folders and sub-folders
摘要:# cat bbb-subfolder.sh for d in ./*; do if [ -d "$d" ]; then echo "$d" for e in $d/*;do if [ -d "$e" ]; then echo "$e" fi done fi done 阅读全文

posted @ 2018-01-23 16:46 cdekelon 阅读(192) 评论(0) 推荐(0) 编辑

(shell)show all the files in one path
摘要:# cat aaa-ls.sh yourfilenames=`ls ./*.jpg` for eachfile in $yourfilenames do echo $eachfile done 阅读全文

posted @ 2018-01-23 16:27 cdekelon 阅读(140) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示