不想到处查指令,奈何有几个我也确实记不下来,就在这儿写一下
conda / pip
conda env list
conda env remove -n [ENV_NAME]
pip install [PKG_NAME] -i https://pypi.mirrors.ustc.edu.cn/simple/--trusted-host pypi.mirrors.ustc.edu.cn
阿里云 http://mirrors.aliyun.com/pypi/simple/
中科大 https://pypi.mirrors.ustc.edu.cn/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
terminal
top
lscpu
free -h
watch -d -n 1 nvidia-smi
stat log.txt
CUDA_VISIBLE_DEVICES=0,1,2,3 nohup [COMMAD] > build_log.log 2>&1 &
du -h --max-depth=1 | sort -hr
du -sh path/to/file
| 参数 | 全称 | 含义解释 | |
|---|---|---|---|
| PID | Process ID | 进程ID - 操作系统分配给每个进程的唯一标识符 | |
| USER | User | 用户名 - 启动该进程的用户账户 | |
| PR | Priority | 优先级 - 进程的调度优先级(数值越小优先级越高) | |
| NI | Nice Value | 友好值 | 用于调整进程优先级的数值(-20到19),负值表示更高优先级 |
| VIRT | Virtual Memory | 虚拟内存 - 进程使用的总虚拟内存大小(包括实际使用的内存+保留但未使用的内存) | |
| RES | Resident Memory | 常驻内存 - 进程实际使用的物理内存大小(不包含交换分区) | |
| SHR | Shared Memory | 共享内存 - 多个进程间共享的内存大小 | |
| S | Status | 进程状态 | 常见的状态有: • R - 运行中 (Running) • S - 睡眠中 (Sleeping) • D - 不可中断睡眠 • Z - 僵尸进程 (Zombie) • T - 已停止 (Stopped) |
| %CPU | CPU Percentage | CPU使用率 - 进程占用的CPU时间百分比 | |
| %MEM | Memory Percentage | 内存使用率 - 进程使用的物理内存占总内存的百分比 | |
| TIME+ | CPU Time | CPU时间 - 进程自启动以来使用的总CPU时间(格式:分:秒.百分秒) | |
| COMMAND | Command | 命令名称 - 启动该进程的命令或程序名称 |