shar

Computing Dictionary

shar definition

tool, file format
("Shell archive", after ar and tar) Any of the many Unix programs that creates a flattened representation of one or more files, with the unique property that it can be unflattened (the original files extracted) merely by feeding it through a standard Unix shell. The output of shar, known as a "shar file" or "sharchive", can be distributed to anyone running Unix, and no special unpacking software is required.
Sharchives are intriguing in that they are typically created by shell scripts; the script that produces sharchives is thus a script which produces self-unpacking scripts, which may themselves contain scripts. The disadvantage of sharchives are that they are an ideal venue for Trojan horse attacks and that, for recipients not running Unix, no simple un-sharchiving program is possible; sharchives can and do make use of arbitrarily-powerful shell features and other Unix commands.
Different implementations of shar vary in sophistication. Some just uuencode each input file and output commands to uudecode the result, others include extensive checking to make sure the files have been transferred without corruption and that all parts of a multi-file sharchive have been unpacked.
The unshar utility strips off mail and news headers before passing the remainder of its input to sh.
(1996-10-18)

The Free On-line Dictionary of Computing, © Denis Howe 2010 http://foldoc.org
Cite This Source
Explore Dictionary.com
Previous Definition: shaquille o'neal
Next Definition: shar file
Words Near: SHAR
More from Thesaurus.com
Synonyms and Antonyms for SHAR
More from Reference.com
Search for articles containing SHAR
More from Dictionary.com Translator
00:10
Shar is always a great word to know.
So is slumgullion. Does it mean:
an extraordinary or unusual thing, person, or event; an exceptional example or instance.
a stew of meat, vegetables, potatoes, etc.
Dictionary.com Word FAQs

Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.

Copyright © 2013 Dictionary.com, LLC. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature
FAVORITES
RECENT