Vxworks Command Cheat Sheet May 2026

| Command | Description | |---------|-------------| | i | Show all tasks (ID, name, state, priority, stack used) | | ti <taskId> | Show detailed info about a specific task | | taskSpawn <name>, <prio>, <options>, <stackSize>, <entryFunc> | Create and start a new task | | taskDelete <taskId> | Delete a task | | taskSuspend <taskId> | Suspend a task | | taskResume <taskId> | Resume a suspended task | | taskPrioritySet <taskId>, <newPrio> | Change task priority | | taskLock / taskUnlock | Disable/enable preemption for current task | | taskRestart <taskId> | Restart a task |


| Command | Description | |---------|-------------| | d <address> [,<width>] [,<count>] | Display memory (width: b, w, l). Example: d 0x100000, l, 16 | | dasm <address> [,<count>] | Disassemble from address | | m <address> <value> | Modify memory (write byte/word/long) | | fill <address>, <len>, <value> | Fill memory region with value | | copy <src>, <dest>, <len> | Copy memory | | cmp <addr1>, <addr2>, <len> | Compare two memory regions | | show <symbolName> | Show value of global symbol | vxworks command cheat sheet


VxWorks offers multiple shell interfaces: the traditional C-based shell (sometimes called the VxWorks shell), the Tornado/Target Server remote shell, and the newer VxWorks 6+ shell variants including the vxShell and shell-like utilities accessible via network consoles (telnet, SSH) or serial ports. Access is commonly through a development host connected to the embedded target; commands entered at the shell affect the running target in real time. | Command | Description | |---------|-------------| | i

| Command | Description | |---------|-------------| | version | Show VxWorks version | | sysSuspend | Halt system (debug mode) | | sysResume | Resume from sysSuspend | | reboot | Reboot the system | | printError <errno> | Print description of error number | | errno | Show last error number of current task | | show <kernelObject> | Generic object info (e.g., show tasks, show semaphores) | | checkStack | Check stack usage of all tasks | | spy | Monitor task CPU usage (requires spyLib) | | Command | Description | |---------|-------------| | d


cd "/tffs0/"
dumpCore "crash.dmp"          // Generate dump.
ls                              // Verify file exists.
copy "crash.dmp" "/ata0a/backup/" // Move to safe location.

memShow               // Get current free memory.
taskSpawn("leakTest", 100, 0, 20000, myBadFunction) // Run suspected code.
memShow               // Compare free memory. Shrunk? Leak.
objShowAll            // See if objects (semaphores, msgQs) aren't being deleted.

You are a low-level engineer. You need to peek and poke at physical memory.

| Command | Description | Example | | :--- | :--- | :--- | | d | Display (dump) memory in hex and ASCII. | d 0x00100000, 100 (dump 100 bytes) | | d.b | Display bytes. | d.b 0x80001000 | | d.w | Display words (2 bytes). | d.w 0x80001000 | | d.l | Display long words (4 bytes). | d.l 0x80001000 | | m | Modify memory (interactive). | m 0x80001000 | | m.b / m.w / m.l | Modify bytes/words/longs. | m.l 0x80001000 0xDEADBEEF | | fill | Fill a memory region with a value. | fill 0x80000000, 0x100, 0xFF | | copy | Copy memory region. | copy 0x8000, 0x9000, 0x200 |