Linux: Remove WHM Disk Warning

cpanel_logo

 

There are many times I am seeing the error below when accessing to the WHM.

Sorry for the inconvenience!
The filesystem mounted at / on this server is running out of disk space. cPanel operations have been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition.

And even after I have cleared the disk space from the server, WHM doesn’t allow me to access to WHM interface.

To get this issue fixed, you may remove the following files and retry again,

/root/.cpanel/datastore/_bin_df_-P_-k_-l

Linux: disk usage command – du

du is a standard unix command to calculate disk space from Unix/Linux system.

To get the sum space of the directory,

du

To get sum space with human-readable,

du -sh

To get sub directories space

du -sh *

To get sub directories space with all hidden folder,

du -sk .[!.]* * | sort -n

MickGenie.com Linux Cheat Sheet

MickGenie.com Cheat Sheet:
Arrow up – list the history command that just done.
Ctrl + Z – Put the current process to the background.

date – display the server date and time.
df – show the disk space detail.
dmesg – print the boot message.
du – estimate the disk usage for the path.
finger – similar to who but you could use ‘finger <username>’ to show the selected user.
free – show free memory on the server.
hostname – show the hostname of your current server.
last – display who ever logged into the server and information
ps – showing all CPU processes.
pwd – show the current path.
uname – showing server information such as kernel, operating system, etc.
uptime – showing the server up time.
w – advance who option to show the server uptime, load and who is logged into the server.
who – show who is logged into the server.
whoami – show your current username.

man [command] – show the description of a command.
whatis [command] – show short description of a command.

more [filename] – show one screen of the file and you are able to scroll it.
less [filename] – similar to more but you are allow to scroll back.
head [filename] – show first 10 line of the file content.
tail [filename] – show last 10 line of the file content.
cat [filename] – print all file content.

top – show top process with server information.
kill – kill a certain process
killall [processname] – kill all of the process such as httpd, mysql, etc.
skill – kill all of the process from a user.

ls – list file.
dir – simple list file.
cd – change directory.
rm – remove a file
mkdir – create a folder.
rmdir – remove a folder.
touch – create a file.
mv – move or rename a file.
cp – copy a file.

tar zcf – create tar.gz file
tar cf – create tar file
tar zxf – untar tar.gz file
tar xf – untar tar file
gzip – create gz file
gunzip – unzip gz file