A collection of common commands usefull from developer perspective.
Bash
Fixing encoding to unix format on all files e.g. “*.sh”
Bash
find . -type f -name "*.sh" -exec dos2unix {} +
BashCalculating directory size in human readable format
Bash
du -sh directory/
# 79G directory/
BashCopy directory via ssh recursively
Bash
scp user@s*.mydevil.net:/home/files /local/dir
BashPHP Storm
Mysql Dump
In order to use MySql dump – add path in your DB configuration:
Bash
\\wsl.localhost\Ubuntu\usr\bin\mysqldump
BashGit
Modify last commit date
In order to modify last commit date we can use ammend with date function:
Bash
git commit --amend --date="$(date -d 'yesterday 23:00' -R)" --no-edit
Bash