Sunday, June 5, 2011

Super blocks

*. Super blocks are used to store file system informations
*. Each file system has a superblock

A superblock stores the following informations

*. file system type
*. Size
*. Status
*. Information about other metadata structures

Thursday, June 2, 2011

Split command

Split command is used to split a larger file into smaller ones

syntax: split -bytes = 1m path to large files path/prefix

$ split –bytes=1m /path/to/large/file /path/to/output/file/prefix

* You can change the output file size by changing the –bytes=1m to your preference. You can use b, k, or m. b represent bytes, k represent kilobytes, m represent megabytes.

To restore the original file, you can use cat command.
To join all the smaller file to restore the original file type:-

$ cat prefix* > NEWFILENAME


Eg:

split --bytes=1m thetruth_wrdp2.sql thetruth_wrdp2.sql_