The following describes the 60 required Linux commands that must be mastered by new users. If you have mastered these commands, your technology will be greatly improved, we hope that the technology will be greatly improved after reading this article.
System Management command:
System Management commands required for Linux
For Linux systems, whether it is a central processor, memory, disk drive, keyboard, mouse, or user, it is a file. Linux system management commands are the core of its normal operation. After familiarizing yourself with common Linux File Processing commands, This section describes the commands for managing systems and users.
Df
1. the df command is used to check disk space usage of the file system. The permission is granted to all users.
2. Format: df [options]
3. Main Parameters
-S: the total number of data blocks occupied by each Names parameter.
-A: recursively displays the number of data blocks occupied by each file in a specified directory and Its subdirectories. If neither-s nor-a is specified, only the disk blocks occupied by each directory and Its subdirectories in Names are displayed.
-K: Used to list disk space usage in 1024 bytes.
-X: Skipping directories on different file systems is not counted.
-L: calculates the size of all files, and computes hard-linked files multiple times.
-I: displays inode information instead of block usage.
-H: print out the file system size in an understandable format, such as 136KB, 254 MB, and 21 GB.
-P: Use the POSIX output format.
-T: displays the file system type.
4. Description
The df command is widely used to generate statistical data on file systems. It displays information about all file systems in the system, including total capacity, available free space, and current installation points. When a super-Permission user uses the df command, the capacity of a partition exceeds 100%. This is because the Linux system reserves 10% of the space for Super Users, which is independently controlled by the Super Users. That is to say, for a super user, the disk capacity he sees will be 110%. This arrangement is advantageous for system management. When the disk capacity is close to 100%, the system administrator can still work normally.
5. Application Instance
Linux supports many file systems, including JFS, ReiserFS, ext, ext2, ext3, ISO9660, XFS, Minx, vfat, and MSDOS. Run the df-T command to view the disk space and obtain the file system information:
# Df-T
File System Type capacity available in use % mount point
// Dev/hda7 reiserfs 5.2G 1.6G 3.7G 30%/
/Dev/hda1 vfat 2.4G 1.6G 827 M 66%/windows/C
/Dev/hda5 vfat 3.0G 1.7G 1.3G 57%/windows/D
/Dev/hda9 vfat 3.0G 2.4G 566 M 82%/windows/E
/Dev/hda10 NTFS 3.2G 573 M 2.6G 18%/windows/F
/Dev/hda11 vfat 1.6G 1.5G 23 M 99%/windows/G
In addition to the capacity and usage of the disk space, the file system type and mount point of the partition are also displayed at a glance.
We hope the above Linux commands will help you.
- Fedora Display Device Configuration tool 1)
- Fedora Display Device Configuration tool Introduction 2)
- Basic knowledge of Hardware Management in Linux system 3)
- Basic knowledge of Hardware Management in Linux system 4)
- Ubuntu Linux is suitable for at least five people