Skip to content

Latest commit

 

History

History
87 lines (43 loc) · 1.86 KB

du_statistics.md

File metadata and controls

87 lines (43 loc) · 1.86 KB
layout title tags
manual
du - Statistics of command combinations using double pipe
statistic

Before

The commands before du: If the given command failed, execute du.

Command percentage
man 16%
ip 16%
du 16%
find 16%
mount 16%
xargs 16%

After

The commands after du: If du failed, execute the given command.

Command Percentage
head 33%
sort 33%
du 33%

Related Scenarios

Below are the scenarios for all command combinations above.

The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.

If man failed, execute du

  • Extended man command

If ip failed, execute du

  • Add page numbers to a PDF

If du failed, execute du

  • Simple top directory usage with du flips for either Linux or base Solaris

If find failed, execute du

  • Shows space used by each directory of the root filesystem excluding mountpoints/external filesystems (and sort the output)

If mount failed, execute du

  • Shows space used by each directory of the root filesystem excluding mountpoints/external filesystems (and sort the output)

If xargs failed, execute du

  • Shows space used by each directory of the root filesystem excluding mountpoints/external filesystems (and sort the output)

If du failed, execute head

  • Simple top directory usage with du flips for either Linux or base Solaris

If du failed, execute sort

  • Simple top directory usage with du flips for either Linux or base Solaris

If du failed, execute du

  • Simple top directory usage with du flips for either Linux or base Solaris