You are on page 1of 4

CommandList - GRUB Wiki http://grub.enbug.org/CommandList?

action=print

Commands
Here is a list of commands. The 2nd and 3rd columns say whether or not the command
exists within Grub Legacy and Grub 2 respectively. If the command doesn't exist, but
the functionality is implemented using a different command name or method, the column
will contain the keyword 'replaced'.

GRUB GRUB
Command Comments Group
Legacy 2
blocklist yes yes
boot yes yes
bootp yes no network support is missing
cat yes yes
chainloader yes yes ex. of use chainloader (hd0,1)+1
cmp yes yes
now two variables
color yes replaced
(menu_color_{normal,highlight})
Menu
configfile yes yes default file is /grub.cfg
only
debug yes replaced now a variable
default yes yes now a variable
device yes replaced replaced with loopback
dhcp yes no network support is missing
displayapm yes no maybe useless
displaymem yes replaced replaced by lsmmap
embed yes no unnecessary
Menu
fallback yes replaced now a variable
only
find yes replaced replaced with search

1 von 4 07.05.2010 23:42


CommandList - GRUB Wiki http://grub.enbug.org/CommandList?action=print

how useful? "debug" variable
fstest yes no
should be enough
geometry yes no ls should suffice
halt yes yes
help yes yes
Menu
hiddenmenu yes replaced see Hiddenmenu
only
hide yes replaced Now a part of parttool
ifconfig yes no network support is missing
impsprobe yes no useless
initrd yes yes
insmod no yes Insert a module
install yes no unnecessary
ioprobe yes no useless
kernel yes replaced replaced with multiboot, linux, etc.
keystatus no yes Check key modifier status
linux no yes Load a 32-bit linux kernel
Load a 16-bit zImage
linux16 no yes
(Memtest86+)
lock yes replaced Implemented differently
loopback no yes Make a device from a file
ls no yes
lsmod no yes List modules
makeactive yes replaced Now a part of parttool
map yes replaced replaced by drivemap
md5crypt yes no should be implemented as a utility
module yes yes

yes no should be merged into module
modulenounzip
multiboot no yes Load a multiboot kernel

2 von 4 07.05.2010 23:42


CommandList - GRUB Wiki http://grub.enbug.org/CommandList?action=print

pager yes replaced now a variable


Usefull to create/manage partitions
partnew yes no
without additional programs
parttype yes replaced Now a part of parttool
password yes yes Required for security
pause yes no how useful?
quit yes no synonym of halt or reboot?
rarp yes no used?
read yes replaced replaced with dump
reboot yes yes
rescue no yes Enter rescue mode
rmmod no yes Remove a module
root yes replaced now a variable
rootnoverify yes no useless
savedefault yes replaced replace by load_env/save_env
Search devices by a file or a
search no yes
filesystem label
serial yes yes
set no yes Set a variable
setkey yes no useful
setup yes no unnecessary
terminal yes yes timeout support is missing
terminfo yes yes not completed yet
testload yes no how useful?
replaced with videotest (there is
testvbe yes replaced also vbetest command for vbe
specifics)
tftpserver yes no network support is missing
Menu
timeout yes yes
only

3 von 4 07.05.2010 23:42


CommandList - GRUB Wiki http://grub.enbug.org/CommandList?action=print

Menu
title yes yes shortcut support would be nice
only
unhide yes replaced Now a part of parttool
unset no yes Unset a variable
uppermem yes no evil necessity!
vbeprobe yes replaced replaced with vbeinfo

Commands for the menu only
The menu-specific commands have to be used before any others.
The files must be in plain-text format.
# at the beginning of a line in a configuration file means it is only a comment.
Options are separated by spaces.
All numbers can be either decimal or hexadecimal. A hexadecimal number must be
preceded by `0x', and is case-insensitive.
Extra options or text at the end of the line are ignored unless otherwise specified.
Unrecognized commands are added to the current entry, except before entries start,
where they are ignored.

CategoryDocumentation

GrubWiki: CommandList (zuletzt geändert am 2009-12-14 15:15:41 durch VladimirSerbinenko)

4 von 4 07.05.2010 23:42

You might also like