add others: Create a large amount of dummy files

This commit is contained in:
onceupon 2018-01-03 13:56:20 +08:00 committed by GitHub
parent df9707071d
commit 478751bba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1438,6 +1438,14 @@ scp -r directoryname user@ip:/path/to/send
```bash ```bash
$ split -d -l 1000 bigfilename $ split -d -l 1000 bigfilename
``` ```
##### Create a large amount of dummy files (e.g 100000 files, 10 bytes each):
```bash
#1. Create a big file
dd if=/dev/zero of=bigfile bs=1 count=1000000
#2. Split the big file to 100000 10-bytes files
split -b 10 -a 10 bigfile
```
##### Rename all files (e.g. remove ABC from all .gz files) ##### Rename all files (e.g. remove ABC from all .gz files)
```bash ```bash