Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux generate file of size

# Create a file of 5MB
# -s, --size
# truncate command extends or truncates a file to match
# the given size, if the file doesn't exist it creates it
truncate -s 5M dest-file.txt
Source by ostechnix.com #
 
PREVIOUS NEXT
Tagged: #linux #generate #file #size
ADD COMMENT
Topic
Name
8+4 =