Vxworks Command Cheat Sheet Page

| Command | Description | |---------|-------------| | memShow | Show system memory usage (total, free, allocated) | | m <address> | Display memory contents (hex & ASCII) | | d <address> | Display memory as bytes | | l <address> | Display memory as longs | | mfill <addr> <len> <value> | Fill memory with a value | | mcopy <src> <dst> <len> | Copy memory region | | checkStack <taskId> | Check task stack usage |


Before typing commands, you must understand the two primary shell modes:

Most engineers work in the C interpreter mode (default in most builds). In this mode, you can type almost any C expression.

Pro Tip: Commands that return 0 mean "OK" (success). Non-zero returns usually indicate an error code.


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

| 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 |

Boot-time configuration determines available commands and drivers.

  • sysRestart / reboot / shutdown — Reboot and restart commands.

  • sysHwInit / sysHwInit2 — Hardware initialization hooks in BSP code (developer-level). Before typing commands, you must understand the two

  • Best practice: document bootlines and keep a reproducible image; include fallbacks (e.g., network boot) for recovery.

    Interacting with devices, block storage, and network interfaces is common.

  • iosOpen / iosClose / iosRead / iosWrite — Low-level device I/O functions available in the API and often used via driver utilities.

  • gei, e1000, uboot environment commands, or BSP-specific network commands — Device utilities vary by BSP and driver set. Most engineers work in the C interpreter mode

  • ld — The loader command to load modules (object modules, shared objects) into target memory.

  • objShow / symShow — Inspect loaded objects and symbol tables.

  • mkfs / fsShow / ioLib — Filesystem utilities depend on configured file systems (TFS, dosFs, NFS clients).

  • Best practice: consult BSP docs for device naming conventions; use symbol and object inspections to debug module load failures.

    | Command | Description | |---------|-------------| | ifShow | Show network interfaces (IP, MAC, status) | | routeShow | Show routing table | | ping “host” [count] | ICMP echo | | inetStatShow | Show all network connections (TCP/UDP) | | arpShow | Show ARP cache | | netStat | Network statistics (depending on build) |