Posts

Which Linux Version is running

Sometimes you need to know, which Linux distro you are running, and especially, which version:

lsb_release -a

The answer will look like:

No LSB modules are available
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Finding the biggest folders

If you have on a server a folder which is to big, and you want to know, which file is the reason for a problem, use du

du -m | sort -n | tail -n 10

for finding the 10 biggest folders.
(repeat this step in the biggest folder again to find the “problem folders”)