ubuntu: relevant and useful commands

Example of the Command FIND

How to find all the Logs on your server

find / -iname '*.log'

find /var/spool/asterisk/monitor/ -iname '*0414*'

Change server Timezone

dpkg-reconfigure tzdata

Restart Openbravo Tomcat

/etc/init.d/openbravo-tomcat restart

To Check if your server is 32 or 64 bits

uname -a

It will say "i686" for 32bit and "x86_64" for 64bit.

Check Folder Size

du --max-depth=1 /var | sort -n -r


du --max-depth=1 --block-size=1M /var | sort -n -r


du –max-depth=1 /home/backups/ | sort -n -r | head -10

Leave a Reply

Your email address will not be published. Required fields are marked *