Linux folder size

I love linux systems, but some aspects of using of this system and lack of appropriate tools will always make me irritated. One of the thing I always missing is the analog of Norton Commander (like in MS DOS). The good but definitely not the total alternative is Midnight commander. If ever used both products you definitely know how Midnight Commander (even latest 4.8.2) is very simplified in comparison with old Norton Commander 3.0 which is almost 12 years old (and I’m not talking about 5.5 version of NC).

So as you see the most advanced file manager for Linux console available still cannot perform such a simple task like show size of specified folder.

There are many separate Linux utills but I will bring the example which I like most. First change the folder you wish to check size for:

cd /yourfoldername

after type

du -h | tail -n 1

It will show the size of the folder including the files in sub-folders. See the screen shot below.

Show folder size of folder in linux system

Nginx and PHP-FPM for heavy load wordpress web server with high traffic 2000+ concurrent connections

Nginx and PHP-FPM for heavy load wordpress web server with high traffic 2000+ concurrent connections.

php

To make it to read short I will not be describing all the time I lost during last half year trying to find out the “right settings” for the high traffic WordPress web server running I was responsible for, and this was on the top of my primary job, and that’s why it took so much time of blind testing and playing parameters with live production server, and as you understand I have no ability to make sharp actions and have long downtime, while having only 30-40 minutes per day. Anyway I found all needed information, tested everything, it works, I’m happy.

Continue reading

Format disk in Linux system

Adding and formatting new disk is possible in Linux.

Here the basics. You can use fdisk command.

Type fdisk – l

Fdisk command in Linux

The other way to see presented disks in Linux system is to type  ls /dev/sd*

Disk levices list in Linux

Now you know which disks and partitions exist on the Linux system, and what you would like to format.

The tool mkfs is enough to progress simple formatting. For example to format your partition on disk is necessary

mkfs -t ext4 /dev/sda1