The fsck (stands for File System Consistency Check) is used to check and repair one or more Linux filesystems. This check will run automatically at boot time when a filesystem inconsistencies detected. Also, can be run manually as needed. You can use the fsck command to repair corrupted fi...
-a | To include dummy filesinthe output,whichinclude zero block sizes -B | To display block sizeinthe specified unit, such as BMforMB and BGforGB -h | To display block sizeinhuman-readable form 以人类可读的形式显示块大小 -i | Displays inode information instead of the block usage -l ...
In this chapter, we’ll discuss in detail how to work with disks on a Linux system. You’ll learn how to partition disks, create and maintain the filesystems that go inside disk partitions, and work with swap space. 在第三章中,我们讨论了内核提供的一些顶层磁盘设备。 在本章中,我们将...
To access data on a disk, the Linux kernel uses the system of layers shown in Figure 4-2. The SCSI subsystem and everything else described in 3.6 In-Depth: SCSI and the Linux Kernel are represented by a single box. (Notice that you can work with the disk through the filesystem as w...
of Inodes. Tracking Inode usage is important. If a limit will be reached, this will result in a restriction from adding additional files to the hosting plan, until some of the Inodes will be freed up. In this guide, you will see how to check detailed Inode usage for your hosting plan....
After a system restart, use thelsblkcommand to verify the partition. To learn more about these steps, check the following tutorials. The fdisk command on Linux explained The /etc/fstab file on Linux explained The mkfs command on Linux
Understanding Symbolic Links in Linux Symbolic links act aspointersto files or directories rather than storing the actual data. Unlike hard links, which directly reference file data at the inode level, symlinks only reference the file path. If the original file is moved or deleted, the symlink ...
Chapter 11. Introduction to Shell Scripts(第 11 章 Shell 脚本简介 Shell 脚本简介) If you can enter commands into the shell, you can write shell scripts (also known as Bourne shell scripts). A shell script is a series of commands written in a file; the shell reads the commands from the...
libraries and kernel to identify and manipulate a file. o TYPE. The file type (regular file, directory, socket, and so on). o DEVICE. The major and minor number of the device that holds the file. o SIZE. The file’s size. o NODE. The file’s inode number. o NAME. The filename...
To check the HTTP port on the server at IP address 192.168.3.1 If the command returns a failure message, the port is closed – if you get an empty prompt awaiting input, the port is open! Another tool isnetcat, which has the syntax: ...