Linux ext2ed Command
The Linux ext2ed command is an editor program for the ext2 file system.
ext2ed can directly process data on hard disk partitions; this command is provided only 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 individual commands.
- 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; parameters vary depending on the current mode.
- writedata actually modifies the data on the partition only after this command is executed.
- Commands for entering the three ext2 modes
- super enters the main superblock, i.e., Superblock mode.
- group
enters the specified group, i.e., Group mode. - cd
in inode mode, enters the specified directory or file, i.e., Inode mode. - Superblock mode
- gocopy
enters the specified superblock backup. - setactivecopy copies the current superblock to the main superblock.
- Group mode
- blockbitmap displays the block bitmap of the current groupo.
- inode enters the first inode of the current group.
- inodebitmap displays the inode binary code of the current group.
- Inode mode
- dir enters directory mode.
- file enters file mode.
Linux Command Reference