Files
knowledge-base/AI/mechine learning/常用 Command.md
T
2026-08-25 22:28:36 +08:00

121 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 常用 Command
> 来源:原 mongodb 集合 `t_blog` · 整理日期:2026-08-25
> 分类 ID:`20230409` · 排序:13 · 文章数:3
## 目录
1. [Docker](#docker)
2. [Git](#git)
3. [Linux](#linux)
---
## 1. Docker
<sub>bid: `2023040920175500000000000033`</sub>
## docker 常用 命令
### 1. 删除 None 镜像
```
docker images | grep none | awk '{print $3}' | xargs docker rmi
```
---
## 2. Git
<sub>bid: `2023040920200300000000000034`</sub>
该写点什么么...
https://biprogy.box.com/s/f0du3rvo97p4rvazzfrq4235djxqjsvj
---
## 3. Linux
<sub>bid: `2023040920200900000000000035`</sub>
### 1. linux系统版本
```bash
uname -a
cat /proc/version
```
### 2. CPU
```bash
echo "wuli cpu geshu:"
cat /proc/cpuinfo | grep "physical id" | wc -l
echo "wuli cpu geshu:"
cat /proc/cpuinfo | grep "processor" | wc -l
echo "per cpu has cores:"
cat /proc/cpuinfo | grep "cpu cores" | uniq
```
```bash
cat /proc/cpuinfo | grep "name" | cut -f2 -d: | uniq -c
```
```bash
lscpu
```
```bash
top -c
```
## 3. memory
```bash
cat /proc/meminfo
free
```
### 4. 更改hostname
```bash
vi /etc/hostname
```
```bash
vi /etc/hosts
```
```bash
reboot
```
## 5. netstat
```bash
netstat -ano | findstr 5000
taskkill /f /pid 104152
```
## 6. ps查看进程
- 查看正处于Running的进程
```bash
ps -ef
```
- 查看所有的进程
```bash
ps aux
```
## 7. mount
mount是Linux下的一个命令,它可以将分区挂接到Linux的一个文件夹下,从而将分区和该目录联系起来,因此我们只要访问这个文件夹,就相当于访问该分区了。
- show all the mount
```bash
mount -l
```
其中 tmpfs 是临时文件系统,而tmpfs是一个文件系统,并不是块设备,只是安装它,就可以使用了。tmpfs是最好的基于RAM的文件系统
## 8. alias
- alias [别名]='真实命令'
```bash
alias ku="kubectl"
```
---