From 478751bba08000c445dff959b7f6fa9cb4a9db9e Mon Sep 17 00:00:00 2001 From: onceupon Date: Wed, 3 Jan 2018 13:56:20 +0800 Subject: [PATCH] add others: Create a large amount of dummy files --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d85b5a9..dd00554 100644 --- a/README.md +++ b/README.md @@ -1438,6 +1438,14 @@ scp -r directoryname user@ip:/path/to/send ```bash $ 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) ```bash