[Linux]-常用命令
路径与文件查看
wget xxx
下载xxx
ls
查看目前路径下文件
cd xxx
跳转到xxx路径
du -csh ./*
查看文件夹所占存储容量
ln -s xxxa xxxb
在b创建a的软链接
conda
conda deactivate
退出环境
conda env list
环境列表
conda activate xxx
进入环境
conda remove -n xxx --all
删除环境
conda create -n xxx python=3.6
创建环境
conda install xxx
安装包
anaconda search -t conda xxx
查找要安装的包的版本
GPU
nvidia-smi
查看GPU
gpustat
查看GPU
screen
https://www.cnblogs.com/camilia/p/15960390.html
screen -S xxx
创建环境
ctrl+D+A
切出环境
screen -r xxx
切入环境
进程
htop
查看CPU,需要安装htop库
jobs -l
查看进程
kill -9 pid
结束进程
ps -aux | grep xxx
查找关于xxx的进程
> name.log 2>&1
输出重定向 https://blog.csdn.net/zhaominpro/article/details/82630528
nohup python -u 文件名.py > 日志名.log 2>&1 &
设置程序后台运行
ubuntu
bash
进入Ubuntu
lxrun /uninstall /full
卸载
http://localhost:8888
jupyter默认网页地址
jupyter notebook --port <port_number>
指定端口运行jupyter