Linux 常用命令记录
专栏介绍
本专栏主要记录 Linux 的一些常用命令学习过程!
1. netstat 命令
netstat 命令:显示网络状态
知乎参考 https://zhuanlan.zhihu.com/p/367635200
# 安装
sudo apt install netstat
# 管道过滤搜索
netstat | grep 6006
netstat -an | grep 6006
2. ps 命令
# 检索 tensorboard
ps -ef | grep tensorboard
或者 which tensorboard
# 杀死 tensorboard 所有进程
pkill tensorboard
3. ~/.bashrc
# 打印查看 PATH 路径
echo $PATH
# 编辑 ~/.bashrc --> 快捷键 G(切换至最下) & gg(切换至最上) & /检索词 n(下一个关键词)
vi ~/.bashrc
vi ~/.bashrc
添加代码如下: $PATH 为之前的 PATH路径
功能快捷键
撤销:Ctrl/Command + Z
重做:Ctrl/Command + Y
加粗:Ctrl/Command + B
斜体:Ctrl/Command + I
标题:Ctrl/Command + Shift + H
无序列表:Ctrl/Command + Shift + U
有序列表:Ctrl/Command + Shift + O
检查列表:Ctrl/Command + Shift + C
插入代码:Ctrl/Command + Shift + K
插入链接:Ctrl/Command + Shift + L
插入图片:Ctrl/Command + Shift + G
查找:Ctrl/Command + F
替换:Ctrl/Command + G
生成一个适合你的列表
- 项目
- 项目
- 项目
- 项目
- 项目1
- 项目2
- 项目3
- 计划任务
- 完成任务
创建一个表格
一个简单的表格是这么创建的:
项目 | Value |
---|---|
电脑 | $1600 |
手机 | $12 |
导管 | $1 |
设定内容居中、居左、居右
使用:---------:
居中
使用:----------
居左
使用----------:
居右
第一列 | 第二列 | 第三列 |
---|---|---|
第一列文本居中 | 第二列文本居右 | 第三列文本居左 |
SmartyPants
SmartyPants将ASCII标点字符转换为“智能”印刷标点HTML实体。例如:
TYPE | ASCII | HTML |
---|---|---|
Single backticks | 'Isn't this fun?' | ‘Isn’t this fun?’ |
Quotes | "Isn't this fun?" | “Isn’t this fun?” |
Dashes | -- is en-dash, --- is em-dash | – is en-dash, — is em-dash |
创建一个自定义列表
-
Markdown
- Text-to-HTML conversion tool Authors
- John
- Luke