or root-owned processes, can write files to consume this disk space. For ext2, ext3, and ext4 filesystems, you can inspect this data, stored in the filesystem superblock, by using thetune2fscommand. In the output below, I
Commands you enter on the Linux terminal are case-sensitive and follow a syntax like “command -options arguments.” You can combine them for complex tasks using pipelines and redirection.Some key things to know about Linux commands:They are case-sensitive; for example, “ls” and “LS” ...
Here are some of the CLI tools which you can use to check disk space in Linux 1. df command The df command to check disk space in Linux is widely used by Linux Administrators. It is a built-in utility that displays the amount of free and used disk space on the file system. It is...
If you’d like to use parted, you can use the command-line parted utility or a graphical interface such as gparted; for an fdisk-style interface, use gdisk if you’re using GPT partitioning. These utilities all have online help and are easy to learn. (Try using them on a flash device...
Command (mforhelp):## 此时,并没有在系统中生效,改变只是暂时放在内存中Command (mforhelp): w#按w保存并退出The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disk 在w之前,检查一次,是不是在新的磁盘上创建分区。无误之后再按回车键,否则会发生无法挽回的错误...
Thermcommand in Linux In the previous section, we deleted the Sample-Copy file. The rm command is used to delete files and folders and is one of the important Linux commands you must know. root@ubuntu:~# rm <file name> Copy To delete a directory, you must add the-rargument to it. ...
Linuxsystems come with a wealth of documentation. For basic commands, the manual pages (or man pages) will tell you what you need to know. For example, to see the manual page for the ls command, run man as follows: Linux系统提供了丰富的文档资源。对于基本命令,手册页(或man页)会告诉您所...
You’ll learn how to partition disks, create and maintain the filesystems that go inside disk partitions, and work with swap space. 在第三章中,我们讨论了内核提供的一些顶层磁盘设备。 在本章中,我们将详细讨论如何在Linux系统中使用磁盘。 您将学习如何分区磁盘,创建和维护磁盘分区内的文件系统,并处理...
The last of the 10 basic Linux commands you need to know isps. This command shows you currently running processes. If you issue thepscommand, you will only see your own processes: $ ps PID TTY TIME CMD 7505 pts/0 00:00:00 bash ...
know how to see the disk space usage for a file or folder using the terminal application in Linux. While it is easy to view the size with any graphical file manager app, it isn't so obvious via the command line for someone who hasn't used Linux before. Here is how you see the ...