NuttShell (NSH)
The NuttShell is a very complete shell system to be used in NuttX, similar to bash and other similar options. It supports a rich set of included commands, scripting and the ability to run your own applications as “builtin” (part of the same NuttX binary). NSH is implemented as an application where most of the functionality is part of the library called nshlib.
As such, NSH is completely optional and can be disabled so that NuttX directly
starts a given task instead of the main nsh
application.
- Overview
- Commands
test
Evaluate Expressionaddroute
Add a Routing Table Entryarp
Access the ARP tablebase64dec
Base64 Decodebase64enc
Base64 Encodebasename
Extract Base File/Directory Namebreak
Terminate a Loopcat
Concatenate Filescd
Change Current Working Directorycmp
Compare Filescp
Copy Filesdate
Show or set the date and timedd
Copy and Convert Filesdelroute
Delete a Routing Table Entrydf
Show Volume Statusdirname
Extract Path to a File/Directorydmesg
Dump Buffered SYSLOG Outputecho
Echo Strings and Variablesenv
Show Environment Variablesexec
Execute User Codeexit
Exit NSHexport
Set an Environment Variablefree
Show Memory Manager Statusget
Get File Via TFTPhelp
Show Usage Command Usagehexdump
Hexadecimal Dump of File or Deviceifconfig
Manage Network Configurationifdown
Take a network downifup
Bring a network upinsmod
Install an OS moduleirqinfo
Show Interrupt Statuscritmon
Show Critical Monitor Statuskill
Send a signal to a tasklosetup
Setup/teardown the Loop Deviceln
Link to a File or Directoryls
List Directory Contentslsmod
Show information about installed OS modulesmd5
Calculate MD5mb
,mh
,and
mw
Access Memoryps
Show Current Tasks and Threadsmkdir
Create a Directorymkfatfs
Create a FAT File Systemmkfifo
Create a FIFOmkrd
Create a RAMDISKmount
Mount a File Systemmv
Rename a Filenfsmount
Mount an NFS file systemnslookup
Lookup a network addresspasswd
Change a User’s Passwordpmconfig
Manage Power Management Subsystempoweroff
Shut the system downput
Send File Via TFTPpwd
Show Current Working Directoryreadlink
Show target of a linkreboot
Reboot the systemrm
Remove a Filermdir
Remove a Directoryrmmod
Remove on OS Moduleroute
Show routing tablerptun
Start/Stop the OpenAMP RPC Tunnelset
Set a Variablesh
Execute an NSH Scriptshutdown
Shut the system downsleep
Wait for Secondstelnetd
Time Start the Telnet Daemontime
Time execution of another commandtruncate
Set the Size of a Fileumount
Unmount a File Systemuname
Print system informationunset
Unset an Environment Variableurldecode
URL Decodeurlencode
URL Encodeuseradd
Add a New Useruserdel
Delete a userusleep
Wait for Microsecondswget
Get File Via HTTPxd
Hexadecimal Dump of Memory- Built-In Commands
ping
andping6
Check Network Peer
- Configuration Settings
- The NSH Library and NSH Initialization
- NSH Commands
- NSH “Built-In” Applications
- Customizing NSH Initialization
- Shell Login
- Running Applications from NSH