Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UEFI commands

1. System Information Commands

CommandDescriptionSyntaxExample
mapList all storage devicesmap [-r]map -r (refresh list)
memmapDisplay memory mapmemmapmemmap > meminfo.txt
smbiosviewView SMBIOS tablessmbiosview [-t TYPE]smbiosview -t 1 (BIOS info)
dmpstoreManage UEFI variablesdmpstore [-all]dmpstore -all
versionShow firmware versionversionversion

2. Memory Operations

CommandDescriptionSyntaxExample
mmModify memory (hex editor)mm <addr> [width]mm 0x80000000 4 (edit dword)
memDisplay memorymem <addr> <length>mem 0x80000000 10
dmemFormatted memory dumpdmem <addr> <length>dmem 0xFFF00000 20

Memory Width Specifiers:

  • 1 = byte
  • 2 = word (2 bytes)
  • 4 = dword (4 bytes)
  • 8 = qword (8 bytes)

3. File System Commands

CommandDescriptionSyntaxExample
lsList filesls [path]ls fs0:\EFI
cdChange directorycd <path>cd fs1:\
editText editoredit <file>edit startup.nsh
hexeditHex editorhexedit <file>hexedit config.bin
cpCopy filecp <src> <dest>cp kernel.efi fs0:\
rmDelete filerm <file>rm old.efi
mkdirCreate directorymkdir <path>mkdir \Backup

4. Boot Management

CommandDescriptionSyntaxExample
bcfgManage boot entriesbcfg boot [options]bcfg boot dump
bootExecute EFI binaryboot <file>boot \EFI\BOOT\bootx64.efi
exitExit shellexitexit

Common bcfg operations:

bcfg boot add 0 fs0:\EFI\grub\grubx64.efi "Linux"  # Add entry
bcfg boot mv 3 0                                   # Reorder entries
bcfg boot rm 2                                     # Remove entry```

## 5. Network Commands
| Command | Description | Syntax | Example |
|---------|-------------|--------|---------|
|ifconfig | Configure network interfaces | `ifconfig <interface> [options]` | `ifconfig -a` |
|ping     |Network test |   ping <IP>  |  ping 192.168.1.1
|dhcp     |Get IP address  |dhcp [-r] <iface>   | dhcp -r eth0
|tftp     |File transfer   |tftp [-g] <IP> <file> |  tftp -g 10.0.0.1 kernel.efi

## 6. Miscellaneous Commands
| Command | Description | Syntax | Example |
|---------|-------------|--------|---------|
|reset | Reset system | `reset` | `reset` |
|startup.nsh | Execute script | `startup.nsh` | `startup.nsh` |
|timer | Measure time | time [HH:MM:SS] | time 14:30:00 |