最直接的就是du命令,它是“disk usage”的缩写,用来查看文件或文件夹的磁盘使用情况。比如,我有个习...
To access a file or directory on our command line, we must specify its file path or directory path. The path can be written in two ways: absolute or relative. To learn more about this, check out this blog: Linux - Create, Delete, Copy, and Move Files and Directories. Prerequisite To...
2) bootingandpartitioning softwarefromotherOSs(e.g., DOS FDISK, OS/2FDISK)Command(mforhelp): <==等待你的输入! 输入m 后,就会看到底下这些命令介绍 Command (mforhelp): m<==输入 m 后,就会看到底下这些命令介绍 Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos ...
Command (m for help): m <== 输入 m 后,就会看到底下这些命令介绍Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition <==删除一个partition l list known partition types m print this menu n add a new partition <==新增一个...
Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 2.3M 794M 1% /run /dev/sda1 50G 20G 28G 42% / tmpfs 3.9G 128K 3.9G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sdb1 100G 50G 45G 52% /...
/data # redis-cli -c -a redis2023 Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe. 127.0.0.1:6379> 127.0.0.1:6379> get k1 -> Redirected to slot [9614] located at 10.42.2.229:6379 "v1" # -c 采用集群策略连接,设置数据会自动...
w write table to disk and exit <==将刚刚的动作写入分割表 x extra functionality (experts only) 离开fdisk 时按下q,那么所有的动作都不会生效!相反的, 按下w就是动作生效的意思。 Command (m for help): p <== 这里可以输出目前磁盘的状态 ...
至于 /proc 里头会列出一堆“No such file or directory” 的错误,因为是内存内的程序,程序执行结束就会消失,因此会有些目录找不到,是正确的! 与df 不一样的是,du 这个指令其实会直接到文件系统内去搜寻所有的文件数据,所以指令的运行会执行一小段时间。此外,在默认的情况下,容量的输出是以 KB 来设计的, ...
Command(mforhelp):p<==这里可以输出目前磁盘的状态 Disk/dev/hdc:41.1GB,41174138880bytes<==这个磁盘的文件名与容量255heads,63sectors/track,5005cylinders<==磁头、扇区与磁柱大小 Units=cylindersof16065*512=8225280bytes<==每个磁柱的大小 Device Boot Start End Blocks Id System/dev/hdc1*11310439183Linux...
Command (m for help): p Disk /dev/vdb: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x9277b47b ...