Grub Command Index __file

Source: Internet
Author: User
Tags apm md5 terminates
Command index:
Background Sets the background color for graphics mode.
Blocklist The block manifest token for the output file.
Boot Boot the loaded operating system or sector-chain loader.
BootP The network equipment is initialized by BOOTP.
Cat Displays the contents of the specified file.
Chainloader Load sector chain loader.
Clear Clear the screen.
Cmp Compares two files and reports different information between the two.
Color Change the color of the menu.
ConfigFile Loads the specified file as a configuration file.
Debug Toggle debug mode on/off.
Default Set the NUM item menu to the default value.
Device Declares the actual physical device corresponding to the BIOS drive.
Dhcp The network device is initialized by DHCP.
Displayapm Displays information about the APM BIOS.
Displaymem Displays the memory distribution of the current system that GRUB has determined, including all physical memory regions.
Dump Displays the contents of many files.
Embed If the device is a drive, the stage 1.5 is embedded after the primary boot sector.
Fallback If an error occurs when the current menu item is invoked, it is transferred to the NUM item and then retried
Find Locate the file name on all partitions and display the device that contains the file. If the parameter--set-root is set, it stops immediately after the first match is found, and the device is set to the root.
Fontfile Specify the Chinese font file and switch to the Simplified Chinese display mode.
Foreground Sets the foreground color in graphics mode.
Fstest Toggles the file system test mode.
Geometry Information about the output drive.
Gfxmenu Use the Graphics menu in FILE.
Halt Shut down the system.
Help Displays help information for the internal command.
Hiddenmenu Hides the menu.
Hide Hides the specified partition by placing a hidden flag on the partition type.
Ifconfig Specifies the IP address, subnet mask, gateway, and server address. With no parameters, the current network configuration is displayed.
Impsprobe The CPUs, which conforms to the Intel multiprocessor specification 1.1/1.4, is detected through a number of cyclic operations to enable it to perform its better performance.
Initrd Loads the initialization virtual disk in Linux format and sets the necessary parameters.
Install Install STAGE1 to the specified device, install the block list required to load STAGE2 to STAGE2.
Ioprobe Detects the I/O port number for the specified device.
Kernel Attempt to load the master boot image file.
Lock If the user is not authenticated, the execution of the command is terminated.
Makeactive The root device is placed as active partition.
Map Mapping the device.
Md5crypt Generates a password in a MD5 format.
Module For multiple boot images, load the Startup module file (the contents of the file are not processed, the user must determine the core requirements themselves).
Modulenounzip Similar to ' module ' but automatically disabled for understanding compression.
Pager When there are no parameters, switch page mode.
Partnew Create a new primary partition.
PartType Changes the partition type (type) of the specified partition (part).
Password Set the password.
Pause Terminates the operation of the command and gives a piece of information. Any key is pressed and will continue.
Portmap For port mapping.
Quit Exit from the GRUB command line.
Rarp Initialize network devices with RARP.
Read Reads a 32-bit value from the specified location in memory and displays it in 16-way.
Reboot Reboot the system.
Root Sets the root partition.
Rootnoverify Similar to the ' root ' directive, but does not test the installation of the partition. This is used for some systems that are installed outside of the disk area that GRUB can access, but still need to set the correct root partition. Some of the parameters that need to be installed to determine the partition may be problematic.
Run Run a boot file designed for CD startup (not analog)
Savedefault Sets the current item as the default boot entry.
Scdrom Locate the system's first CD-ROM drive and assign it a drive letter for subsequent use (--install). Alternatively, boot the system with the bootable CD in the drive. (--boot).
Serial Initializes a serial port device.
Setkey Change the keyboard mapping relationship.
Setup Automatically installs Grub.
Splashimage Graphics mode downloads into the background image file.
Terminal Select a terminal.
Terminfo Specifies the capabilities of the terminal.
TestLoad Reads the entire contents of a file (specified by files) in many different ways and compares it to test the file system's code.
Testvbe Tests the VBE mode of the specified (mode).
Tftpserver Specifies the IP address of the TFTP server.
Timeout Sets the number of seconds to wait before automatically starting the default menu.
Title Name the menu item.
Unhide Removes the hidden name of the specified partition (PARTITION) by clearing the hidden flag.
Uppermem Force specifies only (Kbytes) KB of upper memory.
Vbeprobe Detection of VBE information.
blocklist usage: blocklist FILE
Description:
The block manifest token for the output file.
Boot usage: boot
Description:
Boot the loaded operating system or sector-chain loader.
BOOTP Usage: BOOTP [--with-configfile]
Description:
The network equipment is initialized by BOOTP. If the '--with-configfile ' parameter is used, this command will attempt to load a specific configuration file.
Cat usage: cat FILE
Description:
Displays the contents of the specified file.
Chainloader Usage: chainloader [--force] FILE
Description:
Load sector chain loader. If the--force parameter is used, the validity of the boot identity of the sector is ignored.
CMP Usage: cmp FILE1 FILE2
Description:
Compares two files and reports different information between the two.
Color usage: color NORMAL [Highlight]
Description:
Change the color of the menu. Normal is used to specify the color of the menu item when it is unchecked, and highlight to specify the color of the menu item when it is selected. If you do not specify a highlight color, then we will use the inverse of NORMAL. The color value is formatted as "FG/BG". FG and BG are the names of colors, as follows: Black (dark), Blue (blue), green (green), cyan (green), red (red), magenta (pink), Brown (Brown), Light-gray (bright Gray), Dark-gray (dark), Ligh T-blue (light blue), Light-green (light green), Light-cyan (Tanqing), light-red (Minghong), Light-magenta (reddish), yellow (yellow) and white (Bai). Note that the BG value can only be the top eight. In addition, if you want to use the flashing foreground color, you can use the prefix "blink-" before FG.
ConfigFile usage: configfile FILE
Description:
Loads the specified file as a configuration file.
Debug usage: Debug
Description:
Toggle debug mode on/off.
default Usage: default [NUM | ' Saved ']
Description:
Set the NUM item menu to the default value.
Device Usage: device DRIVE Device
Description:
Declares the actual physical device corresponding to the BIOS drive. This command is used only for the Grub command line.
Portmap usage: portmap prog_number Vers_number
Description:
For port mapping.
DHCP usage: DHCP
Description:
The network device is initialized by DHCP.
Splashimage usage: splashimage FILE
Description:
Graphics mode downloads into the background image file.
foreground usage: foreground RRGGBB
Description:
Sets the foreground color in graphics mode. RR stands for red, GG for Green, BB for blue. Note that they all use hexadecimal values.
background usage: background RRGGBB
Description:
Sets the background color for graphics mode. RR stands for red, GG for Green, BB for blue. Note that they all use hexadecimal values.
Clear usage: Clear
Description:
Clear the screen.
DISPLAYAPM usage: DISPLAYAPM
Description:
Displays information about the APM BIOS.
Displaymem usage: displaymem
Description:
Displays the memory distribution of the current system that GRUB has determined, including all physical memory regions.
Dump usage: dump from to
Description:
Displays the contents of many files. Note that from the specified must be a GRUB file, to the specified must be an OS file.
Embed usage: embed stage1_5 DEVICE
Description:
If the device is a drive, the stage 1.5 is embedded after the primary boot sector. If it is a FFS partition, it can be embedded into the hungry ' boot code ' area of the device. and output the number of sectors that Stage 1.5 occupies.
fallback Usage: fallback NUM
Description:
If an error occurs when the current menu item is invoked, it is transferred to the NUM item and then retried
Find Usage: find [--set-root] FILENAME
Description:
Locate the file name on all partitions and display the device that contains the file. If the parameter--set-root is set, it stops immediately after the first match is found, and the device is set to the root.
fstest usage: fstest
Description:
Toggles the file system test mode.
Gfxmenu usage: gfxmenu FILE
Description:
Use the Graphics menu in FILE.
Geometry usage: geometry DRIVE [CYLINDER head Sector [Total_sector]]
Description:
Information about the output drive. In the Grub shell program, you can use this command to set the drive parameter to any value. If you omit the total number of sectors, the value defaults to other parameters.
Halt usage: halt [--NO-APM]
Description:
Shut down the system. If the APM (Advanced Power Management) feature exists, the APM BIOS will be used to shut down the system unless the '--NO-APM ' option is specified.
Help Usage: help [--all] [pattern ...]
Description:
Displays help information for the internal command. To see the Help for all commands, use the '--all ' parameter.
Hiddenmenu usage: hiddenmenu
Description:
Hides the menu.
Hide Usage: Hide PARTITION
Description:
Hides the specified partition by placing a hidden flag on the partition type.
ifconfig usage: ifconfig [--address=ip] [--GATEWAY=IP] [--mask=mask] [--SERVER=IP]
Description:
Specifies the IP address, subnet mask, gateway, and server address. With no parameters, the current network configuration is displayed.
Impsprobe usage: impsprobe
Description:
The CPUs, which conforms to the Intel multiprocessor specification 1.1/1.4, is detected through a number of cyclic operations to enable it to perform its better performance.
INITRD usage: initrd FILE [ARG ...]
Description:
Loads the initialization virtual disk in Linux format and sets the necessary parameters.
Install usage: install [--stage2=stage2_file] [--force-lba] STAGE1 [d] DEVICE STAGE2 [ADDR] [P] [config_file] [Real_config_ FILE]
Description:
Install STAGE1 to the specified device, install the block list required to load STAGE2 to STAGE2. If you use option ' d ', STAGE1 always tries to use a drive that installs STAGE2 instead of a boot disk. STAGE2 will be loaded at the specified address and automatically detected if the address is not declared. If the option ' P ' is used or the configuration file is given, the first block of data in the STAGE2 is modified to fix the profile location used when the actual Stage2 is started. For stage 1.5, the value is the path of Stage 2. If stage 1.5 is installed and the actual configuration file is specified, the profile path is written to Stage2.
Ioprobe usage: ioprobe DRIVE
Description:
Detects the I/O port number for the specified device.
Kernel Usage: kernel [--no-mem-option] [--type=type] FILE [ARG ...]
Description:
Attempt to load the master boot image file. Other items are passed to the kernel as command-line arguments to the kernel. Before using this command, the modules used by the kernel should be loaded back in. Parameter--type is used to describe the type of kernel, including "NetBSD", "FreeBSD", "OpenBSD", "Linux", "Biglinux" and "multiboot". Parameter--no-mem-option is used to describe memory parameters that do not have to be automatically delivered to Linux.
Lock usage: lock
Description:
If the user is not authenticated, the execution of the command is terminated.
makeactive usage: makeactive
Description:
The root device is placed as active partition. Of course, this command is only valid for the PC's hard disk primary partition.
Map usage: map [--status] [--hook] [--unhook] [--rehook] [[--read-only] [--fake-write] [--unsafe-boot] [-- Disable-chs-mode] [--disable-lba-mode] [--heads-per-cylinder=h] [--sectors-per-track=s] TO_DRIVE FROM_DRIVE]
Description:
Mapping the device. This is a useful feature for sector-chain booting, such as DOS. Here, the destination drive (to_drive) can be a disk file, that is, the disk virtualization feature is used. Note that this requires that the disk file be stored continuously in the partition. In addition, if the--read-only parameter is used, the feature will make ' disk ' read-only, and if the--fake-write parameter is used, the feature will cause ' disk ' to be fake, that is, it can "write" data, but it is not recorded on the real disk; If the--unsafe-boot parameter is used, the function will make ' disk ' in true writable; If the--disable-chs-mode parameter is used, the CHS access function will be disabled; If the--disable-lba-mode parameter is used, the LBA Access feature will be disabled; H and S Specify the physical parameters of the virtual disk. If you use--status,--hook,--unhook,--rehook parameters, then the other command-line arguments are ignored.
Md5crypt usage: md5crypt
Description:
Generates a password in a MD5 format.
Module usage: module FILE [ARG ...]
Description:
For multiple boot images, load the Startup module file (the contents of the file are not processed, the user must determine the core requirements themselves). The remaining parameters are passed as ' die-fast ' command-line, like ' kernel ' commands.
Modulenounzip usage: modulenounzip FILE [ARG ...]
Description:
Similar to ' module ' but automatically disabled for understanding compression.
Pager Usage: Pager [FLAG]
Description:
When there are no parameters, switch page mode. If the FLAG parameter is used, it is turned on when ' on ' is turned on, and ' off ' is closed.
partnew Usage: partnew part TYPE START LEN
Description:
Create a new primary partition. Start is the starting sector area code, LEN is the number of sectors it contains, and type is its partition type.
PartType Usage: parttype part TYPE
Description:
Changes the partition type (type) of the specified partition (part).
Password Usage: password [--md5] PASSWD [FILE]
Description:
Set the password. When it is in the first item of the menu file, all interactive menu editing features are disabled, including Edit menu items (' e ')/Enter the command line (' C '). When the password is entered correctly (specified by passwd), load the new menu file (specified by file). If you do not specify a FILE item, the disabled feature above will be enabled. Of course, you can also use this command in a menu item to improve system security. The parameter--md5 description password (PASSWD) is encrypted using Md5crypt.
Pause Usage: pause [Message ...]
Description:
Terminates the operation of the command and gives a piece of information. Any key is pressed and will continue.
quit usage: quit
Description:
Exit from the GRUB command line.
Rarp usage: rarp
Description:
Initialize network devices with RARP.
Read usage: read ADDR
Description:
Reads a 32-bit value from the specified location in memory and displays it in 16-way.
reboot usage: reboot
Description:
Reboot the system.
Fontfile usage: fontfile FILE
Description:
Specify the Chinese font file and switch to the Simplified Chinese display mode.
Scdrom Usage: scdrom [--install], [--BOOTCD]
Description:
Locate the system's first CD-ROM drive and assign it a drive letter for subsequent use (--install). Alternatively, boot the system with the bootable CD in the drive. (--boot).
Run Usage: run FILE
Description:
Run a boot file designed for CD startup (not analog)
Root usage: root [DEVICE [Hdbias]]
Description:
Sets the root partition. Set the root partition to the specified device (DEVICE), and then try to hook up the partition to get the partition size (for delivery in Es:esi, which is required for sector-chained startup). The BSD drive type is used to start the BSD core boot, and to determine the PC partition where the BSD sub partition resides. Optional disk offset parameters for the BSD core to determine how many controllers are in front of the current controller. For example, suppose you have an IDE and a SCSI disk, and the BSD root partition is on the SCSI disk, the disk offset is 1.
rootnoverify Usage: rootnoverify [DEVICE [Hdbias]]
Description:
Similar to the ' root ' directive, but does not test the installation of the partition. This is used for some systems that are installed outside of the disk area that GRUB can access, but still need to set the correct root partition. Some of the parameters that need to be installed to determine the partition may be problematic.
Savedefault usage: savedefault
Description:
Sets the current item as the default boot entry.
Serial usage: serial [--unit=unit] [--port=port] [--speed=speed] [--word=word] [--parity=parity] [--stop=stop] [-- Device=dev]
Description:
Initializes a serial port device. The unit is used to specify the serial device (e.g., 0 = COM1) to be used; Port is used to specify the port number; SPEED is used to specify the rate of communication; WORD length; PARITY is the value of the parity type (take ' no ', ' odd ' and ' even '). ); The stop is the length value of the stopping bit; Option--device is used only for command-line mode to specify the file name of the TTY device. The default value is this, COM1, 9600, 8N1.
Setkey usage: setkey [To_key From_key]
Description:
Change the keyboard mapping relationship. Map the From_key to To_key. The keys here must be letters, numbers, and the following special keys: Escape (Escape), Exclam (!), at (@), numbersign (#), Dollar ($), parenright ()), caret (^), ampersand (&) , asterisk (*), plus (+), percent (%), minus (-), underscore (_), equal (=), parenleft[(], BACKSPACE (BACKSPACE), tab (tabulation), Bracketleft ([), Braceleft ({), bracketright (]), Braceright (}), enter (enter), control (controls), semicolon (;), colon (:), quote ('), Doublequote ("), slash (/), Backquote ('), tilde (~), shift (shifting), backslash (/), Bar (|), comma (,), Less (<), period (.), Greater (>), question (?), Alt (interactive), space (spaces), CapsLock (uppercase), Fx (function key), and delete (delete).
Setup usage: Setup [--prefix=dir] [--stage2=stage2_file] [--force-lba] install_device [Image_device]
Description:
Automatically installs Grub. This command uses a more flexible install command to install GRUB on the specified device. If the imaging device is given, grub will be found on the device, otherwise the default root device is used. The root device can be specified with the root command. If you are sure that the system BIOS should support LBA mode, but GRUB does not work in this mode, specify the '--force-lba ' parameter. If you have a grub installed on the command line but you cannot uninstall the partition where the GRUB program resides, specify the '--stage2 ' parameter.
Terminal Usage: terminal [--dumb] [--no-echo] [--no-edit] [--timeout=secs] [--lines=lines] [--silent] [console] [ Serial] [Hercules] [graphics]
Description:
Select a terminal. When more than one terminal is specified, press any key to continue the operation. If both the console and the serial port are specified, the terminal where you first press the keyboard will be selected first. If no arguments are specified, the command displays the current terminal settings; The parameter--dumb is used to specify a dummy terminal, otherwise it is a VT100 compatible type; If the--no-echo parameter is used, the input characters will not be returned on the screen; If the--no-edit parameter is used, the edit function of the bash-like will be disabled; If the--timeout parameter is used, the command waits a few seconds (specified by secs); You can use--lines to specify the maximum number of rows; You can use the--silent option to turn off message display.
terminfo usage: terminfo [--name=name--cursor-address=seq [--clear-screen=seq] [--ENTER-STANDOUT-MODE=SEQ] [-- EXIT-STANDOUT-MODE=SEQ]]
Description:
Specifies the capabilities of the terminal. If this terminal is VT100 compatible, you can specify a code order (that is, use/e to represent ESC, ^x to represent the control code); The current configuration information is given without giving any parameters.
TestLoad usage: testload FILE
Description:
Reads the entire contents of a file (specified by files) in many different ways and compares it to test the file system's code. The output may seem a bit confusing, but if there is no error, the X and Y in ' i=x, Filepos=y ' will have to be equal in the end. If the test is successful, the next step is to try to load the kernel.
testvbe usage: testvbe MODE
Description:
Tests the VBE mode of the specified (mode).
Tftpserver usage: tftpserver ipaddr
Description:
Specifies the IP address of the TFTP server.
Timeout usage: timeout SEC
Description:
Sets the number of seconds to wait before automatically starting the default menu.
title Usage: title [NAME ...]
Description:
Name the menu item.
Unhide Usage: Unhide PARTITION
Description:
Removes the hidden name of the specified partition (PARTITION) by clearing the hidden flag.
Uppermem usage: uppermem Kbytes
Description:
Force specifies only (Kbytes) KB of upper memory. The address transformation of any system will be canceled.
Vbeprobe Usage: vbeprobe [MODE]
Description:
Detection of VBE information. If a pattern is specified (mode is not empty), only its information is displayed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.