Output alignment problem for ‘df’ command
Sometimes we need to get the output of df command in an arranged manner to use the output in some scripting or not. You can use the following command to view the output in properly formatted form.
-P, --portability use the POSIX output format -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
You can check the following screenshots for more details.
df command without proper alignment
df command with aligned format