File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ Ubuntu相关
4242
4343 sudo mount - t vboxsf ubuntu_share / mnt/ share/
4444
45+ # 映射capslock 为 ctrl
46+ setxkbmap - layout us - option ctrl:nocaps
47+
4548 # 文件字符串批量替换
4649 grep oldString - rl / path | xargs sed - i " s/oldString/newString/g"
4750
@@ -70,6 +73,10 @@ Ubuntu相关
7073 # 或者apt-get intsall jq
7174 jq . << < ' { "foo": "lorem", "bar": "ipsum" }'
7275
76+
77+ # 进程相关
78+ dmesg | egrep - i - B100 ' killed process' # 查看被杀死进程信息
79+
7380 代码搜索用ag, 比ack快
7481
7582.. code-block :: python
172179
173180 # 指定文件类型diff
174181 git diff master -- ' *.c' ' *.h'
182+ # 带有上下文的diff
183+ git diff master --no-prefix -U1000
175184
176185
177186用markdown文件制作html ppt
191200* ` 《Linux工具快速教程》 < https://linuxtools-rst.readthedocs.io/zh_CN/latest/> ` _
192201* ` 《slide show》 < http://slideshow-s9.github.io/> ` _
193202* ` 《markdown sheet》 < http://commonmark.org/help/> ` _
203+ * ` 《CONQUERING THE COMMAND LINE》 < http://conqueringthecommandline.com/book/> ` _
You can’t perform that action at this time.
0 commit comments