Unix administration - tar file names

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > January 2007 > tar file names





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author tar file names
kramer31

2007-01-18, 7:22 pm

Hi. Can someone tell me what file names are allowed internally in the
tar file format? Can they be stored in unicode or are the other means
to deal with special characters in filenames?

Thanks.

Dave Hinz

2007-01-18, 7:22 pm

On 18 Jan 2007 14:41:12 -0800, kramer31 <kramer.newsreader@gmail.com> wrote:
> Hi. Can someone tell me what file names are allowed internally in the
> tar file format? Can they be stored in unicode or are the other means
> to deal with special characters in filenames?


I think any filename you can create, tar can handle. Including names
with spaces. Easy enough to test with a tar -cvf and then a tar -tvf of
some test directories. Let us know what you find ;)
Doug Freyburger

2007-01-19, 7:29 pm

Dave Hinz wrote:
> kramer31 wrote:
>
>
> I think any filename you can create, tar can handle. Including names
> with spaces. Easy enough to test with a tar -cvf and then a tar -tvf of
> some test directories. Let us know what you find ;)


tar gets the names from the directories so any name you can get into
a directory tar can handle. No slashes or nulls as slashes separate
directories and nulls terminate strings.

I haven't tried unicode in specific but I've dealt with all sorts of
control
characters, escape sequences and so on and tar handles them fine.

kramer31

2007-01-28, 1:27 am

Indeed you are right. tar can handle any of my files (turns out the
names are utf8 not unicode). Now if only my ntfs driver could...

Thanks

On Jan 19, 5:02 pm, "Doug Freyburger" <dfrey...@yahoo.com> wrote:
> Dave Hinz wrote:
>
>
> a directory tar can handle. No slashes or nulls as slashes separate
> directories and nulls terminate strings.
>
> I haven't tried unicode in specific but I've dealt with all sorts of
> control
> characters, escape sequences and so on and tar handles them fine.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com