LINUX 如何在1s內創建上百G的超大文件?

LINUX 如何在1s內創建上百G的超大文件?

LINUX 如何在1s內創建上百G的超大文件?


資料來源:https://mp.weixin.qq.com/s?__biz=MzI5NDY1MjQzNA==&mid=2247496491&idx=4&sn=8060fc231033ee76525c0c1393c75210&chksm=ec5d2c56db2aa5403b6cc966abbeefad20d617cf18670306f6867a1d15483b01504c62b3e92f&scene=126&sessionid=1597192432&key=360754e56e033319235fa2baf6e1965a5650d33251d56302d14f98168a84bcdbd8338970ef86694645d7f11291c9ece05629efc8a7c735974ee805f543916565e4f6c61d0264fa68e5bf5f87977ad35c&ascene=1&uin=MjIwODk2NDgxNw%3D%3D&devicetype=Windows+10+x64&version=62090529&lang=zh_TW&exportkey=AuASXR1332r7WFSc%2FfpeDG8%3D&pass_ticket=HI%2FiSLnCK9%2BbhFKMLb9viZVwVFVqhRap6Ui1ipBZmbrY0wT5z84Tyq7zQZy%2BM89T



dd if=/dev/zero of=big_file count=10 bs=1G

fallocate -l 10G big_file

truncate -s 10G big_file

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *