Coder Social home page Coder Social logo

ucode-uls's Introduction

UNIX utilities can be very useful. This is my repo for our implementation of UNIX utility "ls".

ULS is the implementation of the UNIX utility ls.

Building the program

  1. Download the source code from this repository.
  2. Go to the program directory.
  3. Run make in terminal.

Attention! This program only works with OSX systems!

Usage

uls [-ACGRSTcfglmortux1] [file ...]
For example: ./uls -l test

Usable Flags

-A List all entries except for . and ... Always set for the superuser.
-C Force multi-column output; this is the default when output is to a terminal.
-G Makes output colorful and fancy.
-R Recursively list subdirectories encountered.
-S Sort files by size.
-T When used with the -l option, display complete time information for the file, including month, day, hour, minute, second, and year.
-c Use time when file status was last changed for sorting (-t) or long printing (-l).
-f Output is not sorted. This option turns on the -a option.
-g This option is only available for compatibility with POSIX; it isused to display the group name in the long (-l) format output.
-l For each file, print the file's file serial number.
-m Stream output format; list files across the page, separated by commas.
-o List in long format, but omit the group id.
-r Reverse the order of the sort to get reverse lexicographicalorder or the oldest entries first (or largest files last, if combined with sort by size.
-t Sort by time modified (most recently modified first) before sorting the operands by lexicographical order.
-u Use time of last access, instead of last modification of the file for sorting (-t) or long printing (-l).
-x The same as -C, except that the multi-column output is produced with entries sorted across, rather than down, the columns.
-1 Force output to be one entry per line. This is the default when output is not to a terminal.

Authors

People that made this program:

osavich

vsvietkov

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.