LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2015, 05:52 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Why limitation of 6 or 8 character filenames + extension on older operating systems?


Hello,

On older operating sys, there was only 6 or 8 chars, dot and extension (3char). Why such a number?

Example: Amiga, C64,...

example:
Code:
noname.bas
 
Old 10-03-2015, 06:06 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The directory structure used fixed size fields for file names. When those systems were written, storage was measured in kilobytes so it was not very limiting.
 
Old 10-03-2015, 06:26 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I don't know. I assume it was a limitation due to hardware imposed during early filesystem development and copied by others. Might of started with CP/M but do not know its exact origin.

https://en.wikipedia.org/wiki/8.3_filename
 
Old 10-03-2015, 08:22 AM   #4
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Because when we started to try to make the PDP-11, ... operating systems to work, we had at that time no need to have specific long filenames.
We developed very simple assembly language programs. Purposes were slightly differents. It did not come in my mind even at that time that there was need of having long filenames.
 
Old 10-03-2015, 08:51 AM   #5
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Just as Gates et al thought that 640KB of RAM was overkill, and nobody would ever need that much.
 
Old 10-03-2015, 09:09 AM   #6
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by sgosnell View Post
Just as Gates et al thought that 640KB of RAM was overkill, and nobody would ever need that much.
Gill Arthur, Gary (who passed away quite young ), Gurley, Gilmore, W.G. Daly,... might have given valuable infos.

Last edited by patrick295767; 10-03-2015 at 09:23 AM.
 
Old 10-04-2015, 09:50 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
The practice actually dates back to operating systems and computers (which, uhh, I remember ...) like RSTS/E. Or the HP-2000 minicomputers, Data General, and so on. Days when paper tape was more common than hard drives.

(Yeah, you folks missed out on a helluva lot of fun times, by being born too late ... This stuff was "happening for the very first time, right before our eyes," and we were there and we knew it, although I think that very few of us realized what it would one day become nor how rapidly it would get there.)

The idea had been copied by other contemporary operating systems that were popular at that time, such as CP/M. Remember that the MS-DOS project was very much aimed directly at CP/M, because Gary Kildall was being an ass and would not negotiate with IBM Corporation, and IBM was running out of time.

One must remember that computers were extremely tiny. (As was the original IBM-PC.) They were not yet being used by "the general public." Specialists were accustomed to such limitations. It would have been wasteful to spare more precious disk-space and RAM on extravagance.

Yeah, we didn't have anything to work with. So, we did it anyway. Some of the things that we managed to accomplish, "basically, with nothing," are feats of High Hacking that I am still proud of.

Last edited by sundialsvcs; 10-04-2015 at 09:57 AM.
 
Old 10-04-2015, 01:42 PM   #8
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Xeratul View Post
Hello,

On older operating sys, there was only 6 or 8 chars, dot and extension (3char). Why such a number?

Example: Amiga, C64,...

example:
Code:
noname.bas
I don't think that this is true for Amiga, or am I wrong?

EDIT:
Reading around, it seems that with Amiga you had to first associate any kind of extension with an icon and only later you could decide which program to use for that icon-type. I honestly don't remember anymore what I did with my Amiga500 - I remember only Rick Dangerous

Last edited by Pearlseattle; 10-04-2015 at 01:47 PM.
 
Old 10-04-2015, 02:47 PM   #9
danielbmartin
Senior Member
 
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,881

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
The IBM 709-7090-7094 computer family had storage (we didn't use the word memory then) divided into 36-bit words. Each word could accommodate six 6-bit characters. Fortran, developed in that era, began with variable names no longer than 6 characters. It was a design choice made to economize storage space and also as an implementation convenience.

Daniel B. Martin
 
Old 10-05-2015, 06:55 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Xeratul View Post
Hello,

On older operating sys, there was only 6 or 8 chars, dot and extension (3char). Why such a number?

Example: Amiga, C64,...

example:
Code:
noname.bas
The C64 (or better CBM DOS) filesystem limited filenames to 16 bytes length, there was no limitation to the 8+3 filenames used by CP/M or DOS.
 
Old 10-05-2015, 07:52 AM   #11
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Amiga was always an intelligently designed system ... ahead of its time in all respects. It did not have this limitation. (Neither did the Apple ][, for that matter, although it had plenty of limitations of its own.)

Computers were extremely limited in those days, since Intel and others had not yet perfected processes for reliably (and cheaply) constructing the very-high density silicon chips that we take for granted today. Thus, an 8-kilobyte memory store might well use 8 chips. Likewise, clock speeds and chip-complexity was much lower. And, prices were higher because there was a much lower "yield" in the chip-manufacturing processes.

And so, software and hardware designers soldiered on, breaking new ground all the time, doing what couldn't be done with these "toys."

For the most part, also, the general public wasn't paying attention to computers. While computers were already "a part of their lives," computers were not yet "part of their lives." (And certainly not yet a total-distraction at the dinner table ...) I candidly admit that it's not as much fun for me today as it used to be.
 
1 members found this post helpful.
Old 10-06-2015, 08:16 AM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by michaelk View Post
I don't know. I assume it was a limitation due to hardware imposed during early filesystem development and copied by others. Might of started with CP/M but do not know its exact origin.

https://en.wikipedia.org/wiki/8.3_filename
Well yes it was a limitation due to memory and this was a choice made by the designers of the early OSes for uniformity, as well as limitations. It would've taken more resources to represent lengthier filenames and given the limited resources of the time, these choices did make sense.
 
Old 10-06-2015, 01:22 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
to make things even worse i STILL , even today, see software that outputs names or use ALL CAP 8.3 names

for some odd reason windows 7, 8 ( do not wet know about 10) 3d software outputs the 3ds format using ALL CAP 8.3 names even if the real image name is all lowercase

drives me batty in making SURE that the software i support is MULTI OS ( linux,osx,windows)

back in 1980's and early 90's this made sense --- 5 in floppy disks did not have much space
but not today
 
Old 10-07-2015, 05:21 PM   #14
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
That rather suggests to me that the software is still using some old 16-bit code cruft somewhere.
 
Old 10-07-2015, 08:44 PM   #15
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Backwards compatibility in action. All the way back to Windows 3.1 probably. Sometimes it's easier than actually recoding the software.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which linux Operating systems applied to Embedded systems? ubun2os Linux - Embedded & Single-board computer 3 03-14-2013 04:24 PM
LXer: Isolating Your Linux Systems - How Sharing Operating Systems Can Put Holes in Your PCI Complia LXer Syndicated Linux News 0 04-09-2011 04:10 AM
character conversion issue - wrongly displayed filenames. kevinyeandel Linux - Newbie 1 12-10-2010 08:47 PM
Implications of setting K3B to use 103 character joliet filenames? General Linux - Software 2 05-28-2007 10:26 AM
Is the pipe (|) an illegal character for unix/linux filenames? Foebane Linux - General 7 07-08-2002 12:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration