This article provides some guidance and examples of commands that can be sent through the command interface to Linux Devices. To see example commands for Windows and Android Devices, see the following articles:
Timeouts
If a supplied command does not return within 60 seconds, the UI will display a timeout message.
If a command does not return at all (e.g. it spawns a sub-prompt for further input), subsequent use of the command interface will fail until 5 minutes has passed. At this point, the interface kills the process so that further commands are possible.
Linux Examples
Example Command |
Description |
firefox www.bsquare.com & |
Runs firefox (if installed), pointing to the Bsquare website* |
su sq1 -c "DISPLAY=:0.0 firefox www.bsquare.com" & |
Runs firefox (if installed), pointing to the Bsquare website* |
which <filename> |
Finds path to specified executable |
getent passwd |
Lists all users |
ls <folder> |
Shows the contents of the specified folder |
cat <file> |
Shows the contents of the specified file |
ip -o link |
Displays all the MAC Address information |
cat /proc/cpuinfo |
Lists the system information |
cat /home/<user>/.bashrc |
Lists the contents of the .bashrc file |
shutdown -r +1 |
Restarts the device |
* Experimentation might be needed, depending on the program and system. It may be needed to specify the display (as per the second example) and/or it may be necessary to execute the process as a specific user.