Linux ext2ed Command

Linux 命令大全Linux Commands Collection

The Linux ext2ed command is an ext2 file system editor program.

ext2ed can directly process data on hard disk partitions; this command is only provided by Red Hat Linux.

Syntax

ext2ed

General commands:

  • setdevice[device name] Specifies the device to process.
  • disablewrite Sets ext2ed to read-only state.
  • enablewrite Sets ext2ed to read-write state.
  • help[command] Displays help for an individual command.
  • next Moves to the next unit; the unit varies depending on the current mode.
  • prev Moves to the previous unit; the unit varies depending on the current mode.
  • pgup Moves to the next page.
  • pgdn Moves to the previous page.
  • set Modifies the current data; the parameters vary depending on the current mode.
  • writedata Only after executing this command will the data in the partition actually be modified.
  • Commands for ext2 to enter the 3 modes
  • super Enters the main superblock, i.e., Superblock mode.
  • group<number> Enters the specified group, i.e., Group mode.
  • cd<directory or file> In inode mode, enters the specified directory or file, i.e., Inode mode.
  • Superblock mode
  • gocopy<backup number> Enters the specified superblock backup.
  • setactivecopy Copies the current superblock to the main superblock.
  • Group mode
  • blockbitmap Displays the block bitmap of the current group.
  • inode Enters the first inode of the current group.
  • inodebitmap Displays the inode bitmap of the current group.
  • Inode mode
  • dir Enters directory mode.
  • file Enters file mode.

Linux 命令大全Linux Commands Collection

Other extensions