วิธีดู size ของ directory ใน ubuntu

25 Mar 2016,
Share: 

โดยทั่วไปถ้าเราต้องการจะดูว่ามีไฟล์อะไรอยู่ใน path ปัจจุบันบ้างเราก็จะใช้คําสั่ง ls

ระบบก็จะแสดงชื่อ file หรือ directory พร้อมทั้งบอก size และข้อมูลเบื้องต้นอื่นๆ แต่ directory จะไม่บอกขนาด ถ้าเราต้องการจะดูละจะทําอย่างไร ไม่ยากครับวิธีดูคือ ใช้คําสั่งนี้

sudo du -sh *

ระบบก็จะโชว์ ข้อมูลมาให้เราดังรูปครับ

Image


Copyright © 2019 - 2025 thiti.dev |  v1.55.1 |  Privacy policy | 

Build with ❤️ and Astro.

Github profile   Linkedin profile   Instagram   X profile   Nostr   Youtube channel   Telegram   Email contact   วงแหวนเว็บ