Unix, Linux, DevOps , Cloud computing and BigData Knowledge-Base


Working with Parted – Linux Partition tool

1. Introduction to Partitioning Parted is  a  program to manipulate disk partitions. It supports multiple partition table formats, including MS-DOS and GPT.  It is useful for creating space for new operating systems, reorganising disk usage, and copying data to new hard disks.


5 Linux Command to Summarize file Contents

 wc command::                                      Print newline, word, and byte counts  sum command::                                    Print checksum and block counts  cksum command::                                 Print CRC checksum and byte counts  md5sum command::                             Print or check MD5 digests  sha1sum  and sha2 commands::           Print or check SHA-1 digests and SHA-2 digests


‘cksum’: Print CRC checksum and byte counts

‘cksum’ computes a cyclic redundancy check (CRC) checksum for each given FILE, or standard input if none are given or for a FILE of ‘-‘. Synopsis:      cksum [OPTION]… [FILE]…


‘split’: Split a file into pieces

‘split’ creates output files containing consecutive or interleaved sections of INPUT (standard input if none is given or INPUT is ‘-‘). Synopsis:      split [OPTION] [INPUT [PREFIX]] By default, ‘split’ puts 1000 lines of INPUT (or whatever is left over for the last section), into each...


‘tail’: Output the last part of files

‘tail’ prints the last part (10 lines by default) of each FILE; it reads from standard input if no files are given or when given a FILE of ‘-‘. Synopsis: tail [OPTION]… [FILE]… If more than one FILE is specified, ‘tail’ prints a one-line header consisting...


‘fold’: Wrap input lines to fit in specified width

‘fold’ writes each FILE (‘-‘ means standard input), or standard input if none are given, to standard output, breaking long lines.  Synopsis:      fold [OPTION]… [FILE]… By default, ‘fold’ breaks lines wider than 80 columns.  The output is split into as many lines as necessary. ‘fold’...


‘pr’: Paginate or columnate files for printing

‘pr’ writes each FILE (‘-‘ means standard input), or standard input if none are given, to standard output, paginating and optionally outputting in multicolumn format; optionally merges all FILEs, printing all in parallel, one per column.  Synopsis:      pr [OPTION]… [FILE]… By default, a 5-line header...


‘numfmt’: Reformat numbers

‘numfmt’ reads numbers in various representations and reformats them as requested.  The most common usage is converting numbers to/from _human_representation (e.g.  ‘4G’ ==> ‘4,000,000,000’).      numfmt [OPTION]… [NUMBER]    ‘numfmt’ converts each NUMBER on the command-line according to the specified options (see below).  If no NUMBERs...


‘fmt’: Reformat paragraph text

‘fmt’ fills and joins lines to produce output lines of (at most) a given number of characters (75 by default).  Synopsis:      fmt [OPTION]… [FILE]…    ‘fmt’ reads from the specified FILE arguments (or standard input if none are given), and writes to standard output.   ...


Get every new post delivered to your Inbox

Join other followers

Page 2943 of 2989