Coder Social home page Coder Social logo

uls's Introduction

uls's People

Watchers

 avatar

uls's Issues

Implement sorting flags

  • -f - Output is not sorted. This option turns on the -a option;
  • -t - Sorting by last modified;
  • -c - Use time when file status was last changed for sorting (-t) or long printing (-l);
  • -u - Use time of last access, instead of last modification of the file for sorting (-t) or long printing (-l);
  • -U - Use time of file creation, instead of last modification for sorting (-t) or long output (-l);
  • -r - Reverse the order of the sort to get reverse lexicographical order or the oldest entries first (or largest files last, if combined with sort by size;
  • -S - Sort files by size;

Implement some of the flags that represent output modes

  • -l - Long output
  • -C - Force multi-column output; this is the default when output is to a terminal;
  • -1 - (The numeric digit ``one''.) Force output to be one entry per line. This is the default when output is not to a terminal;
  • -m - Stream output format; list files across the page, separated by commas.
  • -x - The same as -C, except that the multi-column output is produced with entries sorted across, rather than down, the columns.

Add flags of type "elements selection"

Flags:

  • -A - List all entries except for . and ..;
  • -a - Include directory entries whose names begin with a dot (.);
  • -R - Recursively list subdirectories encountered;
  • -d - directories are listed as plain files;

By default, the arguments have the current directory (.) if there are no files.

Add output "usage"

When the user enters an invalid flag, the program must print an error (for example: ./uls -Q):

uls: illegal option -- Q
usage: uls [-l] [file ...]

Implement -l flag

  • -l - List in long format. If the output is to a terminal, a total sum for all the file sizes is output on a line before the long listing;
  • -g - Like -l but without owner;
  • -o - Like -l but without group information;
  • -e - Print the Access Control List (ACL) associated with the file, if present, in long (-l) output;
  • -@ - Display extended attribute keys and sizes in long (-l) output;
  • -c - Use time when file status was last changed for sorting (-t) or long printing (-l);
  • -e - Print the Access Control List (ACL) associated with the file, if present, in long (-l) output;
  • -T - When used with the -l (lowercase letter ``ell'') option, display complete time information for the file, including month, day, hour, minute, second, and year;
  • -h - Sizes are human readable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.