Shell | Learn for Master - Part 2
  • How to keep original file when using gzip/gunzip

    When you use the command gzip file_x , it will compress the data and rename it as file_x.gz.

    In order to keep the original file, we use the following command:

    gzip -c input.txt output.txt.gz

    Similarity, we can keep the origin zip file when we do decompression using gunzip:

    [Read More...]
  • Shell Date Usage Example

    Here are some examples to formate Date in shell
    # get current time in year-month-dateThour:minuteZ format

    # get the time an hour ago

    # Get the date with hour == 0

    #more examples

    [Read More...]
Page 2 of 212