Built-in git GUI
gitkUse colorful git output
git config color.ui trueShow log on just one line per commit
git config format.pretty onelineUse interactive adding
git add -iSOLUTION:
rfkill block bluetoothmysqldump -u root -p --opt [database name] > [database name].sql
scp [database name].sql [username]@[servername]:path/to/database/
mysql -u root -p newdatabase < /path/to/newdatabase.sql
mysqldump & gzip, The Best ComboBackup:
mysqldump -u username -p your_db_name | gzip -9 > your_db_name.sql.gz
Restore:
zcat your_db_name.sql.gz | mysql -u username -p your_db_name
TL;DR
Use the --remove flag, similar to how the PPA was added:
sudo add-apt-repository --remove ppa:whatever/ppa
...
You can also remove PPAs by deleting the .list files from /etc/apt/sources.list.d directory.
Last but not least, you can also disable or remove PPAs from the "Software Sources" section in Ubuntu Settings with a few clicks of your mouse (no terminal needed).
netstatsudo netstat -tunlp
-t - Show TCP ports.
-u - Show UDP ports.
-n - Show numerical addresses instead of resolving hosts.
-l - Show only listening ports.
-p - Show the PID and name of the listener’s process. This information is shown only if you run the command as root or sudo user.
sssudo ss -tunlp
ssis newnetstat. It lacks some of thenetstatfeatures but exposes more TCP states and it is slightly faster.
lsofsudo lsof -nP -iTCP -sTCP:LISTEN
# or
sudo lsof -i tcp:80 -n -P
lsofis a powerful command-line utility that provides information about files opened by processes.
-n - Do not convert port numbers to port names.
-p - Do not resolve hostnames, show numerical addresses.
-iTCP -sTCP:LISTEN - Show only network files with TCP state LISTEN.