目录
Tmux
install
apt install tmux
start new
tmux
attach
tmux a # (or at, or attach)
detach
tmux detach
list sessions
tmux ls
kill session
tmux kill-session
kill all
tmux kill-server
Mamba
install
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
export env
mamba env export -n oldenv > oldenv.yaml
for different build (arm vs x86)
mamba env export --no-builds --from-history -n oldenv > oldenv.yaml
import env
mamba env create -n newenv -f oldenv.yaml
gcloud
install
https://cloud.google.com/sdk/docs/install?hl=zh-cn#deb
send/receive files much faster (the files may not be under the same user’s home direction)
gcloud compute scp LOCAL_FILE_PATH VM_NAME:REMOTE_DIR
SSH
Connect via pem file (0400 permissions)
ssh -i /path/file.pem [email protected]
Copies from remote to local
scp user@server:/dir/file.ext dest/