Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How to create a file with a given size in Linux?

dd if=/dev/zero of=upload_test bs=1M count=size_in_megabytes
Comment

How to create a file with a given size in Linux?

dd if=/dev/zero of=upload_test bs=file_size count=1
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: terminal git add ssh key 
Shell :: how to grep curl verbose 
Shell :: nmap vulnerabilty scan 
Shell :: list user groups linux 
Shell :: shell nohup 
Shell :: ssh connect with specific port 
Shell :: convert cer to crt linux mint 
Shell :: how to delete a folder from the terminal ubuntu 
Shell :: brew install docker 
Shell :: custom notification with powershell 
Shell :: adb screenrecord 
Shell :: git diff how to exit 
Shell :: pycharm install face_recognition 
Shell :: navigation in react native 
Shell :: how to delete directory 
Shell :: install react native ubuntu 
Shell :: gcloud check region 
Shell :: check file permissions linux 
Shell :: PDF Acrobat ubunut 
Shell :: awk print 3rd column 
Shell :: how to revert a merge locally 
Shell :: powershell git 
Shell :: git reflog reset 
Shell :: new branch not showing in visual studio 
Shell :: How to count number of files in each directory 
Shell :: clone specific branch git 
Shell :: stop apache2 
Shell :: git global settings ssh 
Shell :: github add image to readme 
Shell :: remove port iptables 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =