ctrl + L
# ls without order, first 10 elements
ls -U | head -10
sudo dpkg -i nomefile.deb
# example: you start a tensorboard on pincopallo remote server and on port remoteport, you can't access it
# from your local machine but you can access it with ssh from your local machine, you can do a forward to
# make the service on pincopallo:remoteport available at 127.0.0.1:6006 from local browser
ssh gberardi@pincopallo -N -f -L localport:127.0.0.1:remote_port
check folders space
# options: -h human readable, -s no subfolders
du -sh <folder-name>
check disks space
df -h
Venv activation
alias script1='source /home/gberardi/dev/venv-name/.venv-name/bin/activate'
Port forwarding (local tensorboard from remote), $1 and $2 are local and remote ports
tunnel(){
ssh "username@server" "-N" "-f" "-L" "$1:127.0.0.1:$2"
}