Reading list Switch to dark mode

    Creating file that will not grow beyond a size defined

    Updated 4 April 2014

    #dd if=/dev/sda of=./file.txt bs=1M count = 100

    (to create a file of 100 MB size)

    # mkfs.ext4 -t ext4 file.txt

    #mkdir /tmp/file

    #sudo mount -t ext4 file.txt /tmp/file

    Start your headless eCommerce
    Find out More

    #touch /tmp/file/file1

    This will create a file which will not grow beyond 100 MB.

    very useful when we are creating log files or file on which we want to set limit.

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home