|
unless we are going to prohibit the use of temporary files, we needed some place that programs can use for temporary files. you can't just create a file anywhere, there may not be enough space and/or the directory permissions may prohibit it. to create a file in say, /a/b/c/something, you must have read and search permission on /a, /a/b, and /a/b/c. some time is required to check all of that, so for overall speed, a place of the form simply /something (that is, some top level directory) is better. now we need a name for "something" and the ancient ones went with /tmp. memory was very tight in the 60's and 70's and this argued for short names. /tmp is as short as you can get while still being somewhat obvious in intent.
|