Linux 相关命令

vim:

https://www.runoob.com/linux/linux-vim.html

SCP

Download files

scp -P <Port> <User>@<IP/Host>:<File> <DestinationDirectory>

Download Directories

scp -rP <Port> <User>@<IP/Host>:<Dir> <DestinationDirectory>

Uploading Files

scp -P <Port> <File> <User>@<IP/Host>:<DestinationDir>

Uploading Directories

scp -rP <Port> <Dir> <User>@<IP/Host>:<DestinationDir>

Git配置ssh key

https://docs.github.com/en/authentication/connecting-to-github-with-ssh

Unzip .gz file

gzip -d file.gz

https://linuxize.com/post/how-to-unzip-gz-file/

Run .sh file shell script

chmod +x script.sh

Output the message in both console and a file

make | tee output.txt

https://unix.stackexchange.com/questions/274168/display-output-from-command-and-save-to-file

List Directories and size

du -h --max_depth=1 | sort -h

https://linuxconfig.org/list-all-directories-and-sort-by-size

Git

Multiple github accounts

https://stackoverflow.com/questions/3860112/multiple-github-accounts-on-the-same-computer

服务器使用

怎么熟练使用服务器并避免给实验室添麻烦呢? - Seasoning的回答 - 知乎 https://www.zhihu.com/question/506241986/answer/3457669268

GPU运行脚本

占用GPU显卡资源的脚本 - lixinliang - 博客园

Conda

Install:

https://repo.anaconda.com/archive/index.html

wget -c [url]

Run the script in terminal

Conda 的 yml 文件 Conda/PIP 国内镜像源的添加_conda 安装yaml文件怎么设置镜像-CSDN博客