This guide goes over the best practice to set a few ready-to-use BASH commands.
Time to read:
This guide goes over the best practice to set a few ready-to-use BASH commands. The best practice guidelines are taught how to have ready BASH commands that we will be able to send to a group of devices or to a specific device in seconds.
Set a list of commands using the Control center approach
It is recommended to pre-configure a set of ready-to-use BASH commands for your project. Those commands may help to achieve better control and remote support in many situations.
Under the Control Center category, we are able to add and save any BASH command and run it on our devices' fleet. Here are a few examples of common BASH commands you can save in your Control center to have better control over your devices.
Restart your device software application:
service MyApp restart
another method is to kill the process and start it again:
killall -9 MyApp;service MyApp start
Check app service status:
service MyApp status
Reboot the device:
Checking the currently running processes:
Checking our application process:
ps -aux | grep MyApp
Check network interfaces:
List files in specific path:
ls -la /home/myapp/
Read specific file content:
Check device last reboot/uptime: