Command Line Tools
A preserved cluster of undergraduate notes grouped by subject area.
23 notes
1. Shell Basic
帮助 File System Search Pipeline globbing 其它常用命令
2. Shell Script
内建命令 变量 字母数字及下划线组成,并且变量名的第一个字符不能为数字 赋值时,变量和等号之间不要有空格,等号和值之间也不要有空格,否则 shell 不会认为变量被定义 流程控制 系统变量 环境变量 环境变量:当 shell 程序启动自动设置的一组变量,可以在 /.bash profile 或者 /.bashrc 中设置 shebang #!/bin/bas...
3. Shell UI
Escape Code | Escape Sequence | Representation | | | | | \a | alert | | \n | newline | | \t | Horizontal Tab | | \v | Vertical Tab | | \',\",\? | Symbol | | \nnn | ASCII in octal |...
4. Job Control
Jobs Control C signal Python signal Multiplexes Remote System Deamon systemd on Linux launchd on Macos sysctl lauchctl
5. Data Wragling
Text handling Math handling
6. Terminal
快捷键 | | 功能 | | | | | ctrl + a | 移动到行首 | | ctrl + e | 移动到行尾 | | ctrl + u | 删除当前光标前面的文字 | | ctrl + l | 清屏 | | ctrl + r | 搜索历史记录 | | ctrl + z | SIGSTOP 挂起 | | ctrl + c | SIGINT | | ct...
7. Security
Encode User
8. Network
Download
9. Debugging
System C time gdb profile Python static analysis pdb profiles Trace profiles Line profiles: add @profile before function
10. Git
规范化 Commit commitizen cz conventional changelog conventional changelog cli conventional changelog standard version Github hub commit message Angular Git Commit Guidelines commitize...
11. Make
参数 | 参数 | | | | | | f, file | 指定其它文件作为 Makefile | | C, directory | 切换目录 | | d, debug | 输出 debug 信息 | | s, silent | 不显示命令 | | r, no builtin rules | 禁用内置隐含规则 | | R, no builtin variab...
12. Vim
13. VM and Docker
Docker alias dk='docker' alias dka='docker attach' alias dkb='docker build' alias dkd='docker diff' alias dkdf='docker system df' alias dke='docker exec' alias dkE='docker exec it'...
14. 多媒体转换
视频 ffmpeg ffmpeg formats 查看支持容器 ffmpeg codec 查看支持编码 ffmpeg encoders 查看编码器 ffmpeg hide banner | 参数 | 效果 | | | | | i | 输入文件 | | c copy | 直接复制 | | c:v libx264 | 视频编码器 | | c:a acc | 音频...
15. Linux
Linux 私房菜 命令 <! more 基础命令 | Command | Parameters | Description | Order | | | | | | | locale | | 语系 | en US.utf8,zh CN.utf 8 | | date | | | scale=3 | | cal | | | | | bc | | 计算器 | |...
16. Comments and Autodoc
注释风格 File Comments Python C++ C++ Doxygen Python Epytext: javadoc 风格 reST: Sphinx Google Numpy Modifiers TODO DEPRECATED 工具 sphinx Modify source/conf.py import file language: langu...
17. Formats and Linters
Formats C/C++ 代码风格:Google, linux, gnu In Vscode: "C Cpp.clang format style": "{ BasedOnStyle: Google, IndentWidth: 4}" Python 代码风格:pep8 Frontend Prettier Lint 静态代码检测 pylint eslint
18. File Hierarchy Standard
File Hierarchy Link to File Hierarchy NotAwesome User File Hierarchy Standard Introduction NotAwesome User File Hierarchy Standard aims to help user better manage their resources a...
19. Crawler
Python nodename 选取此节点的所有子节点 / 从根节点选取 // 从匹配选择的当前节点选择文档中的节点,而不考虑它们的位置 . 选取当前节点 .. 选取当前节点的父节点 @ 选取属性 /bookstore/book[last() 1] 选取属于 bookstore 子元素的倒数第二个 book 元素 /bookstore/book[price...
20. Args
Shell Python argparse
Setup: MacOS
Setup: Ubuntu
Platform Virtual Machine on macosx Install virtualbox Download Ubuntu from Tsinghua Image LTS version 16.04 18.04 <! more Guest Additions CD Image: Device Insert Guest Additions CD...
Setup: PHP
Set up VM <! more Set up Apache Set up Apache Virtual Hosts Set up TLS/SSL certificate Set up MySQL Set up PHP Set up phpMyadmin Set up Composer To use Composer: Search on packagis...