随笔分类 - CLI
摘要:https://alacritty.org/config-alacritty.html windows 位置 %APPDATA%\alacritty\alacritty.toml 命令 cmd /c start /min "" pwsh.exe -WindowStyle Hidden -Execut
阅读全文
posted @ 2025-03-12 09:58
fndefbwefsowpvqfx
摘要:```bash xxd --help Usage: xxd [options] [infile [outfile]] or xxd -r [-s [-]offset] [-c cols] [-ps] [infile [outfile]] Options: -a toggle autoskip: A
阅读全文
posted @ 2023-04-04 17:10
fndefbwefsowpvqfx
摘要:.gitignore 中的文件不复制 ```bash --filter=':- .gitignore' ``` 会删除 ```bash --delete ``` windows下的c盘路径 ```bash /cygdrive/c/Users/ ``` 在linux上 将 windows 上的`nam
阅读全文
posted @ 2023-03-31 19:12
fndefbwefsowpvqfx
摘要:https://github.com/ibraheemdev/modern-unix.git path list https://github.com/Canop/broot.git https://github.com/ogham/exa.git https://github.com/lsd-rs
阅读全文
posted @ 2023-03-27 16:23
fndefbwefsowpvqfx
摘要:############################################################################## # TMUX CHEATSHEET (中文速查表) - by ziyenano (created on 2018/03/15) # Versi
阅读全文
posted @ 2020-12-28 21:12
fndefbwefsowpvqfx
摘要:sed -i 's/class=notification-bar/class=notification-bar id=notification-bar/g' *.html sed -i 's/class="sidebar site__sidebar"/class="sidebar site__sid
阅读全文
posted @ 2020-10-29 21:40
fndefbwefsowpvqfx
摘要:Ref http://www.ruanyifeng.com/blog/2020/08/rsync.html ###-r 本机使用 rsync 命令时,可以作为cp和mv命令的替代方法,将源目录同步到目标目录。 $ rsync -r source destination 上面命令中,-r表示递归,即包
阅读全文
posted @ 2020-10-10 11:06
fndefbwefsowpvqfx
摘要:安装ssh服务 sudo apt-get install openssh-server 启动服务 /etc/init.d/ssh start 重启服务 /etc/init.d/ssh restart service sshd restart systemctl restart sshd.servic
阅读全文
posted @ 2020-09-14 10:07
fndefbwefsowpvqfx
摘要:CHMOD is used to change permissions of a file. PERMISSION COMMAND U G W rwx rwx rwx chmod 777 filename rwx rwx r-x chmod 775 filename rwx r-x r-x chmo
阅读全文
posted @ 2020-09-06 10:25
fndefbwefsowpvqfx
摘要:## do.sh ```bash #!/bin/bash repeat() { while :; do $@ && return; sleep 1; done } retryuntil() { echo $(date +%F%n%T) msg=`./job.sh 2>&1` echo $msg #e
阅读全文
posted @ 2020-08-13 11:36
fndefbwefsowpvqfx
摘要:. . | | | UNIX Stream Editor | | Sed Cheat Sheet | | | ' ' | Created by Peter Krumins (peter@catonmat.net, @pkrumins on twitter) | | www.catonmat.net
阅读全文
posted @ 2020-08-10 10:28
fndefbwefsowpvqfx
摘要:. . | | | Set Operations in the Unix Shell | | | ' v1.07-' | Created by Peter Krumins (peter@catonmat.net, @pkrumins on twitter) | | www.catonmat.net
阅读全文
posted @ 2020-08-10 10:24
fndefbwefsowpvqfx
摘要:addpart Informs the Linux kernel of new partition || lslocks List local system locks agetty Alternative Linux getty; handles tty, login, shell || mcoo
阅读全文
posted @ 2020-08-10 10:23
fndefbwefsowpvqfx
摘要:Utility || Description arch Print machine hardware name || nproc Print the number of processors base64 Base64 encode/decode strings or files || od Dum
阅读全文
posted @ 2020-08-10 10:16
fndefbwefsowpvqfx
摘要:. . | | | Bash Redirections Cheat Sheet | | | + v1.08-+ | | | Created by Peter Krumins (peter@catonmat.net, @pkrumins on twitter) | | www.catonmat.net
阅读全文
posted @ 2020-08-10 09:59
fndefbwefsowpvqfx
摘要:.tmux.conf #/Users/name/.tmux.conf # 命令前缀 C-b给vim用的 set -g prefix2 C-s set-option -g prefix C-a bind-key C-a last-window # 分割窗口 bind-key \ split-windo
阅读全文
posted @ 2020-08-05 11:24
fndefbwefsowpvqfx
摘要:13,2,3 32,4,5 21,1,0 9,2,6 8,7,5 按字母比较大小 对inputfile内容按行排序,结果输出到output,默认升序 sort -o output.txt inputfile.txt 13,2,3 21,1,0 32,4,5 8,7,5 9,2,6 按数值比较大小 s
阅读全文
posted @ 2020-06-29 13:34
fndefbwefsowpvqfx
摘要:#!/usr/bin/expect spawn ssh remotehost expect "*some key word*" send "kinit -f\r" expect "*assword*" send "password\r" send "cmd1\r" send "cmd2\r" sen
阅读全文
posted @ 2019-12-26 18:32
fndefbwefsowpvqfx
摘要:当log被压缩时,zgrep可以查询器内容。 递归查找当前目录下所有.gz文件,搜索。 find . -type f -name "*.gz" -exec zgrep --color='always' -Hn "what you want to search" {} \; 正则表达式选择gz 文件进
阅读全文
posted @ 2019-10-30 18:13
fndefbwefsowpvqfx
摘要:递归监视当前目录下所有文件 fswatch --recursive --format "%f##%p##%t%0%n" ./
阅读全文
posted @ 2019-10-30 17:53
fndefbwefsowpvqfx