Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ mkfile サイズ[b|k|m|g] ファイル名
- # 1KBのファイルを作成する
- $ mkfile 1k bar.txt
- # 1MBのファイルを作成する
- $ mkfile 1m foo.txt
- # 1GBのファイルを作成する
- $ mkfile 1g hoge.txt
- # ファイルサイズを確認する
- $ ls -lh
- -rw------- 1 donchan922 staff 1.0K 6 9 17:46 bar.txt
- -rw------- 1 donchan922 staff 1.0M 6 9 17:46 foo.txt
- -rw------- 1 donchan922 staff 1.0G 6 9 17:47 hoge.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement