データを空にするには「: >」を使う。 $ touch test.dat $ du -h test.dat 4.0K test.dat $ echo 'test1' >> test.dat $ echo 'test2' >> test.dat $ echo 'test3' >> test.dat $ cat test.dat test1 test2 test3 $ du -h test.dat 8.0K test.dat $ : > test…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。