[ 
https://issues.apache.org/jira/browse/HADOOP-12641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059316#comment-15059316
 ] 

Lin Yiqun commented on HADOOP-12641:
------------------------------------

[~aw], there are these params in Ls command now.
{code}
  public static final String DESCRIPTION =
      "List the contents that match the specified file pattern. If " +
          "path is not specified, the contents of /user/<currentUser> " +
          "will be listed. For a directory a list of its direct children " +
          "is returned (unless -" + OPTION_DIRECTORY +
          " option is specified).\n\n" +
          "Directory entries are of the form:\n" +
          "\tpermissions - userId groupId sizeOfDirectory(in bytes) 
modificationDate(yyyy-MM-dd HH:mm) directoryName\n\n" +
          "and file entries are of the form:\n" +
          "\tpermissions numberOfReplicas userId groupId sizeOfFile(in bytes) 
modificationDate(yyyy-MM-dd HH:mm) fileName\n\n" +
          "  -" + OPTION_PATHONLY +
          "  Display the paths of files and directories only.\n" +
          "  -" + OPTION_DIRECTORY +
          "  Directories are listed as plain files.\n" +
          "  -" + OPTION_HUMAN +
          "  Formats the sizes of files in a human-readable fashion\n" +
          "      rather than a number of bytes.\n" +
          "  -" + OPTION_RECURSIVE +
          "  Recursively list the contents of directories.\n" +
          "  -" + OPTION_MTIME +
          "  Sort files by modification time (most recent first).\n" +
          "  -" + OPTION_SIZE +
          "  Sort files by size.\n" +
          "  -" + OPTION_REVERSE +
          "  Reverse the order of the sort.\n" +
          "  -" + OPTION_ATIME +
          "  Use time of last access instead of modification for\n" +
          "      display and sorting.";
{code}
And I didn't see some param that is to limit displaying.

> FsShell command LS can add the display-limited param
> ----------------------------------------------------
>
>                 Key: HADOOP-12641
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12641
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs, tools
>    Affects Versions: 2.7.1
>            Reporter: Lin Yiqun
>            Assignee: Lin Yiqun
>         Attachments: HADOOP-12641.001.patch
>
>
> In some time, using Ls command is not convenient. For example, when I just 
> want to see the child files infos in a directory and I don't need to look the 
> all child files records of this directory, this command will show all of 
> them. It's will be more terrible if the directory has thousands of child 
> files.So may be we need a param that can limit the displaying file record on 
> Ls command.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to