Showing posts with label Filesystem commands. Show all posts
Showing posts with label Filesystem commands. Show all posts

Tuesday, September 21, 2010

Filesystem commands

Command
Filesystem
Description
cd
All
Changes the working directory.
delete
All
Deletes a file. On Class A filesystems, this command marks the file for deletion; the squeeze command purges deleted files from the filesystem. On Class B filesystems, the files disappear from directory listings (unless you use /all), but there is no way to reclaim the space, short of erasing the entire filesystem. On Class C filesystems, the file is deleted immediately.
dir
All
Displays the directory's contents. The /all option shows deleted and undeleted files.
erase
A, B
Erases the entire filesystem.
format
A, C
Formats the filesystem.
fsck
C
Verifies the filesystem's consistency.
mkdir
C
Makes a new subdirectory.
more
All
Displays a file's contents.
pwd
All
Displays the current directory.
rename
C
Renames a file.
rmdir
C
Deletes a directory.
show file descriptors
All
Shows open file descriptors.
show file information
All
Shows file size, location, etc.
show file system
All
Shows available filesystems on the device.
squeeze
A
Makes more room by moving files to the beginning of the flash memory, removing deleted files, and removing files with errors.
tftp-server
All
Sets the device to act as a TFTP server.
undelete
A, B
Recovers any deleted files. Erased files cannot be undeleted.
verify
All
Verifies that a file's checksum is correct.