Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
debugfs [[option] device]
System administration command. Provide direct access to data structure of an ext2 or ext3 filesystem in order to debug problems with the device. device is the special file corresponding to the device containing the filesystem (e.g., /dev/hda3). debugfs may be used on a mounted filesystem device.
Use the specified blocksize for the filesystem.
Catastrophic mode. Open the filesystem in read-only mode; do not read the inode and group bitmaps initially.
Read commands from file. Exit when done executing commands.
Specify filesystem device is an ext2 image file created by e2image.
Read the superblock from the specified block.
Open the filesystem in read-write mode.
Execute the given request (see list below) then exit.
Print version number, then exit.
Given the logicalblock of inode file, print the corresponding physical block.
Dump the contents of an inode to standard output.
Change the current working directory to directory.
Change the root directory to be the specified inode.
Close the currently open filesystem.
Clear the contents of the inode corresponding to file.
Dump the contents of inode file to out_file. Change ownership and permissions of out_file to match file if -p is specified.
Set filesystem feature listed on the command line, then print current feature settings. Use - to clear a feature.
Find and allocate first n free blocks starting from goal (if specified).
Find a free inode and allocate it.
Free n blocks beginning from block. Default is 1 block.
Free the inode corresponding to file.
Print a list of commands understood by debugfs.
Do block-to-inode translation.
Print the location of the inode data structure for file.
Create an ext2 filesystem on device.
Remove file and deallocate its blocks.
Change current working directory on native filesystem.
Create a link.
Print the ext3 journal contents to screen or to the specified out_file. Prints the superblock journal by default. Specify other journal information by block or inode. You can also specify a journal_file containing journal data. Use -a to print the contents of descriptor blocks. Use -b to print records referring to a specified block. Use -c to print the hexadecimal and ASCII contents of blocks referenced by the logdump.
Emulate the ls command. Use -l for verbose format and -d to list deleted entries.
Modify the contents of the inode corresponding to file.
Create a special device file.
Do inode-to-name translation.
Open a filesystem. The options are identical to options for debugfs.
Print the current working directory.
Recursively dump directory and its contents to dest_directory on the native filesystem.
Mark n blocks as allocated, beginning from block. Default is 1 block.
Mark in use the inode corresponding to file.
Set superblock field to value. Use -l to print a list of valid fields.
List the contents of the superblock and block group descriptors. Use -h to list only the superblock contents.
Dump the contents of the inode corresponding to file.
Print whether each of n blocks is in use, beginning with block. By default, just check the specified block.
Test whether the inode corresponding to file is marked as allocated.
Remove a link.
Create a file in the filesystem named file, and copy the contents of source_file into the destination file.