高效使用工具
目录跳转
| Text Only |
|---|
| pushd xxx
popd
cd - # 返回上一个目录
|
tmux
| Text Only |
|---|
| https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/
依次包括关系:
session > window > pane
tmux new -t ${session_name} # 启动一个session,指定名字
C-b d # 退出session,session在后台运行
C-b s # 列举所有的session,可以选择切换
C-b % # 竖着切分windows,创建新的pane
C-b " # 横着切分windows,创建新的pane
C-b 方向键 # 切换pane
Ctrl+b x:关闭当前面板。
C-b q # 显示面板编号
C-b c # 创建新的window
C-b p # 前一个window
C-b n # 下一个window
C-d # 关闭window
C-b w # window 切换
C-b ? # 帮助
tmux kill-session -t ${session_name} # 杀死session
tmux attach -t ${session_name} # 进入session
tmux rename-sesstion -t ${old_name} ${new_name} # 更改名字
C-b [ # 进入翻屏模式,q退出
|
https://z.itpub.net/article/detail/C59A269E832907CB638881D21A64E135
valgrind
| Text Only |
|---|
| valgrind --track-origins=yes --keep-stacktraces=alloc-and-free --leak-check=full
|
conan
https://docs.conan.io/2/tutorial/consuming_packages/use_tools_as_conan_packages.html
z
https://github.com/rupa/z
fzf
fzf 配合fish快捷键使用
- CTRL-T- Paste the selected files and directories onto the command-line
- CTRL-R- Paste the selected command from history onto the command-line
- ALT-C- cd into the selected directory
vim $(fzf)
vim中使用 :FZF
ripgrep
https://einverne.github.io/post/2019/09/ripgrep-recursively-searches-directories-using-regex-pattern.html
rg命令
cloc 代码统计
cloc –exclude-dir=build,ouput,encryption,verify_licence .
ubuntu 磁盘使用分析
sudo apt install baobab
常用命令
- Ctrl-z 挂起程序
- jobs 查看后台程序
- fg 将后台程序到前台运行
- bg