A small reference
Useful commands.
A few things I like to keep within reach. Notes for working with terminal sessions and Python environments.
tmux
DocumentationKeep multiple terminal programs running in one session. For the shortcuts below, press Ctrl + b, release, then press the next key.
Ctrl + b, then d- Detach from the current session.
Ctrl + b, then "- Split the pane into top and bottom panes.
Ctrl + b, then %- Split the pane into left and right panes.
Ctrl + b, then $- Rename the current session.
Ctrl + b, then :resize-pane -U 5- Resize the pane up by five cells. Use -D, -L, or -R for other directions.
tmux a -t SESSION- Attach to a named session.
tmux a- Attach to the most recently used session.
tmux ls- List active sessions.
Another useful reference: tmux shortcuts and cheatsheet
Conda
DocumentationManage packages and keep project environments separate.
conda create --name myenv- Create an environment.
conda create -n myenv python=3.12- Create an environment with a specific Python version. Replace 3.12 with the version your project needs.
conda info --envs- List environments. You can also use conda env list.
conda list- List packages in the active environment.
conda env remove --name myenv- Remove the named environment.
conda clean -a- Remove unused packages and caches. Review the confirmation before proceeding.