Renamed /create-file-with-sepcific-size to /create-file-with-specific-size (#23838)
This commit is contained in:
		
				
					committed by
					
						 Randell Dawson
						Randell Dawson
					
				
			
			
				
	
			
			
			
						parent
						
							0b91ec01df
						
					
				
				
					commit
					a2470e8544
				
			
							
								
								
									
										21
									
								
								guide/english/linux/create-file-with-specific-size/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								guide/english/linux/create-file-with-specific-size/index.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| --- | ||||
| title: Create a dummy file with a specific size | ||||
| --- | ||||
|  | ||||
| ## How to create dummy files with a specific size using the "dd" command: | ||||
|  | ||||
| The "dd" command can be used to create a file of a specific size. This is useful if you would like to test download speeds, or any other tests, and need a file of a specific size. | ||||
|  | ||||
| ``` | ||||
| dd if=/dev/zero of=file_name.txt bs=1024k count=10 | ||||
| ``` | ||||
|  | ||||
| This will create a file of 1MB called file_name.txt. | ||||
|  | ||||
| bs is your byte size and count represent the number of blocks. An easy way to look at is 1024K X 10. | ||||
|  | ||||
| Here is an even simpler way to create a 1MB file: | ||||
|  | ||||
| ``` | ||||
| dd if=/dev/zero of=file_name.txt bs=1MB count=1 | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user