public static String execCommand(String... cmd) throws IOException {
        return execCommand(cmd, -1);
    }
@Test
    public void testHeadDevZero() throws Exception {
        final int length = 100000;
        String output = Shell.execCommand("head", "-c", Integer.toString(length), "/dev/zero");
        assertEquals(length, output.length());
    }