143
Formatting a file system permanently deletes all files in the file system. If a startup configuration file
exists in the file system, back up the file if necessary.
You can format a file system only when no other users are accessing the file system.
Examples
# Format file system flash:.
<Sysname> format flash:
All data on flash: will be lost, continue? [Y/N]:y
Formatting flash:... Done.
# Format the file system on the third partition of the USB disk.
<Sysname> format usba2:
All data on usba2: will be lost, continue? [Y/N]:y
Formatting usba2:... Done.
gunzip
Use gunzip to decompress a file.
Syntax
gunzip file
Views
User view
Predefined user roles
network-admin
Parameters
file: Specifies the name of the file to be decompressed. This argument must have .gz as the
extension.
Usage guidelines
This command deletes the specified file after decompressing it.
Examples
# Decompress file system.bin.gz:
1. Before decompressing the file, you can display files whose names start with the system. string.
<Sysname> dir system.*
Directory of flash:
1 -rw- 20 Jun 14 2012 10:18:53 system.bin.gz
1048576 KB total (472840 KB free)
2. Decompress the file system.bin.gz.
<Sysname> gunzip system.bin.gz
Decompressing file flash:/system.bin.gz..... Done.
3. Verify the decompress operation.
<Sysname> dir system.*
Directory of flash:
1 -rw- 0 May 30 2012 11:42:25 system.bin