Create a large dummy file using Mac OS X terminal command
Posted on : Sat, 17th Oct 15 10:39 am UTC
If you want to create a large dummy file with any extension e.g. : .txt, .dmg, .pdf, .mp4, .mov, .zip, .rar, .mk4 you can do it using mkfile command in Terminal App.
Steps to create a large file :
- Open Terminal App.
- Move to the location where you want to create your file using cd (change directory command)
- Now use command mkfile <size>G your-file-name.ext ( example : mkfile 4G mymovie.mov => will create a movie file with name mymovie of size 4GB)
- Hit Enter, It will take some time to complete the process (depends on the file size)
- When the command completes the prompt should return and file would be created.
mkfile command also works on other Unix based or Linux Operating Systems.
mission is to share varied knowledge in technical
and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without
re-inventing the wheel. Technical posts include Learnings, Tutorials
, Video Tutorials, Code Snippets, Tips-n-tricks.
Follow us : Facebook
- Google +