跳至內容
WMの写本
使用者工具
登入
網站工具
搜尋
工具
顯示頁面
舊版
反向連結
最近更新
多媒體管理器
網站地圖
登入
>
最近更新
多媒體管理器
網站地圖
您在這裏:
start
»
computer
»
cli
足跡:
•
server
•
knowhow
•
svg
computer:cli
本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。
======命令字元====== * [[http://betterthangrep.com/|ack]] * [[http://ngrep.sourceforge.net/|ngrep]] * [[http://nojhan.github.io/colout/|Colout]] * [[http://www.figlet.org/|FIGlet]] * [[https://github.com/visionmedia/node-term-list|term-list]] * [[https://github.com/SBoudrias/Inquirer.js|Inquirer.js]] * [[https://github.com/clvv/fasd|Fasd]] * [[https://github.com/gleitz/howdoi|howdoi]] * [[http://nicolargo.github.com/glances/|Glances]] * [[http://kkovacs.eu/cool-but-obscure-unix-tools|Cool, but obscure unix tools]] * [[http://explainshell.com/|explainshell.com]] * [[http://climagic.org/|Command LIne Magic]] * [[http://fuckingshellscripts.org/|Fucking Shell Scripts]] * [[https://github.com/joelthelion/autojump|autojump]] * [[https://github.com/powerline/powerline|Powerline]] * [[https://termux.com/|Termux]] (Android) * [[https://github.com/mkaz/termgraph|Termgraph]] * [[https://no-color.org|NO_COLOR]] * [[https://github.com/uutils/coreutils|uutils]] * [[https://joeyh.name/code/moreutils/|moreutils]] =====Terminal===== * [[https://hyper.is/|Hyper]] * [[https://www.warp.dev/|Warp]] * [[https://github.com/jwilm/alacritty|Alacritty]] * [[https://sw.kovidgoyal.net/kitty/|kitty]] * [[https://github.com/GitSquared/edex-ui|eDEX-UI]] * [[https://wezterm.org/|WezTerm]] =====Shell===== * [[http://www.oilshell.org/|Oil]] * [[https://github.com/alebcay/awesome-shell|Awesome Shell]] * [[https://www.nushell.sh/|Nushell]] * [[https://github.com/highvoltage/shello|shello]] * [[https://github.com/nojhan/liquidprompt|Liquid prompt]] * [[https://github.com/koalaman/shellcheck|ShellCheck]] * [[https://github.com/anordal/shellharden|Shellharden]] * [[https://shellspec.info/|ShellSpec]] ====fish==== * [[http://fishshell.com/|fish]] * [[https://github.com/jorgebucaran/fisher/|fisher]] * [[https://github.com/IlanCosman/tide|Tide]] * [[https://github.com/jbonjean/re-search|re-search]] ====Bash==== * [[https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html|Bash Reference Manual]] * [[http://bash-completion.alioth.debian.org/|bash-completion]] * [[https://github.com/denysdovhan/bash-handbook|bash-handbook]] * [[https://linuxtoy.org/archives/bash-shortcuts.html|讓你提升命令行效率的 Bash 快捷鍵]] * [[http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming|Defensive BASH Programming]] * [[https://github.com/Bash-it/bash-it|Bash-it]] * [[https://github.com/brujoand/sbp|Simple Bash Prompt]] * [[https://dev.to/rpalo/bash-brackets-quick-reference-4eh6|Bash Brackets Quick Reference]] * [[https://shellmagic.xyz/|Bash Quick References]] * [[https://github.com/bats-core/bats-core|Bash Automated Testing System]] * [[https://betterdev.blog/minimal-safe-bash-script-template/|Minimal safe Bash script template]] ====Zsh==== * [[http://www.slideshare.net/jaguardesignstudio/why-zsh-is-cooler-than-your-shell-16194692|Why Zsh is Cooler than Your Shell]] * [[https://arjanvandergaag.nl/blog/customize-zsh-prompt-with-vcs-info.html|Customize your ZSH prompt with vcs_info]] * [[http://eseth.org/2010/git-in-zsh.html|Git Info in Your Zsh Prompt]] * [[http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/|My Extravagant Zsh Prompt]] ===設定=== * [[https://github.com/sindresorhus/pure|Pure]] * [[https://github.com/sorin-ionescu/prezto|Prezto]] * [[https://github.com/robbyrussell/oh-my-zsh|oh-my-zsh]] * [[http://antigen.sharats.me/|Antigen]] =====Tool===== * [[http://xtermjs.org/|Xterm.js]] * [[https://github.com/gnunn1/terminix|Terminix]] * [[https://github.com/shockone/black-screen|Black Screen]] * [[https://hyperterm.org/|HyperTerm]] * [[http://guake.org/|Guake]] * [[https://github.com/lanoxx/tilda|tilda]] * [[http://finalterm.org/|Final Term]] * [[https://launchpad.net/clicompanion|CLI Companion]] * [[https://zellij.dev/|Zellij]] * [[https://github.com/tmux/tmux|tmux]] * [[http://net.tutsplus.com/tutorials/tools-and-tips/intro-to-tmux/|Intro to Tmux]] * [[https://thevaluable.dev/tmux-boost-productivity-terminal/|Boost Your Productivity In The Terminal With tmux]] * [[http://remiprev.github.com/teamocil/|Teamocil]] * [[https://github.com/oxidane/tmuxomatic|tmuxomatic]] * [[http://alexyoung.org/2011/12/19/build-an-ide-with-tmux-and-vim/|Build an IDE with tmux and vim]] * [[https://github.com/seebi/tmux-colors-solarized|Solarize color theme tmux configuration]] * [[http://www.slideshare.net/chenkaie/tmux-rocks|TMUX Rocks!]] * [[https://tmate.io/|tmate]] * [[https://github.com/aaronjanse/3mux|3mux]] * [[http://showterm.io/|showterm]] * [[https://asciinema.org/|Asciinema]] * [[https://github.com/chjj/tty.js/|tty.js]] * [[https://github.com/tkellen/node-liftoff|Liftoff]] * [[https://github.com/sindresorhus/chalk|Chalk]] * [[https://github.com/f/omelette|Omelette.js]] * [[https://github.com/tldr-pages/tldr|tldr]] * [[https://github.com/arturadib/shelljs|ShellJS]] * [[https://github.com/sindresorhus/trash|trash]] * [[https://github.com/andreafrancia/trash-cli|trash-cli]] * [[https://github.com/paradoxxxzero/butterfly|butterfly]] * [[https://github.com/substack/terminal-menu|terminal-menu]] * [[https://github.com/nvbn/thefuck|The Fuck]] * [[http://sourceforge.net/projects/yad-dialog/|YAD]] * [[http://tldr-pages.github.io/|TLDR pages]] * [[https://github.com/p-e-w/maybe|maybe]] * [[https://github.com/stevemao/diff-so-fancy|diff-so-fancy]] * [[https://github.com/nbedos/termtosvg|termtosvg]] === 介面 === * [[https://github.com/chjj/blessed|blessed]] * [[https://github.com/Yomguithereal/react-blessed|react-blessed]] * [[https://github.com/nathanpeck/clui|clui]] * [[https://github.com/oclif/cli-ux/|cli-ux]] * [[https://github.com/vadimdemedes/ink|Ink]] === 排版 === * [[https://github.com/willmcgugan/rich|Rich]] * [[https://github.com/ayonious/console-table-printer|console-table-printer]] === 時間 === * [[https://github.com/WebReflection/monthly|monthly]] === 排程 === * [[https://crontab.guru/|crontab guru]] === 計算 === * [[https://kary.us/nota/|Nota]] ====檔案管理==== * [[https://github.com/sharkdp/bat|bat]] * [[https://the.exa.website|exa]] * [[https://dystroy.org/broot/|Broot]] * [[https://github.com/lecram/rover|Rover]] * [[http://ranger.nongnu.org/|ranger]] * [[https://github.com/dylang/space-hogs|Space Hogs]] * [[https://dev.yorhel.nl/ncdu|NCurses Disk Usage]] * [[https://github.com/wader/fq|fq]] * [[https://github.com/sharkdp/hexyl|hexyl]] * [[https://github.com/binpash/try|try]] * [[https://github.com/bootandy/dust|Dust]] ===搜尋=== * [[https://github.com/BurntSushi/ripgrep|ripgrep]] ===資料=== * [[http://harelba.github.io/q/|q]] (CSV) * [[https://visidata.org/|VisiData]] * [[https://lnav.org/|The Logfile Navigator]] ===設定=== * [[https://www.chezmoi.io/|chezmoi]] ====系統資訊==== * [[https://github.com/KittyKatt/screenFetch|screenFetch]] * [[https://amanusk.github.io/s-tui/|s-tui]] * [[https://github.com/aristocratos/btop|btop++]] ====SSH==== * [[https://wiki.gnome.org/Apps/HotSSH|HotSSH]] * [[http://gravitational.com/teleport/|Teleport]] * 若遇到 ssh 一開始連線時要等一下子,可試試在 sshd_config 裡 設定 UseDNS = no * [[http://ihower.tw/blog/archives/7837|SSH agent forwarding 的應用]] * [[http://c9s.blogspot.tw/2010/02/keychain-ssh.html|使用 keychain 管理 ssh 金鑰]] * [[https://gravitational.com/blog/how-to-ssh-properly/|How to SSH Properly]] * [[https://www.ssh.com/academy/ssh/copy-id|ssh-copy-id]] =====資源===== * [[https://ok-b.org/|OK borg]] * [[https://www.everythingcli.org/|Everything CLI]] * [[http://cli.learncodethehardway.org/|The Command Line Crash Course]] * [[http://talk.linuxtoy.org/using-cli/|像黑客一样使用 Linux 命令行]] * [[https://github.com/jlevy/the-art-of-command-line|The Art of Command Line]] * [[http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized|Colorized man pages: Understood and customized]] * [[https://clementc.github.io/blog/2018/01/25/moving_cli/|Moving efficiently in the CLI]] * [[https://remysharp.com/2018/08/23/cli-improved|CLI: improved]] * [[https://medium.com/@jdxcode/12-factor-cli-apps-dd3c227a0e46|12 Factor CLI Apps]] * [[http://shellhaters.org/|POSIX Shell and Utilities Quick Reference]] * [[https://clig.dev/|Command Line Interface Guidelines]] ====書籍==== * [[http://linuxcommand.org/tlcl.php|The Linux Command Line]] * [[http://tldp.org/LDP/abs/html/index.html|Advanced Bash-Scripting Guide]] * [[http://conqueringthecommandline.com/|Conquering the Command Line]] =====LINUX===== * [[http://linuxcommand.org/|LinuxCommand.org]] * [[http://www.commandlinefu.com/|commandlinefu.com]] * Bash history file united\\ $HOME/.bashrc<code>shopt -s histappend</code> * [[http://portable.easylife.tw/1717|Linux Bash環境下,輸入指令不留痕跡的作法]] * [[http://blog.othree.net/log/2008/10/19/256-color-terminal/|256色終端機環境]] * [[http://linuxtoy.org/archives/top-10-one-liners.html|10 個最酷的 Linux 單行命令]] * 查詢網路連接埠\\ <code>netstat -tunlp</code><code>lsof -i4</code> * 查詢目前外網IP\\ <code>curl ifconfig.me</code> * 使用上個命令參數:\\ 按住Alt再按點為最後的參數,按住Alt再按數字,保持Alt按住最後再按點為第幾個參數。\\ 最後的參數也可以使用''!$'' * [[http://linuxtoy.org/archives/bash-shortcuts.html|讓你提升命令行效率的 Bash 快捷鍵]] * [[http://crashingdaily.wordpress.com/2008/03/06/diff-two-stdout-streams/|Diff two stdout streams]] * 檢查疑似壞軌的裝置 <code>sudo badblocks -v /dev/sdb | tee badblocks.log</code> * CRC驗證 <code>cksfv</code> * [[https://ablagoev.github.io/linux/adventures/commands/2017/02/19/adventures-in-usr-bin.html|Adventures in /usr/bin and the likes]] ====監控==== * [[http://guichaz.free.fr/iotop/|Iotop]] * [[http://nethogs.sourceforge.net/|NetHogs]] * [[https://thedevdash.com/|DevDash]] * [[https://github.com/cjbassi/ytop|ytop]] ====路徑==== * [[http://usagiblog.wordpress.com/2006/02/18/pushd-%E5%92%8C-popd/|pushd 和 popd]] * <code>namei -l /path/to/directory</code> ====檔案操作==== * 清除Windows的Thumbs.db<code>find -depth -type f -name "Thumbs.db" -exec rm {} \;</code> * 刪除空資料夾<code>find -depth -type d -empty -exec rmdir {} \;</code> * 刪除SVN資料夾<code>find -depth -type d -name .svn -exec rm -rf {} \;</code><code>find -depth -type d -name .svn -exec rm -rf {} +</code>\\ [[http://stackoverflow.com/questions/6085156/using-vs-with-exec-in-find|Using ; vs + with exec in find]]<code>find -type d -name .svn -delete</code> * 檔名字串片段取代更名:rename * 轉換檔名編碼或大小寫:convmv * PNG最佳化:optipng * <code>find -newermt yesterday -ls</code> * <code>diff -rq DIR1 DIR2</code> * [[https://github.com/Xfennec/cv|cv]] ===遠端備份=== * [[https://rsync.samba.org/|rsync]] * <code>rsync -avzh --progress -e ssh wm@localhost:~ /home/.</code> * <code>rsync -a src/ dest</code> for renaming folder, a trailing slash on the source avoids creating an additional directory level at the destination. * [[http://jimmac.musichall.cz/blog/2013-08-23-fast-rsync/|Fast rsync]] * [[http://gwokae.mewggle.com/wordpress/index.php/archives/669|SSH 免密碼登入]] * <code>ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub | ssh server-user@server-host "cat >> ~/.ssh/authorized_keys"</code>特別注意的是"Enter passphrase"的地方請直接壓enter,這樣才能不用輸入密碼。 * <code>ssh-copy-id</code> * [[http://blog.caesarchi.com/2013/03/ssh.html|alias machine setting]] * <code>scp -p 帳號@主機位址:/home/who/xxx.file /home/who/.</code> ===常用指令=== * 在Linux中最常使用到的指令,和最常用到的參數。 ※ ls 列出目錄 * -a 連隱藏檔都列出 * -l 列出詳細資訊 * -d 只顯示目錄訊息而非目錄下的檔案 * -R 遞迴列出檔案及子目錄其下的所有子目錄和檔案 ※ pwd 顯示使用者目前的目錄 * -p 則將結徑目錄顯示出來 (專門用在連結目錄) ※ mkdir 建立目錄 * -m 直接設定目錄屬性 (mkdir -m 700 test) * -p 建立目錄中的子目錄 (mkdir -p test1/test2) ※ mv 移動檔案或改檔名 * -f 強制移動 * -i 已存在目的檔,會詢問是否over wirte ※ cp 檔案複製 * -i 若已存在則會詢問要否over write * -f 強制複製或取代 * -a 完全複裂含使用人,屬性一樣的複制過來 (用在root) * -r 用於目錄copy (重要) * -d 若來源檔為連結檔的屬性,則複製連結檔而非檔案本身 * -s 複製成符號連結檔 * -l 複製成硬式連結檔 ※ rm 移除檔案 * -f 強制移除 * -r 用於移除目錄 * -i 會詢問使用者是否真的要移除 ※ cat 看檔 * -n 印出行號 * -A 可列出一些特殊字元 ※ more 分頁顯示檔案內容 * enter 下翻一行 * space 下翻一頁 * :f 顯示目前行數和檔名 * q 離開 * / 尋找字串 * n 符合字串下一筆 * N 反向尋找符合字串下一筆 ※ less 分頁顯示檔案內容 (可上翻) * enter 下翻一行 * space 下翻一頁 * page up 上翻一頁 * page down 下翻一頁 * q 離開 * / 尋找字串 * n 符合字串下一筆 * N 反向尋找符合字串下一筆 ※ chmod, chown 改變檔案屬性, 改變檔案所有人 * -R 連同子目錄都更新為同屬性 ※ file 顯示某個檔案的基本資料 ※ which 尋找某指令在那裡 (依所脫定的環境path去找) ※ whereis 尋找某指令 * -b 只找binary檔 * -m 只找man檔 * -s 只找source檔 * -u 找沒有說明的文件 ※ locate 尋找檔案 (找資料庫) * 使用前先updatedb ※ find 尋找檔案 (找檔案系統) * -name 尋找檔名 * ex: find / -name test1.c ※ df 檢查磁碟使用量 * -a 列出所有使用量 * -h 容量以k, m, g顯示 * -T 連fs name都顯示出來 * -i 使用掉的i-node數量 ※ du 檢查資料夾用量 * -a 列出目錄下所有子目錄檔案的所有用量 * -h 容量以k, m, g顯示 * -s 只顯示目錄總量 (和-a不能共用) ※ ln 製做符號連結和硬式連結 * -s 符號連結 * -f 目標檔有在的話移除再建立 * 不加參數則是建立硬式連結 * ex: ln -s test s_test ※ gzip 建立gun zip壓縮檔 (只能對單一檔案) * -c 壓縮後輸出到銀目,配合資料流重導向 * -d 解壓縮 * -t 檢查有沒有錯誤 * -1~9 壓縮比 * ex:(壓) gzip test * ex:(解) gzip -d test ※ tar 打包加壓縮 (重要) * -j 使用bzip壓縮 * -z 使用gzip壓縮 * -c 建立打包 * -x 解開打 * -v 看檔案打包過程 * -f 輸出檔案的檔名 * -p 包留原來屬性 * ex:(包) tar -zcvf test.tar.gz test/ * ex:(解) tar -zxvf test.tar.gz ====Shell Script==== * [[http://www.tldp.org/guides.html|Advanced Bash-Scripting Guide]] * [[http://subsignal.org/doc/AliensBashTutorial.html|Alien's Bash Tutorial]] * [[http://www.study-area.org/programing/progfr1.htm|Scripts大集合]] * [[http://plog.longwin.com.tw/my_note-unix/2008/03/14/shell_script_top_10_ip_2008|Shell Script: 來最多次的 IP, 抓前 10 名]] * [[http://portable.easylife.tw/2406|Linux commnad get JPEG Quality & jpegicc convert Quality]] * 取得實際執行位置 <code>path=`dirname $0` cd $path</code> * [[http://coolshell.cn/articles/8619.html|你可能不知道的Shell]] * [[http://jeroenjanssens.com/2013/09/19/seven-command-line-tools-for-data-science.html|7 command-line tools for data science]] ===SED=== * [[http://www.rtfiber.com.tw/~changyj/sed/|SED and Regular Expressions]] * [[http://coolshell.cn/articles/9104.html|sed 简明教程]] * 從第N行取到最後一行\\ <code>sed -n 'N,$ p'</code> * 找到SEARCH字串後,印出該行之後的內容\\ <code>sed '0,/SEARCH/d'</code> * 找到SEARCH字串後,去掉該行之後的內容\\ <code>sed '/SEARCH/q'</code> ===AWK=== * [[http://www.grymoire.com/Unix/Awk.html|Awk - A Tutorial and Introduction]] * [[http://portable.easylife.tw/1722|awk直行加總與平均值的計算方式]] =====Windows===== * [[http://bliker.github.io/cmder/|Cmder]] * [[https://github.com/bmatzelle/gow|Gow]] * [[http://pank.org/blog/2009/03/change-cmdexe-default-properti.html|Change cmd.exe default properties]] * [[http://superuser.com/questions/39674/recursively-delete-empty-directories-in-windows|Recursively delete empty directories in Windows]] ====製作檔案清單==== <code> === By niguy === in M$ OS: 開始→執行,"cmd",[Enter] <<tree 指令說明>> 以圖形顯示磁碟機或路徑的資料夾架構。 TREE [drive:][path] [/F] [/A] /F 顯示各資料夾中檔案的名稱。 /A 使用 ASCII 取代延伸字元。 試試看吧... 會用tree指令後,再控制輸出目標 ex: tree c:\mydoc /f >> c:\showtree.txt 下這個指令就會把 c:\mydoc 資料夾的樹狀結構以及其檔案列表 輸出到 c:\showtree.txt 這個檔案裡 (原來的輸出目標是螢幕) 希望幫的上忙..(根本不用其他軟體 XD) dir /b > 檔名 dir/b/s/on/a-d > list.txt 加這些參數比較好看 </code>
computer/cli.txt
· 上一次變更: 2025/02/15 14:01 由
wm
頁面工具
顯示頁面
舊版
反向連結
回到頁頂