コンテンツ
ラズベリーパイで動作確認済です!
duとは
「du」プログラムは、ディレクトリごとの容量を表示するためのプログラムです。
インストール
ラズベリーパイでduプログラムは最初からインストールされているので、すぐに使うことができます!
プログラムの実行例
このプログラムは、以下のように使用します。
du
それではラズベリーパイで実行してみましょう。
実行
2280 ./Documents/Scratch Projects 256 ./Documents/Greenfoot Projects/tutorial/tutorial-files 312 ./Documents/Greenfoot Projects/tutorial 32 ./Documents/Greenfoot Projects/API/resources 236 ./Documents/Greenfoot Projects/API/greenfoot 372 ./Documents/Greenfoot Projects/API 4 ./Documents/Greenfoot Projects/scenarios/ants/sounds 44 ./Documents/Greenfoot Projects/scenarios/ants/images 92 ./Documents/Greenfoot Projects/scenarios/ants 4 ./Documents/Greenfoot Projects/scenarios/LTA/sounds 264 ./Documents/Greenfoot Projects/scenarios/LTA/images 288 ./Documents/Greenfoot Projects/scenarios/LTA 88 ./Documents/Greenfoot Projects/scenarios/lunarlander/sounds 40 ./Documents/Greenfoot Projects/scenarios/lunarlander/images 156 ./Documents/Greenfoot Projects/scenarios/lunarlander 540 ./Documents/Greenfoot Projects/scenarios 1316 ./Documents/Greenfoot Projects 60 ./Documents/BlueJ Projects/people 16 ./Documents/BlueJ Projects/appletdemo 20 ./Documents/BlueJ Projects/file-reader 20 ./Documents/BlueJ Projects/debugdemo 32 ./Documents/BlueJ Projects/shapes 32 ./Documents/BlueJ Projects/people2 36 ./Documents/BlueJ Projects/picture 48 ./Documents/BlueJ Projects/LED-Button 16 ./Documents/BlueJ Projects/hello 360 ./Documents/BlueJ Projects 3960 ./Documents 27404 .
duプログラムによってラズベリーパイのディレクトリごとの容量が表示されました
「du」にはいろいろな使い方があります。記事を読むだけでなく手を動かして調べてみると、コンピュータを具体的に学ぶ良い経験になります!!