Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the disk space management tool of Linux system

2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use the disk space management tools of the Linux system. I hope you will get something after reading this article. Let's discuss it together.

1.fdisk-l

Disk / dev/sda: 120.0 GB, 120034123776 bytes = > 120g hard disk capacity

14593 heads, 63 sectors/track, 14593 cylinders = > 255 heads, 63 sectors, 14593 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes = > the capacity of each cylinder is 8225280

= > Storage capacity = number of tracks (cylinder) × number of heads × number of sectors x bytes per sector

14593 × 255x63 × 5129111.788G

Cylindrical capacity = number of heads × number of sectors x bytes per sector 255 × 63 × 512 8225280 B

In fact, hard disk manufacturers usually calculate according to 1G=1000.

Disk identifier: 0xc3ffc3ff

A partition represented by Device Boot Start End Blocks Id System = > start starts with X cylinder

/ dev/sda1 * 1 3824 30716248 + 7 HPFS/NTFS

/ dev/sda2 3825 10199 51200000 7 HPFS/NTFS

/ dev/sda3 10200 12596 19253902 + 5 Extended

/ dev/sda4 12597 14593 16040902 + 12 Compaq diagnostics

/ dev/sda5 10200 10211 96358 + 83 Linux

/ dev/sda6 10212 10454 1951866 82 Linux swap / Solaris

/ dev/sda7 10455 11548 8787523 + 83 Linux

/ dev/sda8 11549 12596 8418028 + 83 Linux

2.df: you can check the disk usage and where the file system is mounted through this command

Filesystem 1K-blocks Used Available Use% Mounted on

/ dev/sda7 8649544 1986948 6223220 25 /

Tmpfs 1033648 0 1033648 / lib/init/rw

Udev 10240 136 10104 / dev

Tmpfs 1033648 0 1033648 / dev/shm

/ dev/sda5 93307 19997 68493 23% / boot

After reading this article, I believe you have a certain understanding of "how to use the disk space management tools of Linux system". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for your reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report