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.
Contents
- Overview
- Commands- testEvaluate Expression
- addrouteAdd a Routing Table Entry
- arpAccess the ARP table
- base64decBase64 Decode
- base64encBase64 Encode
- basenameExtract Base File/Directory Name
- breakTerminate a Loop
- catConcatenate Files
- cdChange Current Working Directory
- cmpCompare Files
- cpCopy Files
- dateShow or set the date and time
- ddCopy and Convert Files
- delrouteDelete a Routing Table Entry
- dfShow Volume Status
- dirnameExtract Path to a File/Directory
- dmesgDump Buffered SYSLOG Output
- echoEcho Strings and Variables
- envShow Environment Variables
- execExecute User Code
- exitExit NSH
- exportSet an Environment Variable
- exprEvaluate expressions
- freeShow Memory Manager Status
- getGet File Via TFTP
- helpShow Usage Command Usage
- hexdumpHexadecimal Dump of File or Device
- ifconfigManage Network Configuration
- ifdownTake a network down
- ifupBring a network up
- insmodInstall an OS module
- irqinfoShow Interrupt Status
- critmonShow Critical Monitor Status
- killSend a signal to a task
- losetupSetup/teardown the Loop Device
- lnLink to a File or Directory
- lsList Directory Contents
- lsmodShow information about installed OS modules
- md5Calculate MD5
- mb,- mh,- and- mwAccess Memory
- psShow Current Tasks and Threads
- mkdirCreate a Directory
- mkfatfsCreate a FAT File System
- mkfifoCreate a FIFO
- mkrdCreate a RAMDISK
- mountMount a File System
- mvRename a File
- nfsmountMount an NFS file system
- nslookupLookup a network address
- passwdChange a User’s Password
- pmconfigManage Power Management Subsystem
- poweroffShut the system down
- putSend File Via TFTP
- pwdShow Current Working Directory
- readlinkShow target of a link
- rebootReboot the system
- rmRemove a File
- rmdirRemove a Directory
- rmmodRemove on OS Module
- routeShow routing table
- rptunStart/Stop the OpenAMP RPC Tunnel
- setSet a Variable
- shExecute an NSH Script
- shutdownShut the system down
- sleepWait for Seconds
- telnetdTime Start the Telnet Daemon
- timeTime execution of another command
- truncateSet the Size of a File
- umountUnmount a File System
- unamePrint system information
- unsetUnset an Environment Variable
- uptimeShow how long the system has been running
- urldecodeURL Decode
- urlencodeURL Encode
- useraddAdd a New User
- userdelDelete a user
- usleepWait for Microseconds
- wgetGet File Via HTTP
- xdHexadecimal Dump of Memory
- Built-In Commands
- pingand- ping6Check 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