Built-in git GUI
gitk
Use colorful git output
git config color.ui true
Show log on just one line per commit
git config format.pretty oneline
Use interactive adding
git add -i
SOLUTION:
rfkill block bluetooth
mysqldump -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).
netstat
sudo 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.
ss
sudo ss -tunlp
ss
is newnetstat
. It lacks some of thenetstat
features but exposes more TCP states and it is slightly faster.
lsof
sudo lsof -nP -iTCP -sTCP:LISTEN
# or
sudo lsof -i tcp:80 -n -P
lsof
is 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.