Coder Social home page Coder Social logo

ibeauregard / tar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 178 KB

Simple implementation of the tar command using only the following functions and system calls: chmod, close, free, stat, getpwuid, getgrgid, getxattr, listxattr, lseek, major, malloc, minor, mkdir, open, opendir, read, readdir, readlink, stat, symlink, unlink, time, ctime, utime, write.

Makefile 0.42% C 91.05% Shell 8.53%

tar's Introduction

my_tar

Command Name

my_tar

Description

my_tar is a command to manipulate tape archive. The first option to my_tar is a mode indicator from the following list:

  • -c Create a new archive containing the specified items.
  • -r Like -c, but new entries are appended to the archive. The -f option is required.
  • -t List archive contents to stdout.
  • -u Like -r, but new entries are added only if they have a modification date newer than the corresponding entry in the archive. The -f option is required.
  • -x Extract to disk from the archive. If a file with the same name appears more than once in the archive, each copy will be extracted, with later copies overwriting (replacing) earlier copies.

In -c, -r, or -u mode, each specified file or directory is added to the archive in the order specified on the command line. By default, the contents of each directory are also archived.

Unless specifically stated otherwise, options are applicable in all operating modes:

  • -f file Read the archive from or write the archive to the specified file. The filename can be standard input or standard output.

Exit Status

The my_tar utility returns 0 on success, and > 0 if an error occurs.

tar's People

Contributors

ibeauregard avatar mimmyjau avatar

Watchers

 avatar

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.