display docker containers not wide terminal
docker ps | less -Sget ip of all running containers
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
create a branch from a specific commit
git checkout commit_id
git checkout -b new_branch_name
git push -u origin new_branch_namepull from a another branch - only specific commit
git cherry-pick <commit-hash>copy files from server A to B (remote)
scp -r -i ~/.ssh/key.pem /home/user/Desktop/source/ user@host_address:/var/www/destination/pathcopy files from server B (remote) to A
scp -r user@host_address:/var/www/source /home/user/Desktop/copy files from server A to B (remote) using rsync and pem key for ssh
rsync -avh -e "ssh -i ~/.ssh/example.pem" /home/user/Desctop/source root@192.168.0.100::/var/www/destination/path
querying DNS
dig example.comlinux alias
alias l="ls -al"