public static void main(String[] args) throws Exception { new Du().processCommand(args); } }
public void output(String[] args) throws SigarException { String dir = args[0]; DirUsage du = this.sigar.getDirUsage(dir); println(du.getDiskUsage() + "\t" + dir); }
public void registerCommands() throws ShellCommandInitException { registerCommandHandler("df", new Df(this)); registerCommandHandler("du", new Du(this)); registerCommandHandler("ls", new Ls(this)); registerCommandHandler("iostat", new Iostat(this));