- lsof -i:
<PORT NAME>
- kill $(lsof -t -i:
<PORT NAME>
)
# Add Git branch and color scheme
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
# export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '
# EOF GIT BRANCH
stat --format '%a' <file>
sudo sysctl -w vm.drop_caches=3
sudo lsof -i
sudo netstat -lptu
sudo netstat -tulpn
/etc/apt
sudo chgrp -R www-data ./center-7chip/storage/
sudo chmod -R ug+rwx ./center-7chip/storage/
Rename files
ls | cat -n | while read n f; do mv "$f" "< NEW FILE NAME>"; done
fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p