Some useful commands for ESXi

We can use df -h command to get the file system usage.

When can we use it-Most of the time I had to use it to check the file system usage on vCenter appliance.


We can use find command to find files in the ESXi or vCenter file system

In my below example I have used it to find all the vmx files


find / -name *.vmx


We can use cat command to open a file and read the data

In my below example I have opened one of the main log file(vmkernel.log) using cat viewer


We can use grep command to search something inside the file

In my below example I used grep commands to find logged errors in the vmkernel.log


We can use ps command to fine running vm’s process