Linux tips

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
Tried several ways and finally solved it through the following way
sudo gksu gedit /etc/mysql/my.cnf
#bind-address =
bind-address = localhost
and restarted
sudo /etc/init.d/mysql restart
it worked
Check root partition for linux
Just to share a magic command to know where all your disk space goes:
sudo du -hsx /* | sort -rh | head -n 40
You end up with a pretty neat report like this:
16G /home
5.3G /var
2.6G /usr
840M /run
277M /root
171M /lib
59M /tmp
25M /sbin
19M /boot
16M /bin
9.6M /etc
136K /
16K /lost+found
8.0K /media
4.0K /srv
4.0K /opt
4.0K /mnt
4.0K /lib64

Then you can start again from another folder:
sudo du -hsx /home/* | sort -rh | head -n 35