Collection of commands that I use often
ls -lh example.txt
- In the current directory
du -sh .[^.]* * | sort -h
- Recursively search in the current directory, for files larger than 100MB
find . -type f -size +100M -exec du -h {} + | sort -h
sudo du -sh /home/* | sort -h
df -h
df -h directory_name
du -sh .
docker run --gpus all -v /mnt/sda/{your_directory}:/home/{your_username} -d --name {container_name} {image_name}
docker run --gpus all -d --name {container_name} {image_name}
docker exec -it {container_name} /bin/bash
git rm -r --cached .
git add .
git commit -m "Reapply .gitignore"
git clone https://github.com/username/myproject.git myproject-clone
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
# install without interaction
./Miniconda3-latest-Linux-x86_64.sh -b -u
# conda bash init
~/miniconda3/bin/conda init
conda create -n env_name python=3.9
conda install python=3.X
conda config --prepend pkgs_dirs [PATH]
conda config --prepend envs_dirs [PATH]
sudo apt-get install tmux
poetry env remove $(which python)
curl -sSL https://install.python-poetry.org | python3 -