How to Execute Commands in Webmin Command Shell
How to Execute Commands in Webmin Command Shell
This feature is very helpful to restart the services if you don’t have access to SSH. Example : On my webmin server SSH was down and I was successfully able to restart the service from Command Shell.
1. Login to your webmin control panel using any of the below urls
https://ServerIPaddress:10000
OR
https://ServerHostname:10000

Login to Webmin Control Panel
2. Enter username and password to access webmin control panel. Server username is ‘root’ and enter the root password of the server to login.

Webmin Login Page – Enter Usename and password
3. Expand “Others” and you can see “Command Shell” feature. Click on “Command shell”
4. Enter the command you want to execute in the text field like shown in the below picture. I tried to execute the linux command “w” and the output was displayed instantly.

Execute Commands in Command Shell Webmin
Type “free -m” if you want to check the memory usage on your Webmin Server

Example 2 – Checking Memory Usage in Webmin Command Shell
You can also restart services, install packages etc via Webmin Command shell. Just enter the command in the text field and click on “Execute Command”. “Clear History” will remove all the command history in Command Shell.
Use “cd” command if you want to change directory.