Check File Size Command on Linux
The “ls” command is the first command came into the my mind which used for files or directory listing on Linux. Beside that, you can try still check file size on Linux as show below:
- ls -l FILENAME|/bin/awk -F” ” ‘{print$5}’
- ls -l FILENAME | cut -d ” ” -f 5
- du -b FILENAME
- stat -c%s FILENAME
- cat FILENAME |wc -c
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
Basic vmware-cmd VM Management tips
Sometimes using a command line is much more faster than using GUI. Personally I found VMware Virtual Center always have bugs. The following article will guide you how to use vmware-cmd VM management tool for some basic VMware administrative tasks.
The figure below illustrates states, transitions, and state changing commands for virtual machines.

List path and names of registered VM guest vmx files on the present host
For an example:
# vmware-cmd -l
/vmfs/volumes/473ddda7-2a53d446-x25b-001aa0288d45/SLES9/SLES9.vmx
/vmfs/volumes/473ddd52-a6f731ac-3125-001aa0288d45/SLES10/SLES10.vmx
/vmfs/volumes/473dde07-d8a0f854-rqqa-001aa0288d45/WIN2K3-01/WIN2K3-01.vmx
/vmfs/volumes/473dde07-d8a0f854-eqqa-001aa0288d45/WIN2K3-02/WIN2K3-02.vmx
/vmfs/volumes/47f0819a-9f092588-548c-0015174a435a/WIN2K8-01/WIN2K8-01.vmx
/vmfs/volumes/473daqws-2a53d446-625x-001aa0288d45/WINXP-01/WINXP-01.vmx
VMware ESX provide basic power state options include:
Power on — Powers up the virtual machine and boots the guest operating system if the guest operating system is installed. How to power on VM guest using command line:
#/usr/bin/vmware-cmd /vmfs/volumes/473dde07-d8a0f854-rqqa-001aa0288d45/WIN2K3-01/WIN2K3-01.vmx start
Power off — Powers down the virtual machine. The virtual machine does not attempt to gracefully shut down the guest operating system. How to power off VM guest using command line:
#/usr/bin/vmware-cmd /vmfs/volumes/473dde07-d8a0f854-rqqa-001aa0288d45/WIN2K3-01/WIN2K3-01.vmx stop
Suspend — Pauses the virtual machine activity. All transactions are frozen until you issue a Resume command. How to suspend VM guest using command line:
#/usr/bin/vmware-cmd /vmfs/volumes/473ddda7-2a53d446-x25b-001aa0288d45/SLES9/SLES9.vmx suspend
Resume — Allows virtual machine activity to continue, and releases the Suspended state. How to resume VM guest using command line:
#/usr/bin/vmware-cmd /vmfs/volumes/473ddda7-2a53d446-x25b-001aa0288d45/SLES9/SLES9.vmx resume
Reset —Powers down the virtual machine and restarts it. How to reset VM guest using command line:
#/usr/bin/vmware-cmd /vmfs/volumes/473dde07-d8a0f854-rqqa-001aa0288d45/WIN2K3-01/WIN2K3-01.vmx reset
How to check VM guest power state
#/usr/bin/vmware-cmd /vmfs/volumes/473dde07-d8a0f854-rqqa-001aa0288d45/WIN2K3-01/WIN2K3-01.vmx getstate
Read more
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
VMWare ESX Command Guide
I was stuck with VMware ESX 3 NFS problem since 2 days ago. I tried mostly all the possibility about the Linux NFS problem but I missed out VMware ESX firewall. Damm!
Finally I found out this 2 useful link from google.
1. VMware ESX 3.x Command Guide
2. VMware ESX 2.x Command Guide
Possibly Related Posts:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key