Имя файла в файловой системе windows может ответ

Тесты с ответами по теме - Windows: узнать правильные варианты ответов на вопросы.
  1. Помощь студентам

  2. Онлайн тесты

  3. Информатика


  4. Тесты с ответами по теме — Windows

Тест по теме «Тесты с ответами по теме — Windows»

  • Обновление

    Обновлено: 11.04.2021

  • Просмотры

    73 706

35 вопросов

Выполним любые типы работ

  • Дипломные работы
  • Курсовые работы
  • Рефераты
  • Контрольные работы
  • Отчет по практике
  • Эссе
Узнай бесплатно стоимость работы

Популярные тесты по информатике

icon

Информатика

Тесты с ответами по предмету — Информационные технологии в управлении

Календарь

18.03.2021

Просмотры

467 313

Количество

77

icon

Информатика

Тесты с ответами по предмету — Основы информационной безопасности

Календарь

26.03.2021

Просмотры

210 686

Количество

51

icon

Информатика

Тесты с ответами по предмету — Информатика

Календарь

04.05.2021

Просмотры

145 208

Количество

35

icon

Информатика

Тесты с ответами по предмету — Базы данных

Календарь

07.05.2021

Просмотры

129 676

Количество

27

icon

Информатика

Тесты с ответами по теме — Windows

Календарь

11.04.2021

Просмотры

73 707

Количество

35

icon

Информатика

Тесты с ответами по предмету — Компьютерные технологии

Календарь

17.04.2021

Просмотры

73 517

Количество

178

icon

Информатика

Информатика. Тест по теме Текстовый редактор MS Word

Календарь

17.08.2021

Просмотры

34 667

Количество

44

icon

Информатика

Тесты текущего контроля по дисциплине «Теория систем и системный анализ»

Календарь

18.03.2021

Просмотры

32 233

Количество

14

icon

Информатика

Информатика. Тест по теме Табличный процессор MS Excel

Календарь

17.08.2021

Просмотры

19 448

Количество

38

Мы поможем сдать на отлично и без пересдач

  • Контрольная работа

    от 1 дня
    /

    от 100 руб

  • Курсовая работа

    от 5 дней
    /

    от 1800 руб

  • Дипломная работа

    от 7 дней
    /

    от 7950 руб

  • Реферат

    от 1 дня
    /

    от 700 руб

  • Онлайн-помощь

    от 1 дня
    /

    от 300 руб

Нужна помощь с тестами?

Оставляй заявку — и мы пройдем все тесты за тебя!

Подробности

Тесты по информатике с ответами

15 Октябрь 2015

Просмотров: 24925

Страница 2 из 4

Какое из устройств наиболее отрицательно влияет на здоровье человека

a) устройство чтения компакт-диска
b) аудио-колонки
c) дисплей

d) жесткий диск

Понятие «Операционная система» означает:

a) комплекс программ, обеспечивающих работу компьютера

b) программа подготовки больных к сложным операциям
c) программа, обеспечивающая интерфейс: пользователь-компьютер

d) программа, обеспечивающая возможность разработки сложных документов

С точки зрения Пользователя компьютера файл (file) это –

a) единица хранения информации на устройстве

b) Ящик для хранения инструкций по использованию инструкций
c) Носитель информации
d) Место хранения для нескольких документов

Понятие «Папка» означает:

a) элемент файловой системы

b) несколько файлов, хранящихся в одном месте
c) Ящик для хранения инструкций
d) Документ, хранящийся на компакт-диске

Папки могут содержать

a) Только файлы
b) Только папки
c) файлы и папки

d) Файлы и не более трех папок

Имя файла в файловой системе Windows может

a) иметь длину до 252 символов

b) использовать символы национального алфавита

c) содержать символы: точка, двоеточие, косая черта, звездочка, знак вопроса
d) начинаться с цифры

Расширение имени файла

a) сообщает о назначении файла

b) содержит сведения о числе обращений к файлу
c) указывается после имени и отделено от него символом «точка»

d) содержит сведения об авторе документа

при передаче документа на другой компьютер можно использовать:

a) главпочтамт
b) дискета, съемный жесткий диск

c) локальная сеть

d) почта Интернет

Для просмотра содержимого файловой системы используется:

a) «Мой компьютер»

b) «Проводник»

c) «проверка диска»
d) «сведения о системе»

Буфер обмена это

a) область памяти компьютера, предназначенная для временного хранения информации о текущих настройках операционной системы.
b) область памяти компьютера, предназначенная для временного хранения информации от конкретного приложения для ее дальнейшего использования (вставки) в этом и только в этом приложении.
c) область памяти компьютера, предназначенная для временного хранения информации для использования в различных приложениях.

d) область в памяти компьютера, куда помещаются копии объектов для временного хранения

e) Область памяти выделяемая специально для хранения конфиденциальной информации

1. Выберите, что нужно нажать для перевода дополнительного блока клавиатуры в цифровой режим:
а) NumLock+
б) CapsLock
в) этой частью клавиатуры лучше вообще не баловаться
г) Shift + CapsLock
д) Shift + NumLock
е) Tab

2. KDE, GNOME, Xfce:
а) оболочек операционной системы Linux+
б) операционных систем
в) графических редакторов
г) браузеров
д) сред разработки

3. Функции, выполняемые операционной:
а) управление памятью+
б) создание текстовых документов
в) программирование

4. Функции, выполняемые операционной:
а) управление данными+
б) создание текстовых документов
в) программирование

5. В зависимости от назначения компьютера, на котором системы установлены выделяют такие системы:
а) Клиентские ОС+
б) Серверные ОС+
в) Системы общего назначения
г) Системы реального времени
д) Прочие специализированные системы

6. Название папки, которая выступает в качестве вершины файловой структуры и олицетворяет собой носитель, на котором сохраняются файлы:
а) корневой+
б) начальной
в) стартовой
г) папки верхнего уровня

7. Удаленные файлы и папки можно восстановить. Является ли верным данное утверждение?
а) восстановить невозможно
б) восстановить возможно, если не выполнялась процедура очистки корзины+
в) восстановить возможно, если компьютер не был отключен
г) восстановить можно в любой момент

8. Для выполнения процедуры копирования или перемещения файлов и папок в программе Проводник пользователь задает данную последовательность действий:
а) выделяет объекты, Правка – Копировать либо Правка — Вырезать. Отмечает место вставки, правка — Вставить+
б) выделяет объекты, и использует команды меню Вставка
в) выделяет объекты, перемещает их по дереву папок, удерживая зажатой левую кнопку мышь
г) выделяет объекты, перемещает их по дереву папок, удерживая зажатой правую кнопку мыши, и выбирает нужную команду из открывшегося меню+

9. Для чего в первую очередь предназначена программа архивации в MS Windows?
а) создания резервной копии данных+
б) увеличения свободного места на жестком диске
в) архивации неиспользуемых программ
г) хранения системной информации

10. Вызвать контекстное меню для объекта ОС Windows можно таким образом:
а) используя кнопку «Пуск»
б) двойным щелчком мыши по пиктограмме объекта
в) наведением указателя мыши по пиктограмму объекта
г) щелчком правой кнопки мыши на пиктограмме объекта+

11. При наведении курсора на заголовок окна и нажатии основной (левой) кнопки мыши при удерживании и передвижении ее, произойдет следующее:
а) перемещение окна+
б) изменение размера окна
в) закрытие окна
г) перемещение файлa

12. Определите, что такое «интерфейс»:
а) взаимодействие пользователя со средствами компьютера+
б) взаимодействие магнитного диска со средствами компьютера
в) взаимодействие клавиатуры с средствами компьютера
г) взаимодействие пользователя с дискетой, что лежит на столе
д) взаимодействие пользователя и учителя

13. Выберите, что указывается с помощью названия и расширения файла:
а) назначение и тип файла+
б) назначение и название файла
в) тип и расширение файла
г) объем и тип файла
д) название и объем файла

14. Расширение, которое имеют текстовые документы Word:
а) .doc+
б) .xls
в) .exe
г) .bmp
д) .sys

15. Jpg, gif, png, tiff:
а) названия различных файловых систем
б) расширения графических файлов (рисунков)+
в) расширения текстовых файлов
г) расширения программных файлов

16. Что такое txt, doc:
а) названия различных файловых систем
б) расширения графических файлов (рисунков)
в) расширения текстовых файлов+
г) расширения программных файлов

17. Операционные системы MacOS используются преимущественно на компьютерах, которые выпускает следующая фирма:
а) Apple+
б) IBM
в) HP
г) Acer

18. Исторически первая операционная система семейства Windows:
а) Window 3.0
б) Window 3.1
в) Window NT+
г) Window 95

19. Выберите устройство, которое наиболее отрицательно влияет на здоровье человека:
а) устройство чтения компакт-диска
б) аудио-колонки
в) дисплей+
г) жесткий диск

20. Какое имя может быть у файла в файловой системе Windows?
а) использовать символы национального алфавита+
б) содержать символы: точка, двоеточие, косая черта, звездочка, знак вопроса
в) начинаться с цифры

21. Что содержит или сообщает расширение имени файла?
а) сообщает о назначении файла+
б) содержит сведения о числе обращений к файлу
в) содержит сведения об авторе документа

22. Определите, что используется для просмотра содержимого файловой системы:
а) «Мой компьютер»+
б) «проверка диска»
в) «сведения о системе»

23. Что такое буфер обмена?
а) область памяти компьютера, предназначенная для временного хранения информации о текущих настройках операционной системы.
б) область памяти компьютера, предназначенная для временного хранения информации от конкретного приложения для ее дальнейшего использования (вставки) в этом и только в этом приложении.
в) область в памяти компьютера, куда помещаются копии объектов для временного хранения+
г) Область памяти выделяемая специально для хранения конфиденциальной информации

24. Выделите принципиальные отличия Linux от Windows:
а) открытость кода операционной системы+
б) простота использования
в) наличие нескольких графических оболочек
г) наличие большого количества легально распространяемых практически бесплатно версий
д) широкая известность и популярность

25. Windows 3.1:
а) исторически первой операционной системы, выпущенной Microsoft
б) одной из оболочек операционной системы MS DOS+
в) среды программирования
г) текстового редактора

26. Операционная система это:
а) комплекс программ, обеспечивающих работу компьютера+
б) программа подготовки больных к сложным операциям
в) программа, обеспечивающая возможность разработки сложных документов

27. Выберите, что обозначает точки зрения Пользователя компьютера файл (file):
а) единица хранения информации на устройстве+
б) Ящик для хранения инструкций по использованию инструкций
в) Носитель информации
г) Место хранения для нескольких документов

28. Папка это:
а) элемент файловой системы+
б) несколько файлов, хранящихся в одном месте
в) Ящик для хранения инструкций
г) Документ, хранящийся на компакт-диске

29. Что могут содержать папки?
а) Только файлы
б) Только папки
в) файлы и папки+
г) Файлы и не более трех папок

30. Современные операционные системы компании Microsoft называются так:
а) Windows+
б) Linux
в) Microsoft
г) MacOS
д) Solaris
е) BSD


Вопрос №
1

Когда появилась операционная система Windows?

1995
1981
1992
1945
2005


Вопрос №
2

Чем была неудобная операционная система MS DOS?

черный экран, набирать команду с клавиатуры…
Не нужно знать команды на командную строку
графический интерфейс
все делает за тебя
объекты в виде значков


Вопрос №
3

Что не является объектом операционной системы Windows?

Рабочий стол
Панель задач
Папка
Процессор
Корзина


Вопрос №
4

Какое действие нельзя выполнить с объектом операционной системы Windows?

Создать
Открыть
Переместить
Копировать
Порвать


Вопрос №
5

Что такое «интерфейс»?

взаимодействие пользователя со средствами компьютера
взаимодействие магнитного диска со средствами компьютера
взаимодействие клавиатуры с средствами компьютера
взаимодействие пользователя с дискетой, что лежит на столе
взаимодействие пользователя и учителя


Вопрос №
6

Что такое «адрес» на компьютере?

путь к файлу
там где ты живешь
название и расширение файла
перечень дисков компьютера
полное имя файла


Вопрос №
7

Как могут обозначаться корневые каталоги (диски)?

NIKE
C:, D:
ABBA
PUMA
REX


Вопрос №
8

Операционные системы MacOS используются преимущественно на компьютерах, выпускаемых фирмой

Apple
IBM
HP
Acer
LG


Вопрос №
9

Какое расширение имеют исполняемые файлы?

.com, .exe, .bat
.pic, .sys, .doc
.vis, suh, .txt
.exe, .txt, .doc
.bmp, .sys, .exe


Вопрос №
10

Какое расширение имеют текстовые документы Word?

.doc
.xls
.exe
.bmp
.sys


Вопрос №
11

Что такое папка?

Исполняемый файл
Место для хранения файлов документов
Текстовый документ
Каталог по старому
Файл по старому


Вопрос №
12

С точки зрения Пользователя компьютера файл (file) это —

Носитель информации
Ящик для хранения инструкций по использованию инструкций
единица хранения информации на устройстве
Место хранения для нескольких документов
Документ


Вопрос №
13

Имя файла в файловой системе Windows может

использовать символы национального алфавита
содержать символы: точка, двоеточие, косая черта, звездочка, знак вопроса
начинаться с цифры
иметь длину до 252 символов
менять сам себе название


Вопрос №
14

Рабочий стол это:

место, куда установлен дисплей
подставка под клавиатуру
Изображение на экране дисплея с размещенными на нем элементами управления
Папка, хранящая документы пользователя.
рабочее место


Вопрос №
15

Строка заголовка

строка специальных символов для служебных целей
Содержит только имя обрабатываемого приложением объекта
Показывает статистические данные об обрабатываемом в окне документе
содержит информацию об окне приложения и кнопки управления окном
Содержит инструменты «прокрутки» документа в окне.


Вопрос №
16

Для работы с простыми текстовыми документами используется приложение

Адресная книга
Paint
Калькулятор
Проводник
Блокнот


Вопрос №
17

Сколько всего байт может иметь название файла?

257
1024
255
5
8


Вопрос №
18

Из чего состоит имя файла?

название и фамилия
название и тип файла
фамилия и имя
тип и расширение
имя и название


Вопрос №
19

Какие символы разрешены в имени файла?

^ * ( f ) 2 % ~ 1
d 3 @ & i 2 / *
% d & ( ) e [ ] r
% d & ( ) e < > r
u * @ 3 $ % ( 1 _


Вопрос №
20

. Как называется файл, созданный с помощью программы-приложения Windows?

папка
документ
корневой каталог
адрес
каталог

Содержание

  1. Информатика. Тест по теме Программное обеспечение персонального компьютера. Операционные системы и их функциональное назначение. Организация файловой структуры
  2. Тест по теме «Файловая система» (10 класс)
  3. Дистанционное обучение как современный формат преподавания
  4. Современные педтехнологии в деятельности учителя
  5. Математика и информатика: теория и методика преподавания в образовательной организации
  6. Оставьте свой комментарий
  7. Подарочные сертификаты
  8. Тест по информатике «Файловая система»
  9. Описание разработки
  10. Имя файла в файловой системе windows может тест
  11. Тест с ответами: “Операционная система Windows”

Информатика. Тест по теме Программное обеспечение персонального компьютера. Операционные системы и их функциональное назначение. Организация файловой структуры

Поможем успешно пройти тест. Знакомы с особенностями сдачи тестов онлайн в Системах дистанционного обучения (СДО) более 50 ВУЗов. При необходимости проходим систему идентификации, прокторинга, а также можем подключиться к вашему компьютеру удаленно, если ваш вуз требует видеофиксацию во время тестирования.

Закажите решение за 470 рублей и тест онлайн будет сдан успешно.

1. В операционной системе Windows собственное имя файла не может содержать символ…
вопросительный знак (?)
запятую (,)
точку (.)
знак сложения (+)

2. Укажите неправильно записанное имя файла:
a:progpst.exe
docum.txt
doc?.lst
класс!

3. Расширение имени файла, как правило, характеризует…
время создания файла
объем файла
место, занимаемое файлом на диске
тип информации, содержащейся в файле

4. Фотография «Я на море» сохранена в папке Лето на диске D:, укажите его полное имя
D:ЛетоЯ на море.txt
D:ЛетоЯ на море.jpg
D:Я на море.jpg
D:ЛетоЯ на море.avi

5. Операционная системам выполняет…
обеспечение организации и хранения файлов
подключение устройств ввода/вывода
организацию обмена данными между компьютером и различными периферийными устройствами
организацию диалога с пользователем, управление аппаратурой и ресурсами компьютера

6. Файловая система необходима…
для управления аппаратными средствами
для тестирования аппаратных средств
для организации структуры хранения
для организации структуры аппаратных средств

7. Каталог (папка) – это…
команда операционной системы, обеспечивающая доступ к данным
группа файлов на одном носителе, объединяемых по какому-либо критерию
устройство для хранения группы файлов и организации доступа к ним
путь, по которому операционная система определяет место файла

8. Текстовые документы имеют расширения…
*.exe
*.bmp
*.txt
*.com

9. Папки (каталоги) образуют … структуру
иерархическую
сетевую
циклическую
реляционную

10. Файлы могут иметь одинаковые имена в случае…
если они имеют разный объем
если они созданы в различные дни
если они созданы в различное время суток
если они хранятся в разных каталогах

11. Задан полный путь к файлу D:УчебаПрактикаОтчет.doc Назовите имя файла
D:УчебаПрактикаОтчет.doc
Отчет.doc
Отчет
D:УчебаПрактикаОтчет

12. Файловая система определяет
способ организации данных на диске
физические особенности носителя
емкость диска
число пикселей на диске

13. Файл — это …
единица измерения информации
программа в оперативной памяти
текст, распечатанный на принтере
организованный набор данных, программа или данные на диске, имеющие имя

14. Размер файла в операционной системе определяется
в байтах
в битах
в секторах
в кластерах

15. Во время исполнения прикладная программа хранится…
в видеопамяти
в процессоре
в оперативной памяти
на жестком диске

16. Имена файлов, в которых хранятся на диске созданные документы (тексты или рисунки), задаются…
автоматически программой (текстовым или графическим редактором)
создателем документа
операционной системой
документы не имеют имен

17. Гипертекст — это…
очень большой текст
структурированный текст, в котором могут осуществляться переходы по выделенным меткам
текст, набранный на компьютере
текст, в котором используется шрифт большого размера

18. Стандартной программой в ОС Windows являются:
Калькулятор
MS Word
MS Excel
Internet Explorer
Блокнот

19. Чтобы сохранить текстовый файл (документ) в определенном формате необходимо задать…
размер шрифта
тип файла
параметры абзаца
размеры страницы

20. Задан полный путь к файлу c:docproba.txt. Назовите полное имя файла
c:docproba.txt
proba.txt
docproba.txt
txt

21. Операционные системы представляют собой программные продукты, входящие в состав…
прикладного программного обеспечения
системного программного обеспечения
системы управления базами данных
систем программирования

22. Интерфейс – это…
совокупность средств и правил взаимодействия устройств ПК, программ и пользователя
комплекс аппаратных средств
элемент программного продукта
часть сетевого оборудования

23. По функциональному признаку различают следующие виды ПО:
сетевое
прикладное
системное
инструментальное

24. Короткое имя файла состоит из …
двух частей: собственно имени и расширения
адреса файла
только имени файла
любых 12 символов

Источник

Тест по теме «Файловая система» (10 класс)

ТЕСТ ПО ТЕМЕ «ФАЙЛОВАЯ СИСТЕМА»

Ф.И. __________________________________________КЛАСС________ Вариант 1

1. Файловая система – это:

А) системная программа;

Б) вложенная структура файлов;

В) вложенная структура папок;

Г) вложенная структура папок и файлов

2. Какие имена файлов составлены, верно:

3. Укажите расширение файла «Мое портфолио. doc »:

А) средство упорядочения тематически связанных файлов;

Б) именованная область диска;

В) программа, которая переводит язык программирования в машинный код;

Г) программа, которая служит для подключения устройств ввода/вывода.

6. В папке могут храниться:

Б) только другие папки;

7. Папка, в которой хранятся все папки и файлы, называется:

А) дисковод для гибких дисков;

9. Какой путь из корневого каталога указан верно:

В) А:Обучающиеся программыПоле чудес;

Г) А: Обучающиеся программы Поле чудес.

ТЕСТ ПО ТЕМЕ «ФАЙЛОВАЯ СИСТЕМА»

Ф.И. __________________________________________КЛАСС________ Вариант 2

А) единица измерения информации;

Б) программа в оперативной памяти;

В) текст, напечатанный на принтере;

Г) программа или данные на диске, имеющие имя.

2. Какие имена файлов составлены правильно:

В) пример текст. doc ;

6. На тип файла указывает:

А) расширение файла;

7. Папка, которая находится внутри другой папки, называется:

А) дисковод для гибких дисков;

10. Какой путь к файлу 10а. txt из корневого каталога указан верно:

А) С: Мои документы10а10а. txt ;

Б) Мои документы10а10а. txt ;

В) С: Мои документы10а;

Г) С: Мои документы 10а 10а. txt ;

placeholder

Курс повышения квалификации

Дистанционное обучение как современный формат преподавания

placeholder

Курс повышения квалификации

Современные педтехнологии в деятельности учителя

placeholder

Курс профессиональной переподготовки

Математика и информатика: теория и методика преподавания в образовательной организации

a loader

Номер материала: ДA-020430

Международная дистанционная олимпиада Осень 2022

Не нашли то что искали?

Вам будут интересны эти курсы:

Оставьте свой комментарий

Авторизуйтесь, чтобы задавать вопросы.

placeholder

55 российских школ остаются на карантине по коронавирусу

Время чтения: 0 минут

placeholder

В Хабаровске утвердили дополнительные школьные каникулы

Время чтения: 1 минута

placeholder

В России будет введена должность советника директора по воспитанию

Время чтения: 1 минута

placeholder

В школе в Пермском крае произошла стрельба

Время чтения: 1 минута

placeholder

Минпросвещения разрешило школам вводить каникулы до 30 октября

Время чтения: 1 минута

placeholder

Названы лучшие по качеству проведения ЕГЭ регионы России

Время чтения: 1 минута

Подарочные сертификаты

Ответственность за разрешение любых спорных моментов, касающихся самих материалов и их содержания, берут на себя пользователи, разместившие материал на сайте. Однако администрация сайта готова оказать всяческую поддержку в решении любых вопросов, связанных с работой и содержанием сайта. Если Вы заметили, что на данном сайте незаконно используются материалы, сообщите об этом администрации сайта через форму обратной связи.

Все материалы, размещенные на сайте, созданы авторами сайта либо размещены пользователями сайта и представлены на сайте исключительно для ознакомления. Авторские права на материалы принадлежат их законным авторам. Частичное или полное копирование материалов сайта без письменного разрешения администрации сайта запрещено! Мнение администрации может не совпадать с точкой зрения авторов.

Источник

Тест по информатике «Файловая система»

20220413 vu tg sbscrb2

empty avatar

Описание разработки

Задание #1

Файл это:

Выберите один из 4 вариантов ответа:

1) область хранения данных на диске

2) программа или данные, хранящиеся в долговременной памяти

3) программа или данные, имеющие имя и хранящиеся в оперативной памяти

4) программа или данные, имеющие имя и хранящиеся в долговременной памяти

Задание #2

Имя файла состоит из двух частей:

Выберите один из 4 вариантов ответа:

1) адреса первого сектора и объёма файла

2) имени и расширения

3) области хранения файлов и каталога

4) имени и адреса первого сектора

Задание #3

Имя файлу даёт:

Выберите один из 4 вариантов ответа:

1) операционная система

3) программа при его создании

Задание #4

Расширение файлу присваивает:

Выберите один из 4 вариантов ответа:

1) программа при его создании

4) операционная система

Задание #5

Имя файла может включать до:

Выберите один из 4 вариантов ответа:

Задание #6

Под расширение отводится:

Выберите один из 4 вариантов ответа:

Задание #7

Для того, чтобы на диске можно было хранить файлы, диск должен быть предварительно:

Выберите один из 4 вариантов ответа:

Задание #8

В процессе форматирования диск разбивается на две области:

Выберите один из 4 вариантов ответа:

1) имя и расширение

2) область хранения и каталог

3) оперативную и кэш-память

4) сектора и дорожки

Задание #9

Одноуровневая файловая система:

Выберите один из 4 вариантов ответа:

1) каталог диска представляет собой иерархическую последовательность имён файлов

2) представляет собой систему вложенных папок

3) когда каталог диска представляет собой линейную последовательность имён файлов и соответствующих начальных секторов

4) каталог диска представляет собой геометрическую последовательность имён файлов

Задание #10

Выберите правильное имя файла:

Выберите один из 4 вариантов ответа:

Задание #11

Имя логического диска обозначается:

Выберите один из 4 вариантов ответа:

2) буквами и цифрами

3) русскими буквами

4) латинскими буквами

Задание #12

Путь к файлу:

Выберите один из 4 вариантов ответа:

2) начинается с последовательности имён вложенных друг в друга папок, в последней из которых находится нужный файл, затем записывается логическое имя диска,

3) начинается с последней папки, в которой находится нужный файл, затем записывается логическое имя диска

4) начинается с логического имени диска, затем записывается последовательность имён вложенных друг в друга папок, в последней из которых находится нужный файл

Источник

Имя файла в файловой системе windows может тест

Все программы и данные хранятся в долговременной

(внешней) памяти компьютера в виде файлов.

Имя файла. Имя файла состоит из двух частей, разделенных точкой: собственно имя файла и расширение, определяющее его тип (программа, данные и так далее). Собственно имя файлу дает пользователь, а тип файла обычно задается программой автоматически при его создании.

В различных операционных системах существуют различные форматы имен файлов. В операционной системе MS-DOS собственно имя файла должно содержать не более 8 букв латинского алфавита, цифр и некоторых специальных знаков, а расширение состоит из трех латинских букв, например: proba.txt

В операционной системе Windows имя файла может иметь длину до 255 символов, причем можно использовать русский алфавит, например: Единицы измерения информации.doc

Таблица 1.1. Типы файлов и расширений

Программы на языках программирования

filesys2

Таблица 1.2. Одноуровневый каталог
Имя файла Номер начального сектора
Файл_1 56
Файл_2 89
Файл_112 1200

Начальный, корневой каталог содержит вложенные каталоги 1-го уровня, в свою очередь, каждый из последних может содержать вложенные каталоги 2-го уровня и так далее. Необходимо отметить, что в каталогах всех уровней могут храниться и файлы.

Файловая система это система хранения файлов и организации каталогов.

komp33
Рис. 1.3. Иерархическая файловая система

komp34
Рис. 1.4. Пример иерархической файловой системы

Путь к файлу вместе с именем файла называют иногда полным именем файла.

Пример полного имени файла:

Однако иерархическая структура этих систем несколько различается. В иерархической файловой системе MS-DOS вершиной иерархии объектов является корневой каталог диска, который можно сравнить со стволом дерева, на котором растут ветки (подкаталоги), а на ветках располагаются листья (файлы).

komp35
Рис. 1.5. Иерархическая структура папок

Если мы хотим ознакомиться с ресурсами компьютера, необходимо открыть папку Мой компьютер.

1. В окне Мой компьютер находятся значки имеющихся в компьютере дисков. Активизация (щелчок) значка любого диска выводит в левой части окна информацию о его емкости, занятой и свободной частях.

Источник

Тест с ответами: “Операционная система Windows”

2. Список команд, которые вызываются пользователем щелком правой кнокой мыши на пиктограмме объекта:
а) контекстным меню+
б) панелью инструментов
в) каскадным меню
г) текущим меню

3. Что имеет в качестве графической рабочей среды дистрибутив Ubuntu?
а) KDE
б) Gnome+
в) Xfce
г) lxde

4. Выделите принципиальные отличия Linux от Windows:
а) открытость кода операционной системы+
б) простота использования
в) наличие нескольких графических оболочек
г) наличие большого количества легально распространяемых практически бесплатно версий
д) широкая известность и популярность

5. Windows 3.1:
а) исторически первой операционной системы, выпущенной Microsoft
б) одной из оболочек операционной системы MS DOS+
в) среды программирования
г) текстового редактора

6. Является создателем операционной системы Linux:
а) Линус Торвальдс+
б) Билл Гейтс
в) Эндрю Таненбаум
г) Пол Аллен

7. Если пользователь, работая в Проводнике, нажмёт правую клавишу мыши на пиктограмме объекта и выберет команду Копировать, то объект будет:
а) скопирован в Буфер обмена+
б) вставлен в папку Мои документы
в) перемещен в корневой каталог диска С:
г) перемещен в каталог С:TEMP

8. Дефрагментация диска это:
а) это системная служебная программа, выполняющая анализ локальных томов с последующим поиском и объединением фрагментированных файлов и папок
б) это системная служебная программа, выполняющая анализ локальных томов с последующим поиском фрагментированных файлов и папок
в) это системная служебная программа, выполняющая только анализ локальных томов на предмет наличия фрагментированных файлов и папок
г) это системная служебная программа, выполняющая анализ жестких дисков с последующим поиском и объединением фрагментированных файлов и папок для ускорения доступа и загрузки+

9. Панель инструментов в ОС Windows это:
а) блок экранных кнопок или значков+
б) область выполнения прикладной программы
в) объект для хранения файлов
г) строку меню

10. Все операции с файлами и папками в ОС Windows можно выполнить, используя следующее:
а) панель управления
б) программу проводник+
в) меню кнопки «Пуск»
г) папку Мой компьютер+

11. Jpg, gif, png, tiff:
а) названия различных файловых систем
б) расширения графических файлов (рисунков)+
в) расширения текстовых файлов
г) расширения программных файлов

12. Определите, что такое “интерфейс”:
а) взаимодействие пользователя со средствами компьютера+
б) взаимодействие магнитного диска со средствами компьютера
в) взаимодействие клавиатуры с средствами компьютера
г) взаимодействие пользователя с дискетой, что лежит на столе
д) взаимодействие пользователя и учителя

13. Выберите, что указывается с помощью названия и расширения файла:
а) назначение и тип файла+
б) назначение и название файла
в) тип и расширение файла
г) объем и тип файла
д) название и объем файла

14. Определите, какие символы разрешены в имени файла:
а) ^ * ( f ) 2 %

16. Что такое txt, doc:
а) названия различных файловых систем
б) расширения графических файлов (рисунков)
в) расширения текстовых файлов+
г) расширения программных файлов

17. Операционные системы MacOS используются преимущественно на компьютерах, которые выпускает следующая фирма:
а) Apple+
б) IBM
в) HP
г) Acer

18. Исторически первая операционная система семейства Windows:
а) Window 3.0
б) Window 3.1
в) Window NT+
г) Window 95

19. Функции, выполняемые операционной:
а) управление устройствами+
б) создание текстовых документов
в) программирование

20. Функции, выполняемые операционной:
а) управление процессами+
б) создание текстовых документов
в) программирование

21. Классификационный признак «по назначению» предполагает выделение следующих видов операционных систем:
а) Системы общего назначения+
б) Системы реального времени+
в) Специализированные системы+
г) Клиентские ОС
д) Серверные ОС

22. Современные операционные системы компании Microsoft называются так:
а) Windows+
б) Linux
в) Microsoft
г) MacOS
д) Solaris
е) BSD

23. Выберите, что нужно нажать для перевода дополнительного блока клавиатуры в цифровой режим:
а) NumLock+
б) CapsLock
в) этой частью клавиатуры лучше вообще не баловаться
г) Shift + CapsLock
д) Shift + NumLock
е) Tab

24. KDE, GNOME, Xfce:
а) оболочек операционной системы Linux+
б) операционных систем
в) графических редакторов
г) браузеров
д) сред разработки

25. FAT32, Ext2, NTFS:
а) названия различных операционных систем
б) названия различных файловых систем+
в) виды кодировки файлов
г) расширения файлов

26. Программы, которые предназначены для обслуживания конкретных периферийных устройств:
а) драйверы+
б) утилиты
в) библиотеки
г) оболочки

27. Функции, выполняемые операционной:
а) управление памятью+
б) создание текстовых документов
в) программирование

28. Функции, выполняемые операционной:
а) управление данными+
б) создание текстовых документов
в) программирование

29. В зависимости от назначения компьютера, на котором системы установлены выделяют такие системы:
а) Клиентские ОС+
б) Серверные ОС+
в) Системы общего назначения
г) Системы реального времени
д) Прочие специализированные системы

30. Название папки, которая выступает в качестве вершины файловой структуры и олицетворяет собой носитель, на котором сохраняются файлы:
а) корневой+
б) начальной
в) стартовой
г) папки верхнего уровня

Источник

Adblock
detector

Screenshot of a Windows command shell showing filenames in a directory

Filename list, with long filenames containing comma and space characters as they appear in a software display.

A filename or file name is a name used to uniquely identify a computer file in a directory structure. Different file systems impose different restrictions on filename lengths.

A filename may (depending on the file system) include:

  • name – base name of the file
  • extension (format or extension) – indicates the content of the file (e.g. .txt, .exe, .html, .COM, .c~ etc.)

The components required to identify a file by utilities and applications varies across operating systems, as does the syntax and format for a valid filename.

Filenames may contain any arbitrary bytes the user chooses. This may include things like a revision or generation number of the file such as computer code, a numerical sequence number (widely used by digital cameras through the DCF standard), a date and time (widely used by smartphone camera software and for screenshots), and/or a comment such as the name of a subject or a location or any other text to facilitate the searching the files. In fact, even unprintable characters, including bell, 0x00, Return and LineFeed can be part of a filename, although most utilities do not handle them well.

Some people use of the term filename when referring to a complete specification of device, subdirectories and filename such as the Windows C:Program FilesMicrosoft GamesChessChess.exe. The filename in this case is Chess.exe. Some utilities have settings to suppress the extension as with MS Windows Explorer.

History[edit]

On early personal computers using the CP/M operating system, with the File Allocation Table (FAT) filesystem, filenames were always 11 characters. This was referred to as the 8.3 filename with a maximum of an 8 byte name and a maximum of a 3 byte extension. Utilities and applications allowed users to specify filenames without trailing spaces and include a dot before the extension. The dot was not actually stored in the directory. Using only 7 bit characters allowed several file attributes [1]to be included in the actual filename by using the high-order-bit. These attributes included Readonly, Archive, HIDDEN and SYS. Eventually this was too restrictive and the number of characters allowed increased. The attribute bits were moved to a special block of the file including additional information. This led to compatibility problems when moving files between different file systems.[2]

During the 1970s, some mainframe and minicomputers where files on the system were identified by a user name, or account number.

For example, on Digital Equipment Corporation RSTS/E and TOPS-10 operating systems, files were identified by

  • optional device name (one or two characters) followed by an optional unit number, and a colon «:». If not present, it was presumed to be SY:
  • the account number, consisting of a bracket «[«, a pair of numbers separated by a comma, and followed by a close bracket «]». If omitted, it was presumed to be yours.
  • mandatory file name, consisting of 1 to 6 characters (upper-case letters or digits)
  • optional 3-character extension.

On the IBM OS/VS1, OS/390 and MVS operating systems, a file name was up to 44 characters, consisting of upper case letters, digits, and the period. A file name must start with a letter or number, a period must occur at least once each 8 characters, two consecutive periods could not appear in the name, and must end with a letter or digit. By convention, the letters and numbers before the first period was the account number of the owner or the project it belonged to, but there was no requirement to use this convention.

On the McGill University MUSIC/SP system, file names consisted of

  • Optional account number, which was one to four characters followed by a colon.If the account number was missing, it was presumed to be in your account, but if it was not, it was presumed to be in the *COM: pseudo-account, which is where all files marked as public were catalogued.
  • 1-17 character file name, which could be upper case letters or digits, and the period, with the requirement it not begin or end with a period, or have two consecutive periods.

The Univac VS/9 operating system had file names consisting of

  • Account name, consisting of a dollar sign «$», a 1-7 character (letter or digit) username, and a period («.»). If not present it was presumed to be in your account, but if it wasn’t, the operating system would look in the system manager’s account $TSOS. If you typed in a dollar sign only as the account, this would indicate the file was in the $TSOS account unless the first 1-7 character of the file name before the first period matched an actual account name, then that account was used, e.g. ABLE.BAKER is a file in your account, but if not there the system would search for $TSOS.ABLE.BAKER, but if $ABLE.BAKER was specified, the file $TSOS.ABLE.BAKER would be used unless $ABLE was a valid account, then it would look for a file named BAKER in that account.
  • File name, 1-56 characters (letters and digits) separated by periods. File names cannot start or end with a period, nor can two consecutive periods appear.

In 1985, RFC 959 officially defined a pathname to be the character string that must be entered into a file system by a user in order to identify a file.[3]

Around 1995, VFAT, an extension to the MS-DOS FAT filesystem, was introduced in Windows 95 and Windows NT. It allowed mixed-case Unicode long filenames (LFNs), in addition to classic «8.3» names.

References: absolute vs relative[edit]

An absolute reference includes all directory levels. In some systems, a filename reference that does not include the complete directory path defaults to the current working directory. This is a relative reference. One advantage of using a relative reference in program configuration files or scripts is that different instances of the script or program can use different files.

This makes an absolute or relative path composed of a sequence of filenames.

Number of names per file[edit]

Unix-like file systems allow a file to have more than one name; in traditional Unix-style file systems, the names are hard links to the file’s inode or equivalent. Windows supports hard links on NTFS file systems, and provides the command fsutil in Windows XP, and mklink in later versions, for creating them.[4][5] Hard links are different from Windows shortcuts, classic Mac OS/macOS aliases, or symbolic links. The introduction of LFNs with VFAT allowed filename aliases. For example, longfi~1.??? with a maximum of eight plus three characters was a filename alias of «long file name.???» as a way to conform to 8.3 limitations for older programs.

This property was used by the move command algorithm that first creates a second filename and then only removes the first filename.

Other filesystems, by design, provide only one filename per file, which guarantees that alteration of one filename’s file does not alter the other filename’s file.

Length restrictions[edit]

Some filesystems restrict the length of filenames. In some cases, these lengths apply to the entire file name, as in 44 characters on IBM S/370.[6] In other cases, the length limits may apply to particular portions of the filename, such as the name of a file in a directory, or a directory name. For example, 9 (e.g., 8-bit FAT in Standalone Disk BASIC), 11 (e.g. FAT12, FAT16, FAT32 in DOS), 14 (e.g. early Unix), 21 (Human68K), 31, 30 (e.g. Apple DOS 3.2 and 3.3), 15 (e.g. Apple ProDOS), 44 (e.g. IBM S/370),[6] or 255 (e.g. early Berkeley Unix) characters or bytes. Length limits often result from assigning fixed space in a filesystem to storing components of names, so increasing limits often requires an incompatible change, as well as reserving more space.

A particular issue with filesystems that store information in nested directories is that it may be possible to create a file with a complete pathname that exceeds implementation limits, since length checking may apply only to individual parts of the name rather than the entire name. Many Windows applications are limited to a MAX_PATH value of 260, but Windows file names can easily exceed this limit [1]. From Windows 10, version 1607, MAX_PATH limitations have been removed.[7]

Filename extensions[edit]

Many file systems, including FAT, NTFS, and VMS systems, consider as filename extension the part of the file name that consists of one or more characters following the last period in the filename, dividing the filename into two parts: a base name or stem and an extension or suffix used by some applications to indicate the file type. Multiple output files created by an application use the same basename and various extensions. For example, a compiler might use the extension FOR for source input file (for Fortran code), OBJ for the object output and LST for the listing. Although there are some common extensions, they are arbitrary and a different application might use REL and RPT. Extensions have been restricted, at least historically on some systems, to a length of 3 characters, but in general can have any length, e.g., html.

Encoding interoperability[edit]

There is no general encoding standard for filenames.

File names have to be exchanged between software environments for network file transfer, file system storage, backup and file synchronization software, configuration management, data compression and archiving, etc. It is thus very important not to lose file name information between applications. This led to wide adoption of Unicode as a standard for encoding file names, although legacy software might not be Unicode-aware.

Encoding indication interoperability[edit]

Traditionally, filenames allowed any character in their filenames as long as they were file system safe.[2] Although this permitted the use of any encoding, and thus allowed the representation of any local text on any local system, it caused many interoperability issues.

A filename could be stored using different byte strings in distinct systems within a single country, such as if one used Japanese Shift JIS encoding and another Japanese EUC encoding. Conversion was not possible as most systems did not expose a description of the encoding used for a filename as part of the extended file information. This forced costly filename encoding guessing with each file access.[2]

A solution was to adopt Unicode as the encoding for filenames.

In the classic Mac OS, however, encoding of the filename was stored with the filename attributes.[2]

Unicode interoperability[edit]

The Unicode standard solves the encoding determination issue.

Nonetheless, some limited interoperability issues remain, such as normalization (equivalence), or the Unicode version in use. For instance, UDF is limited to Unicode 2.0; macOS’s HFS+ file system applies NFD Unicode normalization and is optionally case-sensitive (case-insensitive by default.) Filename maximum length is not standard and might depend on the code unit size. Although it is a serious issue, in most cases this is a limited one.[2]

On Linux, this means the filename is not enough to open a file: additionally, the exact byte representation of the filename on the storage device is needed. This can be solved at the application level, with some tricky normalization calls.[8]

The issue of Unicode equivalence is known as «normalized-name collision». A solution is the Non-normalizing Unicode Composition Awareness used in the Subversion and Apache technical communities.[9] This solution does not normalize paths in the repository. Paths are only normalized for the purpose of comparisons. Nonetheless, some communities have patented this strategy, forbidding its use by other communities.[clarification needed]

Perspectives[edit]

To limit interoperability issues, some ideas described by Sun are to:

  • use one Unicode encoding (such as UTF-8)
  • do transparent code conversions on filenames
  • store no normalized filenames
  • check for canonical equivalence among filenames, to avoid two canonically equivalent filenames in the same directory.[2]

Those considerations create a limitation not allowing a switch to a future encoding different from UTF-8.

Unicode migration[edit]

One issue was migration to Unicode.
For this purpose, several software companies provided software for migrating filenames to the new Unicode encoding.

  • Microsoft provided migration transparent for the user throughout the VFAT technology
  • Apple provided «File Name Encoding Repair Utility v1.0».[10]
  • The Linux community provided “convmv”.[11]

Mac OS X 10.3 marked Apple’s adoption of Unicode 3.2 character decomposition, superseding the Unicode 2.1 decomposition used previously. This change caused problems for developers writing software for Mac OS X.[12]

Uniqueness[edit]

Within a single directory, filenames must be unique. Since the filename syntax also applies for directories, it is not possible to create a file and directory entries with the same name in a single directory. Multiple files in different directories may have the same name.

Uniqueness approach may differ both on the case sensitivity and on the Unicode normalization form such as NFC, NFD.
This means two separate files might be created with the same text filename and a different byte implementation of the filename, such as L»x00C0.txt» (UTF-16, NFC) (Latin capital A with grave) and L»x0041x0300.txt» (UTF-16, NFD) (Latin capital A, grave combining).[13]

Letter case preservation[edit]

Some filesystems, such as FAT, store filenames as upper-case regardless of the letter case used to create them. For example, a file created with the name «MyName.Txt» or «myname.txt» would be stored with the filename «MYNAME.TXT». Any variation of upper and lower case can be used to refer to the same file. These kinds of file systems are called case-insensitive and are not case-preserving. Some filesystems prohibit the use of lower case letters in filenames altogether.

Some file systems store filenames in the form that they were originally created; these are referred to as case-retentive or case-preserving. Such a file system can be case-sensitive or case-insensitive. If case-sensitive, then «MyName.Txt» and «myname.txt» may refer to two different files in the same directory, and each file must be referenced by the exact capitalization by which it is named. On a case-insensitive, case-preserving file system, on the other hand, only one of «MyName.Txt», «myname.txt» and «Myname.TXT» can be the name of a file in a given directory at a given time, and a file with one of these names can be referenced by any capitalization of the name.

From its original inception, Unix and its derivative systems were case-preserving. However, not all Unix-like file systems are case-sensitive; by default, HFS+ in macOS is case-insensitive, and SMB servers usually provide case-insensitive behavior (even when the underlying file system is case-sensitive, e.g. Samba on most Unix-like systems), and SMB client file systems provide case-insensitive behavior. File system case sensitivity is a considerable challenge for software such as Samba and Wine, which must interoperate efficiently with both systems that treat uppercase and lowercase files as different and with systems that treat them the same.[14]

Reserved characters and words[edit]

File systems have not always provided the same character set for composing a filename. Before Unicode became a de facto standard, file systems mostly used a locale-dependent character set. By contrast, some new systems permit a filename to be composed of almost any character of the Unicode repertoire, and even some non-Unicode byte sequences. Limitations may be imposed by the file system, operating system, application, or requirements for interoperability with other systems.

Many file system utilities prohibit control characters from appearing in filenames. In Unix-like file systems, the null character[15] and the path separator / are prohibited.

In Windows[edit]

File system utilities and naming conventions on various systems prohibit particular characters from appearing in filenames or make them problematic:[16]

Character Name Reason for prohibition
/ slash Used as a path name component separator in Unix-like, Windows, and Amiga systems. (For as long as the SwitChar setting is set to ‘/ ’, the DOS COMMAND.COM shell would consume it as a switch character, but DOS and Windows themselves always accept it as a separator on API level.)
The big solidus (Unicode code point U+29F8) is permitted in Windows filenames.
backslash Used as the default path name component separator in DOS, OS/2 and Windows (even if the SwitChar is set to ‘-‘; allowed in Unix filenames, see Note 1).
The big reverse solidus (U+29F9) is permitted in Windows filenames.
? question mark Used as a wildcard in Unix, Windows and AmigaOS; marks a single character. Allowed in Unix filenames, see Note 1.
The glottal stop ʔ (U+0294), the interrobang (U+203D), the inverted question mark ¿ (U+00BF) and the double question mark (U+2047) are allowed in all filenames.
% percent Used as a wildcard in RT-11; marks a single character. Not special on Windows.
* asterisk
or star
Used as a wildcard in Unix, DOS, RT-11, VMS and Windows. Marks any sequence of characters (Unix, Windows, DOS) or any sequence of characters in either the basename or extension (thus «*.*» in DOS means «all files». Allowed in Unix filenames, see Note 1.
See Star (glyph) for many asterisk-like characters allowed in filenames.
: colon Used to determine the mount point / drive on Windows; used to determine the virtual device or physical device such as a drive on AmigaOS, RT-11 and VMS; used as a pathname separator in classic Mac OS. Doubled after a name on VMS, indicates the DECnet nodename (equivalent to a NetBIOS (Windows networking) hostname preceded by «\».). Colon is also used in Windows to separate an alternative data stream from the main file.
The letter colon (U+A789) and the ratio symbol (U+2236) are permitted in Windows filenames. In the Segoe UI font, used in Windows Explorer, the glyphs for the colon and the letter colon are identical.
| vertical bar
or pipe
Designates software pipelining in Unix, DOS and Windows; allowed in Unix filenames, see Note 1. The mathematical operator (U+2223) is permitted in Windows filenames.
" straight double quote A legacy restriction carried over from DOS. The single quotes (U+0027), (U+2018), and (U+2019) and the curved double quotes (U+201C) and (U+201D) are permitted anywhere in filenames. See Note 1.
< less than Used to redirect input, allowed in Unix filenames, see Note 1. The spacing modifier letter ˂ (U+2C2) is permitted in Windows filenames.
> greater than Used to redirect output, allowed in Unix filenames, see Note 1. The spacing modifier letter ˃ (U+2C3) is permitted in Windows filenames.
. period
or dot
Folder names cannot end with a period in Windows, though the name can end with a period followed by a whitespace character such as a non-breaking space. Elsewhere, the period is allowed, but the last occurrence will be interpreted to be the extension separator in VMS, DOS, and Windows. In other OSes, usually considered as part of the filename, and more than one period (full stop) may be allowed. In Unix, a leading period means the file or folder is normally hidden.
, comma Allowed, but treated as separator by the command line interpreters COMMAND.COM and CMD.EXE on DOS and Windows.
; semicolon Allowed, but treated as separator by the command line interpreters COMMAND.COM and CMD.EXE on DOS and Windows.
= equals sign Allowed, but treated as separator by the command line interpreters COMMAND.COM and CMD.EXE on DOS and Windows.
space Allowed, but the space is also used as a parameter separator in command line applications. This can be solved by quoting the entire filename.

Note 1: While they are allowed in Unix file and folder names, most Unix shells require specific characters such as spaces, <, >, |, , and sometimes :, (, ), &, ;, #, as well as wildcards such as ? and *, to be quoted or escaped:

five and six<seven (example of escaping)
'five and six<seven' or "five and six<seven" (examples of quoting)

The character å (0xE5) was not allowed as the first letter in a filename under 86-DOS and MS-DOS/PC DOS 1.x-2.x, but can be used in later versions.

In Windows utilities, the space and the period are not allowed as the final character of a filename.[17] The period is allowed as the first character, but some Windows applications, such as Windows Explorer, forbid creating or renaming such files (despite this convention being used in Unix-like systems to describe hidden files and directories). Workarounds include appending a dot when renaming the file (that is then automatically removed afterwards), using alternative file managers, creating the file using the command line, or saving a file with the desired filename from within an application.[18]

Some file systems on a given operating system (especially file systems originally implemented on other operating systems), and particular applications on that operating system, may apply further restrictions and interpretations. See comparison of file systems for more details on restrictions.

In Unix-like systems, DOS, and Windows, the filenames «.» and «..» have special meanings (current and parent directory respectively). Windows 95/98/ME also uses names like «…», «….» and so on to denote grandparent or great-grandparent directories.[19] All Windows versions forbid creation of filenames that consist of only dots, although names consist of three dots («…») or more are legal in Unix.

In addition, in Windows and DOS utilities, some words are also reserved and cannot be used as filenames.[18] For example, DOS device files:[20]

CON, PRN, AUX, CLOCK$, NUL
COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9[21]
LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9[21]
LST (only in 86-DOS and DOS 1.xx)
KEYBD$, SCREEN$ (only in multitasking MS-DOS 4.0)
$IDLE$ (only in Concurrent DOS 386, Multiuser DOS and DR DOS 5.0 and higher)
CONFIG$ (only in MS-DOS 7.0-8.0)

Systems that have these restrictions cause incompatibilities with some other filesystems. For example, Windows will fail to handle, or raise error reports for, these legal UNIX filenames: aux.c,[22] q»uote»s.txt, or NUL.txt.

NTFS filenames that are used internally include:

$Mft, $MftMirr, $LogFile, $Volume, $AttrDef, $Bitmap, $Boot, $BadClus, $Secure,
$Upcase, $Extend, $Quota, $ObjId and $Reparse

Comparison of filename limitations[edit]

System Case
sensitive
Case
preserving
Allowed character set Reserved characters Reserved words Maximum length (characters) Comments
8-bit FAT ? ? 7-bit ASCII (but stored as bytes) first character not allowed to be 0x00 or 0xFF 9 Maximum 9 character base name limit for sequential files (without extension), or maximum 6 and 3 character extension for binary files; see 6.3 filename
FAT12, FAT16, FAT32 No No any SBCS/DBCS OEM codepage 0x00-0x1F 0x7F " * / : < > ? | + , . ; = [ ] (in some environments also: ! @; DOS 1/2 did not allow 0xE5 as first character) Device names including: $IDLE$ AUX COM1…COM4 CON CONFIG$ CLOCK$ KEYBD$ LPT1…LPT4 LST NUL PRN SCREEN$ (depending on AVAILDEV status everywhere or only in virtual DEV directory) 11 Maximum 8 character base name limit and 3 character extension; see 8.3 filename
VFAT No Yes Unicode, using UCS-2 encoding 0x00-0x1F 0x7F " * / : < > ? | 255
exFAT No Yes Unicode, using UTF-16 encoding 0x00-0x1F 0x7F " * / : < > ? | 255
NTFS Optional Yes Unicode, using UTF-16 encoding 0x00-0x1F 0x7F " * / : < > ? | Only in root directory: $AttrDef $BadClus $Bitmap $Boot $LogFile $MFT $MFTMirr pagefile.sys $Secure $UpCase $Volume $Extend $Extend$ObjId $Extend$Quota $Extend$Reparse ($Extend is a directory) 255 Paths can be up to 32,000 characters.

Forbids the use of characters in range 1-31 (0x01-0x1F) and characters » * / : < > ? | unless the name is flagged as being in the Posix namespace. NTFS allows each path component (directory or filename) to be 255 characters long[dubious – discuss].

Windows forbids the use of the MS-DOS device names AUX, CLOCK$, COM0, …, COM9, CON, LPT0, …, LPT9, NUL and PRN, as well as these names with any extension (for example, AUX.txt), except when using Long UNC paths (ex. \.C:nul.txt or \?D:auxcon). (CLOCK$ may be used, if an extension is provided.) The Win32 API strips trailing period (full-stop), and leading and trailing space characters from filenames, except when UNC paths are used. These restrictions only apply to Windows; in Linux distributions that support NTFS, filenames are written using NTFS’s Posix namespace, which allows any Unicode character except / and NUL.

OS/2 HPFS No Yes any 8-bit set |?*<«:>/ 254
Mac OS HFS No Yes any 8-bit set : 255 old versions of Finder are limited to 31 characters
Mac OS HFS+ Optional Yes Unicode, using UTF-16 encoding : on disk, in classic Mac OS, and at the Carbon layer in macOS; / at the Unix layer in macOS 255 Mac OS 8.1 — macOS
macOS APFS Optional Yes Unicode, using UTF-16 encoding[citation needed] In the Finder, filenames containing / can be created, but / is stored as a colon (:) in the filesystem, and is shown as such on the command line. Filenames containing : created from the command line are shown with / instead of : in the Finder, so that it is impossible to create a file that the Finder shows as having a : in its filename. 255 macOS[clarification needed]
most UNIX file systems Yes Yes any 8-bit set / null 255 a leading . indicates that ls and file managers will not show the file by default
z/OS classic MVS filesystem (datasets) No No EBCDIC code pages other than $ # @ — x’C0′ 44 first character must be alphabetic or national ($, #, @)

«Qualified» contains . after every 8 characters or fewer.[23] Partitioned data sets (PDS or PDSE) are divided into members with names of up to 8 characters; the member name is placed in parenthesises after the name of the PDS, e.g. PAYROLL.DEV.CBL(PROG001)

CMS file system No No EBCDIC code pages 8 + 8 Single-level directory structure with disk letters (A–Z). Maximum of 8 character file name with maximum 8 character file type, separated by whitespace. For example, a TEXT file called MEMO on disk A would be accessed as «MEMO TEXT A». (Later versions of VM introduced hierarchical filesystem structures, SFS and BFS, but the original flat directory «minidisk» structure is still widely used.)
early UNIX (AT&T Corporation) Yes Yes any 8-bit set / 14 a leading . indicates a «hidden» file
POSIX «Fully portable filenames»[24] Yes Yes A–Z a–z 0–9 . _ - / null 14 hyphen must not be first character. A command line utility checking for conformance, «pathchk», is part of the IEEE 1003.1 standard and of The Open Group Base Specifications[25]
ISO 9660 No ? A–Z 0–9 _ . «close to 180″(Level 2) or 200(Level 3) Used on CDs; 8 directory levels max (for Level 1, not level 2,3)
Amiga OFS No Yes any 8-bit set : / null 30 Original File System 1985
Amiga FFS No Yes any 8-bit set : / null 30 Fast File System 1988
Amiga PFS No Yes any 8-bit set : / null 107 Professional File System 1993
Amiga SFS No Yes any 8-bit set : / null 107 Smart File System 1998
Amiga FFS2 No Yes any 8-bit set : / null 107 Fast File System 2 2002
BeOS BFS Yes Yes Unicode, using UTF-8 encoding / 255
DEC PDP-11 RT-11 No No RADIX-50 6 + 3 Flat filesystem with no subdirs. A full «file specification» includes device, filename and extension (file type) in the format: dev:filnam.ext.
DEC VAX VMS No From
v7.2
A–Z 0–9 $ - _ 32 per component; earlier 9 per component; latterly, 255 for a filename and 32 for an extension. a full «file specification» includes nodename, diskname, directory/ies, filename, extension and version in the format: OURNODE::MYDISK:[THISDIR.THATDIR]FILENAME.EXTENSION;2 Directories can only go 8 levels deep.
Commodore DOS Yes Yes any 8-bit set :, = $ 16 length depends on the drive, usually 16
HP 250 Yes Yes any 8-bit set SPACE ", : NULL CHR$(255) 6 Disks and tape drives are addressed either using a label (up to 8 characters) or a unit specification. The HP 250 file system does not use directories, nor does it use extensions to indicate file type. Instead the type is an attribute (e.g. DATA, PROG, BKUP or SYST for data files, program files, backups and the OS itself).[26]

See also[edit]

  • File system
  • Fully qualified file name
  • Long filename
  • Path (computing)
  • Slug (Web publishing)
  • Symbolic link
  • Uniform Resource Identifier (URI)
  • Uniform Resource Locator (URL) and Internationalized resource identifier
  • Windows (Win32) File Naming Conventions (Filesystem Agnostic)

References[edit]

  1. ^ «CPM — CP/M disk and file system format».
  2. ^ a b c d e f David Robinson; Ienup Sung; Nicolas Williams (March 2006). «Solaris presentations: File Systems, Unicode, and Normalization» (PDF). San Francisco: Sun.com. Archived from the original (PDF) on July 4, 2012.
  3. ^ RFC 959 IETF.org RFC 959, File Transfer Protocol (FTP)
  4. ^ «Fsutil command description page». Microsoft.com. Retrieved September 15, 2013.
  5. ^ «NTFS Hard Links, Directory Junctions, and Windows Shortcuts». Flex hex. Inv Softworks. Retrieved March 12, 2011.
  6. ^ a b «ddname support with FTP, z/OS V1R11.0 Communications Server IP User’s Guide and Commands z/OS V1R10.0-V1R11.0 SC31-8780-09». IBM.com.
  7. ^ «Maximum Path Length Limitation — Win32 apps».
  8. ^ «Filenames with accents». Ned Batchelder. June 2011. Retrieved September 17, 2013.
  9. ^ «NonNormalizingUnicodeCompositionAwareness — Subversion Wiki». Wiki.apache.org. January 21, 2013. Retrieved September 17, 2013.
  10. ^ «File Name Encoding Repair Utility v1.0». Support.apple.com. June 1, 2006. Retrieved October 2, 2018.
  11. ^ «convmv — converts filenames from one encoding to another». J3e.de. Retrieved September 17, 2013.
  12. ^ «Re: git on MacOSX and files with decomposed utf-8 file names». KernelTrap. May 7, 2010. Archived from the original on March 15, 2011. Retrieved July 5, 2010.
  13. ^ «Cross platform filepath naming conventions — General Programming». GameDev.net. Retrieved September 17, 2013.
  14. ^ «CaseInsensitiveFilenames — The Official Wine Wiki». Wiki.winehq.org. November 8, 2009. Archived from the original on August 18, 2010. Retrieved August 20, 2010.
  15. ^ «The Open Group Base Specifications Issue 6». IEEE Std 1003.1-2001. The Open Group. 2001.
  16. ^ «Naming Files, Paths, and Namespaces (Windows)». Msdn.microsoft.com. August 26, 2013. Retrieved September 17, 2013.
  17. ^ «Windows Naming Conventions». MSDN, Microsoft.com. See last bulleted item.
  18. ^ a b Naming a file msdn.microsoft.com (MSDN), filename restrictions on Windows
  19. ^ Microsoft Windows 95 README for Tips and Tricks, Microsoft, retrieved August 27, 2015
  20. ^ MS-DOS Device Driver Names Cannot be Used as File Names., Microsoft
  21. ^ a b Naming Files, Paths, and Namespaces, Microsoft
  22. ^ Ritter, Gunnar (January 30, 2007). «The tale of «aux.c»«. Heirloom Project.
  23. ^ «Subparameter Definition, z/OS V1R11.0 MVS JCL Reference». IBM.com. Retrieved September 17, 2013.
  24. ^ Lewine, Donald. POSIX Programmer’s Guide: Writing Portable UNIX Programs 1991 O’Reilly & Associates, Inc. Sebastopol, CA pp63-64
  25. ^ pathchk — check pathnames
  26. ^ Hewlett-Packard Company Roseville, CA HP 250 Syntax Reference Rev 1/84 Manual Part no 45260-90063

External links[edit]

  • Data Formats Filename at Curlie
  • File Extension Library
  • FILExt
  • WikiExt — File Extensions Encyclopedia
  • Naming Files, Paths, and Namespaces (MSDN)
  • 2009 POSIX portable filename character set
  • Standard ECMA-208, December 1994, System-Independent Data Format
  • Best Practices for File Naming, USA: Stanford University Libraries, Data Management Services

Screenshot of a Windows command shell showing filenames in a directory

Filename list, with long filenames containing comma and space characters as they appear in a software display.

A filename or file name is a name used to uniquely identify a computer file in a directory structure. Different file systems impose different restrictions on filename lengths.

A filename may (depending on the file system) include:

  • name – base name of the file
  • extension (format or extension) – indicates the content of the file (e.g. .txt, .exe, .html, .COM, .c~ etc.)

The components required to identify a file by utilities and applications varies across operating systems, as does the syntax and format for a valid filename.

Filenames may contain any arbitrary bytes the user chooses. This may include things like a revision or generation number of the file such as computer code, a numerical sequence number (widely used by digital cameras through the DCF standard), a date and time (widely used by smartphone camera software and for screenshots), and/or a comment such as the name of a subject or a location or any other text to facilitate the searching the files. In fact, even unprintable characters, including bell, 0x00, Return and LineFeed can be part of a filename, although most utilities do not handle them well.

Some people use of the term filename when referring to a complete specification of device, subdirectories and filename such as the Windows C:Program FilesMicrosoft GamesChessChess.exe. The filename in this case is Chess.exe. Some utilities have settings to suppress the extension as with MS Windows Explorer.

History[edit]

On early personal computers using the CP/M operating system, with the File Allocation Table (FAT) filesystem, filenames were always 11 characters. This was referred to as the 8.3 filename with a maximum of an 8 byte name and a maximum of a 3 byte extension. Utilities and applications allowed users to specify filenames without trailing spaces and include a dot before the extension. The dot was not actually stored in the directory. Using only 7 bit characters allowed several file attributes [1]to be included in the actual filename by using the high-order-bit. These attributes included Readonly, Archive, HIDDEN and SYS. Eventually this was too restrictive and the number of characters allowed increased. The attribute bits were moved to a special block of the file including additional information. This led to compatibility problems when moving files between different file systems.[2]

During the 1970s, some mainframe and minicomputers where files on the system were identified by a user name, or account number.

For example, on Digital Equipment Corporation RSTS/E and TOPS-10 operating systems, files were identified by

  • optional device name (one or two characters) followed by an optional unit number, and a colon «:». If not present, it was presumed to be SY:
  • the account number, consisting of a bracket «[«, a pair of numbers separated by a comma, and followed by a close bracket «]». If omitted, it was presumed to be yours.
  • mandatory file name, consisting of 1 to 6 characters (upper-case letters or digits)
  • optional 3-character extension.

On the IBM OS/VS1, OS/390 and MVS operating systems, a file name was up to 44 characters, consisting of upper case letters, digits, and the period. A file name must start with a letter or number, a period must occur at least once each 8 characters, two consecutive periods could not appear in the name, and must end with a letter or digit. By convention, the letters and numbers before the first period was the account number of the owner or the project it belonged to, but there was no requirement to use this convention.

On the McGill University MUSIC/SP system, file names consisted of

  • Optional account number, which was one to four characters followed by a colon.If the account number was missing, it was presumed to be in your account, but if it was not, it was presumed to be in the *COM: pseudo-account, which is where all files marked as public were catalogued.
  • 1-17 character file name, which could be upper case letters or digits, and the period, with the requirement it not begin or end with a period, or have two consecutive periods.

The Univac VS/9 operating system had file names consisting of

  • Account name, consisting of a dollar sign «$», a 1-7 character (letter or digit) username, and a period («.»). If not present it was presumed to be in your account, but if it wasn’t, the operating system would look in the system manager’s account $TSOS. If you typed in a dollar sign only as the account, this would indicate the file was in the $TSOS account unless the first 1-7 character of the file name before the first period matched an actual account name, then that account was used, e.g. ABLE.BAKER is a file in your account, but if not there the system would search for $TSOS.ABLE.BAKER, but if $ABLE.BAKER was specified, the file $TSOS.ABLE.BAKER would be used unless $ABLE was a valid account, then it would look for a file named BAKER in that account.
  • File name, 1-56 characters (letters and digits) separated by periods. File names cannot start or end with a period, nor can two consecutive periods appear.

In 1985, RFC 959 officially defined a pathname to be the character string that must be entered into a file system by a user in order to identify a file.[3]

Around 1995, VFAT, an extension to the MS-DOS FAT filesystem, was introduced in Windows 95 and Windows NT. It allowed mixed-case Unicode long filenames (LFNs), in addition to classic «8.3» names.

References: absolute vs relative[edit]

An absolute reference includes all directory levels. In some systems, a filename reference that does not include the complete directory path defaults to the current working directory. This is a relative reference. One advantage of using a relative reference in program configuration files or scripts is that different instances of the script or program can use different files.

This makes an absolute or relative path composed of a sequence of filenames.

Number of names per file[edit]

Unix-like file systems allow a file to have more than one name; in traditional Unix-style file systems, the names are hard links to the file’s inode or equivalent. Windows supports hard links on NTFS file systems, and provides the command fsutil in Windows XP, and mklink in later versions, for creating them.[4][5] Hard links are different from Windows shortcuts, classic Mac OS/macOS aliases, or symbolic links. The introduction of LFNs with VFAT allowed filename aliases. For example, longfi~1.??? with a maximum of eight plus three characters was a filename alias of «long file name.???» as a way to conform to 8.3 limitations for older programs.

This property was used by the move command algorithm that first creates a second filename and then only removes the first filename.

Other filesystems, by design, provide only one filename per file, which guarantees that alteration of one filename’s file does not alter the other filename’s file.

Length restrictions[edit]

Some filesystems restrict the length of filenames. In some cases, these lengths apply to the entire file name, as in 44 characters on IBM S/370.[6] In other cases, the length limits may apply to particular portions of the filename, such as the name of a file in a directory, or a directory name. For example, 9 (e.g., 8-bit FAT in Standalone Disk BASIC), 11 (e.g. FAT12, FAT16, FAT32 in DOS), 14 (e.g. early Unix), 21 (Human68K), 31, 30 (e.g. Apple DOS 3.2 and 3.3), 15 (e.g. Apple ProDOS), 44 (e.g. IBM S/370),[6] or 255 (e.g. early Berkeley Unix) characters or bytes. Length limits often result from assigning fixed space in a filesystem to storing components of names, so increasing limits often requires an incompatible change, as well as reserving more space.

A particular issue with filesystems that store information in nested directories is that it may be possible to create a file with a complete pathname that exceeds implementation limits, since length checking may apply only to individual parts of the name rather than the entire name. Many Windows applications are limited to a MAX_PATH value of 260, but Windows file names can easily exceed this limit [1]. From Windows 10, version 1607, MAX_PATH limitations have been removed.[7]

Filename extensions[edit]

Many file systems, including FAT, NTFS, and VMS systems, consider as filename extension the part of the file name that consists of one or more characters following the last period in the filename, dividing the filename into two parts: a base name or stem and an extension or suffix used by some applications to indicate the file type. Multiple output files created by an application use the same basename and various extensions. For example, a compiler might use the extension FOR for source input file (for Fortran code), OBJ for the object output and LST for the listing. Although there are some common extensions, they are arbitrary and a different application might use REL and RPT. Extensions have been restricted, at least historically on some systems, to a length of 3 characters, but in general can have any length, e.g., html.

Encoding interoperability[edit]

There is no general encoding standard for filenames.

File names have to be exchanged between software environments for network file transfer, file system storage, backup and file synchronization software, configuration management, data compression and archiving, etc. It is thus very important not to lose file name information between applications. This led to wide adoption of Unicode as a standard for encoding file names, although legacy software might not be Unicode-aware.

Encoding indication interoperability[edit]

Traditionally, filenames allowed any character in their filenames as long as they were file system safe.[2] Although this permitted the use of any encoding, and thus allowed the representation of any local text on any local system, it caused many interoperability issues.

A filename could be stored using different byte strings in distinct systems within a single country, such as if one used Japanese Shift JIS encoding and another Japanese EUC encoding. Conversion was not possible as most systems did not expose a description of the encoding used for a filename as part of the extended file information. This forced costly filename encoding guessing with each file access.[2]

A solution was to adopt Unicode as the encoding for filenames.

In the classic Mac OS, however, encoding of the filename was stored with the filename attributes.[2]

Unicode interoperability[edit]

The Unicode standard solves the encoding determination issue.

Nonetheless, some limited interoperability issues remain, such as normalization (equivalence), or the Unicode version in use. For instance, UDF is limited to Unicode 2.0; macOS’s HFS+ file system applies NFD Unicode normalization and is optionally case-sensitive (case-insensitive by default.) Filename maximum length is not standard and might depend on the code unit size. Although it is a serious issue, in most cases this is a limited one.[2]

On Linux, this means the filename is not enough to open a file: additionally, the exact byte representation of the filename on the storage device is needed. This can be solved at the application level, with some tricky normalization calls.[8]

The issue of Unicode equivalence is known as «normalized-name collision». A solution is the Non-normalizing Unicode Composition Awareness used in the Subversion and Apache technical communities.[9] This solution does not normalize paths in the repository. Paths are only normalized for the purpose of comparisons. Nonetheless, some communities have patented this strategy, forbidding its use by other communities.[clarification needed]

Perspectives[edit]

To limit interoperability issues, some ideas described by Sun are to:

  • use one Unicode encoding (such as UTF-8)
  • do transparent code conversions on filenames
  • store no normalized filenames
  • check for canonical equivalence among filenames, to avoid two canonically equivalent filenames in the same directory.[2]

Those considerations create a limitation not allowing a switch to a future encoding different from UTF-8.

Unicode migration[edit]

One issue was migration to Unicode.
For this purpose, several software companies provided software for migrating filenames to the new Unicode encoding.

  • Microsoft provided migration transparent for the user throughout the VFAT technology
  • Apple provided «File Name Encoding Repair Utility v1.0».[10]
  • The Linux community provided “convmv”.[11]

Mac OS X 10.3 marked Apple’s adoption of Unicode 3.2 character decomposition, superseding the Unicode 2.1 decomposition used previously. This change caused problems for developers writing software for Mac OS X.[12]

Uniqueness[edit]

Within a single directory, filenames must be unique. Since the filename syntax also applies for directories, it is not possible to create a file and directory entries with the same name in a single directory. Multiple files in different directories may have the same name.

Uniqueness approach may differ both on the case sensitivity and on the Unicode normalization form such as NFC, NFD.
This means two separate files might be created with the same text filename and a different byte implementation of the filename, such as L»x00C0.txt» (UTF-16, NFC) (Latin capital A with grave) and L»x0041x0300.txt» (UTF-16, NFD) (Latin capital A, grave combining).[13]

Letter case preservation[edit]

Some filesystems, such as FAT, store filenames as upper-case regardless of the letter case used to create them. For example, a file created with the name «MyName.Txt» or «myname.txt» would be stored with the filename «MYNAME.TXT». Any variation of upper and lower case can be used to refer to the same file. These kinds of file systems are called case-insensitive and are not case-preserving. Some filesystems prohibit the use of lower case letters in filenames altogether.

Some file systems store filenames in the form that they were originally created; these are referred to as case-retentive or case-preserving. Such a file system can be case-sensitive or case-insensitive. If case-sensitive, then «MyName.Txt» and «myname.txt» may refer to two different files in the same directory, and each file must be referenced by the exact capitalization by which it is named. On a case-insensitive, case-preserving file system, on the other hand, only one of «MyName.Txt», «myname.txt» and «Myname.TXT» can be the name of a file in a given directory at a given time, and a file with one of these names can be referenced by any capitalization of the name.

From its original inception, Unix and its derivative systems were case-preserving. However, not all Unix-like file systems are case-sensitive; by default, HFS+ in macOS is case-insensitive, and SMB servers usually provide case-insensitive behavior (even when the underlying file system is case-sensitive, e.g. Samba on most Unix-like systems), and SMB client file systems provide case-insensitive behavior. File system case sensitivity is a considerable challenge for software such as Samba and Wine, which must interoperate efficiently with both systems that treat uppercase and lowercase files as different and with systems that treat them the same.[14]

Reserved characters and words[edit]

File systems have not always provided the same character set for composing a filename. Before Unicode became a de facto standard, file systems mostly used a locale-dependent character set. By contrast, some new systems permit a filename to be composed of almost any character of the Unicode repertoire, and even some non-Unicode byte sequences. Limitations may be imposed by the file system, operating system, application, or requirements for interoperability with other systems.

Many file system utilities prohibit control characters from appearing in filenames. In Unix-like file systems, the null character[15] and the path separator / are prohibited.

In Windows[edit]

File system utilities and naming conventions on various systems prohibit particular characters from appearing in filenames or make them problematic:[16]

Character Name Reason for prohibition
/ slash Used as a path name component separator in Unix-like, Windows, and Amiga systems. (For as long as the SwitChar setting is set to ‘/ ’, the DOS COMMAND.COM shell would consume it as a switch character, but DOS and Windows themselves always accept it as a separator on API level.)
The big solidus (Unicode code point U+29F8) is permitted in Windows filenames.
backslash Used as the default path name component separator in DOS, OS/2 and Windows (even if the SwitChar is set to ‘-‘; allowed in Unix filenames, see Note 1).
The big reverse solidus (U+29F9) is permitted in Windows filenames.
? question mark Used as a wildcard in Unix, Windows and AmigaOS; marks a single character. Allowed in Unix filenames, see Note 1.
The glottal stop ʔ (U+0294), the interrobang (U+203D), the inverted question mark ¿ (U+00BF) and the double question mark (U+2047) are allowed in all filenames.
% percent Used as a wildcard in RT-11; marks a single character. Not special on Windows.
* asterisk
or star
Used as a wildcard in Unix, DOS, RT-11, VMS and Windows. Marks any sequence of characters (Unix, Windows, DOS) or any sequence of characters in either the basename or extension (thus «*.*» in DOS means «all files». Allowed in Unix filenames, see Note 1.
See Star (glyph) for many asterisk-like characters allowed in filenames.
: colon Used to determine the mount point / drive on Windows; used to determine the virtual device or physical device such as a drive on AmigaOS, RT-11 and VMS; used as a pathname separator in classic Mac OS. Doubled after a name on VMS, indicates the DECnet nodename (equivalent to a NetBIOS (Windows networking) hostname preceded by «\».). Colon is also used in Windows to separate an alternative data stream from the main file.
The letter colon (U+A789) and the ratio symbol (U+2236) are permitted in Windows filenames. In the Segoe UI font, used in Windows Explorer, the glyphs for the colon and the letter colon are identical.
| vertical bar
or pipe
Designates software pipelining in Unix, DOS and Windows; allowed in Unix filenames, see Note 1. The mathematical operator (U+2223) is permitted in Windows filenames.
" straight double quote A legacy restriction carried over from DOS. The single quotes (U+0027), (U+2018), and (U+2019) and the curved double quotes (U+201C) and (U+201D) are permitted anywhere in filenames. See Note 1.
< less than Used to redirect input, allowed in Unix filenames, see Note 1. The spacing modifier letter ˂ (U+2C2) is permitted in Windows filenames.
> greater than Used to redirect output, allowed in Unix filenames, see Note 1. The spacing modifier letter ˃ (U+2C3) is permitted in Windows filenames.
. period
or dot
Folder names cannot end with a period in Windows, though the name can end with a period followed by a whitespace character such as a non-breaking space. Elsewhere, the period is allowed, but the last occurrence will be interpreted to be the extension separator in VMS, DOS, and Windows. In other OSes, usually considered as part of the filename, and more than one period (full stop) may be allowed. In Unix, a leading period means the file or folder is normally hidden.
, comma Allowed, but treated as separator by the command line interpreters COMMAND.COM and CMD.EXE on DOS and Windows.
; semicolon Allowed, but treated as separator by the command line interpreters COMMAND.COM and CMD.EXE on DOS and Windows.
= equals sign Allowed, but treated as separator by the command line interpreters COMMAND.COM and CMD.EXE on DOS and Windows.
space Allowed, but the space is also used as a parameter separator in command line applications. This can be solved by quoting the entire filename.

Note 1: While they are allowed in Unix file and folder names, most Unix shells require specific characters such as spaces, <, >, |, , and sometimes :, (, ), &, ;, #, as well as wildcards such as ? and *, to be quoted or escaped:

five and six<seven (example of escaping)
'five and six<seven' or "five and six<seven" (examples of quoting)

The character å (0xE5) was not allowed as the first letter in a filename under 86-DOS and MS-DOS/PC DOS 1.x-2.x, but can be used in later versions.

In Windows utilities, the space and the period are not allowed as the final character of a filename.[17] The period is allowed as the first character, but some Windows applications, such as Windows Explorer, forbid creating or renaming such files (despite this convention being used in Unix-like systems to describe hidden files and directories). Workarounds include appending a dot when renaming the file (that is then automatically removed afterwards), using alternative file managers, creating the file using the command line, or saving a file with the desired filename from within an application.[18]

Some file systems on a given operating system (especially file systems originally implemented on other operating systems), and particular applications on that operating system, may apply further restrictions and interpretations. See comparison of file systems for more details on restrictions.

In Unix-like systems, DOS, and Windows, the filenames «.» and «..» have special meanings (current and parent directory respectively). Windows 95/98/ME also uses names like «…», «….» and so on to denote grandparent or great-grandparent directories.[19] All Windows versions forbid creation of filenames that consist of only dots, although names consist of three dots («…») or more are legal in Unix.

In addition, in Windows and DOS utilities, some words are also reserved and cannot be used as filenames.[18] For example, DOS device files:[20]

CON, PRN, AUX, CLOCK$, NUL
COM0, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9[21]
LPT0, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9[21]
LST (only in 86-DOS and DOS 1.xx)
KEYBD$, SCREEN$ (only in multitasking MS-DOS 4.0)
$IDLE$ (only in Concurrent DOS 386, Multiuser DOS and DR DOS 5.0 and higher)
CONFIG$ (only in MS-DOS 7.0-8.0)

Systems that have these restrictions cause incompatibilities with some other filesystems. For example, Windows will fail to handle, or raise error reports for, these legal UNIX filenames: aux.c,[22] q»uote»s.txt, or NUL.txt.

NTFS filenames that are used internally include:

$Mft, $MftMirr, $LogFile, $Volume, $AttrDef, $Bitmap, $Boot, $BadClus, $Secure,
$Upcase, $Extend, $Quota, $ObjId and $Reparse

Comparison of filename limitations[edit]

System Case
sensitive
Case
preserving
Allowed character set Reserved characters Reserved words Maximum length (characters) Comments
8-bit FAT ? ? 7-bit ASCII (but stored as bytes) first character not allowed to be 0x00 or 0xFF 9 Maximum 9 character base name limit for sequential files (without extension), or maximum 6 and 3 character extension for binary files; see 6.3 filename
FAT12, FAT16, FAT32 No No any SBCS/DBCS OEM codepage 0x00-0x1F 0x7F " * / : < > ? | + , . ; = [ ] (in some environments also: ! @; DOS 1/2 did not allow 0xE5 as first character) Device names including: $IDLE$ AUX COM1…COM4 CON CONFIG$ CLOCK$ KEYBD$ LPT1…LPT4 LST NUL PRN SCREEN$ (depending on AVAILDEV status everywhere or only in virtual DEV directory) 11 Maximum 8 character base name limit and 3 character extension; see 8.3 filename
VFAT No Yes Unicode, using UCS-2 encoding 0x00-0x1F 0x7F " * / : < > ? | 255
exFAT No Yes Unicode, using UTF-16 encoding 0x00-0x1F 0x7F " * / : < > ? | 255
NTFS Optional Yes Unicode, using UTF-16 encoding 0x00-0x1F 0x7F " * / : < > ? | Only in root directory: $AttrDef $BadClus $Bitmap $Boot $LogFile $MFT $MFTMirr pagefile.sys $Secure $UpCase $Volume $Extend $Extend$ObjId $Extend$Quota $Extend$Reparse ($Extend is a directory) 255 Paths can be up to 32,000 characters.

Forbids the use of characters in range 1-31 (0x01-0x1F) and characters » * / : < > ? | unless the name is flagged as being in the Posix namespace. NTFS allows each path component (directory or filename) to be 255 characters long[dubious – discuss].

Windows forbids the use of the MS-DOS device names AUX, CLOCK$, COM0, …, COM9, CON, LPT0, …, LPT9, NUL and PRN, as well as these names with any extension (for example, AUX.txt), except when using Long UNC paths (ex. \.C:nul.txt or \?D:auxcon). (CLOCK$ may be used, if an extension is provided.) The Win32 API strips trailing period (full-stop), and leading and trailing space characters from filenames, except when UNC paths are used. These restrictions only apply to Windows; in Linux distributions that support NTFS, filenames are written using NTFS’s Posix namespace, which allows any Unicode character except / and NUL.

OS/2 HPFS No Yes any 8-bit set |?*<«:>/ 254
Mac OS HFS No Yes any 8-bit set : 255 old versions of Finder are limited to 31 characters
Mac OS HFS+ Optional Yes Unicode, using UTF-16 encoding : on disk, in classic Mac OS, and at the Carbon layer in macOS; / at the Unix layer in macOS 255 Mac OS 8.1 — macOS
macOS APFS Optional Yes Unicode, using UTF-16 encoding[citation needed] In the Finder, filenames containing / can be created, but / is stored as a colon (:) in the filesystem, and is shown as such on the command line. Filenames containing : created from the command line are shown with / instead of : in the Finder, so that it is impossible to create a file that the Finder shows as having a : in its filename. 255 macOS[clarification needed]
most UNIX file systems Yes Yes any 8-bit set / null 255 a leading . indicates that ls and file managers will not show the file by default
z/OS classic MVS filesystem (datasets) No No EBCDIC code pages other than $ # @ — x’C0′ 44 first character must be alphabetic or national ($, #, @)

«Qualified» contains . after every 8 characters or fewer.[23] Partitioned data sets (PDS or PDSE) are divided into members with names of up to 8 characters; the member name is placed in parenthesises after the name of the PDS, e.g. PAYROLL.DEV.CBL(PROG001)

CMS file system No No EBCDIC code pages 8 + 8 Single-level directory structure with disk letters (A–Z). Maximum of 8 character file name with maximum 8 character file type, separated by whitespace. For example, a TEXT file called MEMO on disk A would be accessed as «MEMO TEXT A». (Later versions of VM introduced hierarchical filesystem structures, SFS and BFS, but the original flat directory «minidisk» structure is still widely used.)
early UNIX (AT&T Corporation) Yes Yes any 8-bit set / 14 a leading . indicates a «hidden» file
POSIX «Fully portable filenames»[24] Yes Yes A–Z a–z 0–9 . _ - / null 14 hyphen must not be first character. A command line utility checking for conformance, «pathchk», is part of the IEEE 1003.1 standard and of The Open Group Base Specifications[25]
ISO 9660 No ? A–Z 0–9 _ . «close to 180″(Level 2) or 200(Level 3) Used on CDs; 8 directory levels max (for Level 1, not level 2,3)
Amiga OFS No Yes any 8-bit set : / null 30 Original File System 1985
Amiga FFS No Yes any 8-bit set : / null 30 Fast File System 1988
Amiga PFS No Yes any 8-bit set : / null 107 Professional File System 1993
Amiga SFS No Yes any 8-bit set : / null 107 Smart File System 1998
Amiga FFS2 No Yes any 8-bit set : / null 107 Fast File System 2 2002
BeOS BFS Yes Yes Unicode, using UTF-8 encoding / 255
DEC PDP-11 RT-11 No No RADIX-50 6 + 3 Flat filesystem with no subdirs. A full «file specification» includes device, filename and extension (file type) in the format: dev:filnam.ext.
DEC VAX VMS No From
v7.2
A–Z 0–9 $ - _ 32 per component; earlier 9 per component; latterly, 255 for a filename and 32 for an extension. a full «file specification» includes nodename, diskname, directory/ies, filename, extension and version in the format: OURNODE::MYDISK:[THISDIR.THATDIR]FILENAME.EXTENSION;2 Directories can only go 8 levels deep.
Commodore DOS Yes Yes any 8-bit set :, = $ 16 length depends on the drive, usually 16
HP 250 Yes Yes any 8-bit set SPACE ", : NULL CHR$(255) 6 Disks and tape drives are addressed either using a label (up to 8 characters) or a unit specification. The HP 250 file system does not use directories, nor does it use extensions to indicate file type. Instead the type is an attribute (e.g. DATA, PROG, BKUP or SYST for data files, program files, backups and the OS itself).[26]

See also[edit]

  • File system
  • Fully qualified file name
  • Long filename
  • Path (computing)
  • Slug (Web publishing)
  • Symbolic link
  • Uniform Resource Identifier (URI)
  • Uniform Resource Locator (URL) and Internationalized resource identifier
  • Windows (Win32) File Naming Conventions (Filesystem Agnostic)

References[edit]

  1. ^ «CPM — CP/M disk and file system format».
  2. ^ a b c d e f David Robinson; Ienup Sung; Nicolas Williams (March 2006). «Solaris presentations: File Systems, Unicode, and Normalization» (PDF). San Francisco: Sun.com. Archived from the original (PDF) on July 4, 2012.
  3. ^ RFC 959 IETF.org RFC 959, File Transfer Protocol (FTP)
  4. ^ «Fsutil command description page». Microsoft.com. Retrieved September 15, 2013.
  5. ^ «NTFS Hard Links, Directory Junctions, and Windows Shortcuts». Flex hex. Inv Softworks. Retrieved March 12, 2011.
  6. ^ a b «ddname support with FTP, z/OS V1R11.0 Communications Server IP User’s Guide and Commands z/OS V1R10.0-V1R11.0 SC31-8780-09». IBM.com.
  7. ^ «Maximum Path Length Limitation — Win32 apps».
  8. ^ «Filenames with accents». Ned Batchelder. June 2011. Retrieved September 17, 2013.
  9. ^ «NonNormalizingUnicodeCompositionAwareness — Subversion Wiki». Wiki.apache.org. January 21, 2013. Retrieved September 17, 2013.
  10. ^ «File Name Encoding Repair Utility v1.0». Support.apple.com. June 1, 2006. Retrieved October 2, 2018.
  11. ^ «convmv — converts filenames from one encoding to another». J3e.de. Retrieved September 17, 2013.
  12. ^ «Re: git on MacOSX and files with decomposed utf-8 file names». KernelTrap. May 7, 2010. Archived from the original on March 15, 2011. Retrieved July 5, 2010.
  13. ^ «Cross platform filepath naming conventions — General Programming». GameDev.net. Retrieved September 17, 2013.
  14. ^ «CaseInsensitiveFilenames — The Official Wine Wiki». Wiki.winehq.org. November 8, 2009. Archived from the original on August 18, 2010. Retrieved August 20, 2010.
  15. ^ «The Open Group Base Specifications Issue 6». IEEE Std 1003.1-2001. The Open Group. 2001.
  16. ^ «Naming Files, Paths, and Namespaces (Windows)». Msdn.microsoft.com. August 26, 2013. Retrieved September 17, 2013.
  17. ^ «Windows Naming Conventions». MSDN, Microsoft.com. See last bulleted item.
  18. ^ a b Naming a file msdn.microsoft.com (MSDN), filename restrictions on Windows
  19. ^ Microsoft Windows 95 README for Tips and Tricks, Microsoft, retrieved August 27, 2015
  20. ^ MS-DOS Device Driver Names Cannot be Used as File Names., Microsoft
  21. ^ a b Naming Files, Paths, and Namespaces, Microsoft
  22. ^ Ritter, Gunnar (January 30, 2007). «The tale of «aux.c»«. Heirloom Project.
  23. ^ «Subparameter Definition, z/OS V1R11.0 MVS JCL Reference». IBM.com. Retrieved September 17, 2013.
  24. ^ Lewine, Donald. POSIX Programmer’s Guide: Writing Portable UNIX Programs 1991 O’Reilly & Associates, Inc. Sebastopol, CA pp63-64
  25. ^ pathchk — check pathnames
  26. ^ Hewlett-Packard Company Roseville, CA HP 250 Syntax Reference Rev 1/84 Manual Part no 45260-90063

External links[edit]

  • Data Formats Filename at Curlie
  • File Extension Library
  • FILExt
  • WikiExt — File Extensions Encyclopedia
  • Naming Files, Paths, and Namespaces (MSDN)
  • 2009 POSIX portable filename character set
  • Standard ECMA-208, December 1994, System-Independent Data Format
  • Best Practices for File Naming, USA: Stanford University Libraries, Data Management Services

Все
программы и данные хранятся в долговременной (внешней) памяти компьютера в виде
файлов.

Файл 
это определенное количество информации (программа или данные), имеющее имя и
хранящееся в долговременной (внешней) памяти.

Имя
файла состоит из двух частей, разделенных точкой: собственно имя файла и
расширение, определяющее его тип (программа, данные и т. д.). Собственно имя
файлу дает пользователь, а тип файла обычно задается программой автоматически
при его создании.

В
различных операционных системах существуют различные форматы имен файлов. В
операционной системе MS-DOS собственно имя файла должно содержать не более
восьми букв латинского алфавита и цифр, а расширение состоит из трех латинских
букв, например: proba.txt

В
операционной системе Windows в  имя файла:
Единицы измерения
информации.doc

1.
Разрешается использовать до 255 символов.
2. Разрешается использовать символы
национальных алфавитов, в частности русского.
3. Разрешается использовать
пробелы и другие ранее запрещенные символы, за исключением следующих девяти:
/:*?»<>|.
4. В имени файла можно использовать несколько точек.
Расширением имени считаются все символы, стоящие за последней
точкой.

Роль
расширения имени файла чисто информационная, а не командная. Если файлу с
рисунком присвоить расширение имени ТХТ, то содержимое файла от этого не
превратится в текст. Его можно просмотреть в программе, предназначенной для
работы с текстами, но ничего вразумительного такой просмотр не
даст.

Файловая
система.
 На
каждом носителе информации (гибком, жестком или лазерном диске) может храниться
большое количество файлов. Порядок хранения файлов на диске определяется
установленной файловой системой.

Файловая
система
 —
это система хранения файлов и организации каталогов.
Для дисков с небольшим
количеством файлов (до нескольких десятков) удобно применять одноуровневую
файловую систему, когда каталог (оглавление диска) представляет собой линейную
последовательность имен файлов. Для отыскания файла на диске достаточно указать
лишь имя файла. Если на диске хранятся сотни и тысячи файлов, то для удобства
поиска файлы организуются в многоуровневую иерархическую файловую систему,
которая имеет «древовидную» структуру (имеет вид перевернутого
дерева).Начальный, корневой, каталог содержит вложенные каталоги 1-го уровня, в
свою очередь, в каждом из них бывают вложенные каталоги 2-го уровня и т. д.
Необходимо отметить, что в каталогах всех уровней могут храниться и
файлы.

Для
облегчения понимания этого вопроса воспользуемся аналогией с традиционным
«бумажным» способом хранения информации. В такой аналогии файл представляется
как некоторый озаглавленный документ (текст, рисунок и пр.) на бумажных листах.
Следующий по величине элемент файловой структуры называется каталогом. Продолжая
«бумажную» аналогию, каталог будем представлять как папку, в которую можно
вложить множество документов, т.е. файлов. Каталог также получает собственное
имя (представьте, что оно написано на обложке папки).

Каталог
сам может входить в состав другого, внешнего по отношению к нему каталога. Это
аналогично тому, как папка вкладывается в другую папку большего размера. Таким
образом, каждый каталог может содержать внутри себя множество файлов и вложенных
каталогов (их называют подкаталогами). Каталог самого верхнего уровня, который
не вложен ни в какие другие, называется корневым
каталогом.

А
теперь полную картину файловой структуры представьте себе так: вся внешняя
память компьютера — это шкаф с множеством выдвижных ящиков. Каждый ящик — аналог
диска; в ящике — большая папка (корневой каталог); в этой папке множество папок
и документов (подкаталогов и файлов) и т.д. Самые глубоко вложенные папки хранят
в себе только документы (файлы) или могут быть пустыми.

3-1.jpg

Путь
к файлу.
 Для
того чтобы найти файл в иерархической файловой структуре необходимо указать путь
к файлу. В путь к файлу входят записываемые через разделитель «» логическое имя
диска и последовательность имен вложенных друг в друга каталогов, в последнем из
которых находится данный нужный файл.

Например,
путь к файлам на рисунке можно записать
так:
C:Рефераты
C:РефератыФизика
C:РефератыИнформатика
C:Рисунки

Полное
имя файла. 

Путь
к файлу вместе с именем файла называют полным именем файла.
Пример полного
имени файлов:
C:РефератыФизикаОптические
явления.doc
C:РефератыИнформатикаИнтернет.doc
C:РефератыИнформатикаКомпьютерные
вирусы.doc
C:РисункиЗакат.jpg
C:Рисунки Зима.jpg

В
операционной системе Windows вместо каталогов используется понятие
«папка». Папка –
это объект Windows, предназначенное для объединения файлов и других папок в
группы. Понятие папки шире, чем понятие «каталог».

В
Windows на вершине иерархии папок находится папка Рабочий стол. (Следующий
уровень представлен папками Мой компьютер, Корзина и Сетевое окружение (если
компьютер подключен к локальной сети).

Графический
интерфейс Windows позволяет производить операции над файлами с помощью мыши с
использованием метода Drag&Drop (тащи и бросай). Существуют также
специализированные приложения для работы с файлами, так называемые файловые
менеджеры.

NTFS (от англ. New
Technology
File
System —
«файловая система новой технологии») — стандартная файловая
система для семейства операционных
систем Microsoft Windows 

NTFS
заменила использовавшуюся в MS-DOS и Microsoft
Windows файловую систему FAT. NTFS поддерживает систему
метаданных и использует специализированные структуры данных для хранения
информации о файлах для улучшения производительности, надёжности и эффективности
использования дискового пространства

FAT (англ. File
Allocation
Table —
«таблица размещения файлов») —
классическая архитектура файловой системы, которая из-за своей простоты
всё ещё широко используется для флеш-накопителей. Используется
в дискетах, и некоторых других носителях информации. Ранее использовалась и
на жестких дисках.

Дефрагмента́ция —
процесс обновления и оптимизации логической структуры раздела диска с целью
обеспечения хранения файлов в непрерывной
последовательности кластеров. После дефрагм
4ентации
ускоряется чтение и запись файлов, а, следовательно, и работа программ, ввиду
того, что последовательные операции чтения и записи выполняются быстрее
случайных обращений

Се́ктор
диска
 —
минимальная адресуемая единица хранения информации на дисковых
запоминающих устройствах

Тест на проверку знаний по теме «Файл.
Файловая система». В тесте предлагается выбрать один из четырех предложенных
вариантов ответов. Тест расчинатан на 10 — 15 минут.

Информатика

7 класс   |
  Дата: 27.07.2019   |   Вопросов: 10   |   Автор:

Меркулова Светлана Михайловна

.

Все типы файлов
имеют символьные имена. В иерархически
организованных фай­ловых системах
обычно используются три типа имен
файлов:

-простые,

-полные (состав­ные),

-относительные.

Простое,
или короткое,
символьное
имя
идентифицирует файл в пределах одного
каталога. Простые имена присваивают
файлам пользователи и программисты,
при этом они должны учитывать ограничения
ОС как на номенклатуру символов, так и
на длину имени. До сравнительно недавнего
времени эти границы были весьма узкими.

Так, в популярной
файловой системе
FAT
длина имен ограничи­вались схемой
8.3 (8 символов — собственно имя, 3 символа
— расширение имени), а в файловой системе
s5,
поддерживаемой многими версиями ОС
UNIX,
простое символьное имя не могло содержать
более 14 символов
.

Однако пользователю
гораздо удобнее работать с длинными
именами, поскольку они позволяют дать
файлам легко запоминающиеся названия,
ясно говорящие о том, что содержится в
этом файле. Поэтому современные файловые
системы, а также усовершенство­ванные
варианты уже существовавших файловых
систем, как правило, поддер­живают
длинные простые символьные имена файлов.

Например, в файловых
сис­темах NTFS
и FAT32,
входящих в состав операционной системы
Windows
ХР, имя файла может содержать до 255
символов.

Примеры простых
имен файлов и каталогов:

quest j_ul.doc

task-entran.exe

приложение к CD
254L
на русской языке.doc

installable
filesystem
manager.doc

В иерархических
файловых системах разным файлам разрешено
иметь одинако­вые простые символьные
имена при условии, что они принадлежат
разным ката­логам. То есть здесь
работает схема «много
файлов — одно
простое имя».

Для однозначной
идентификации файла в таких системах
используется так называемое полное
имя.

Полное
имя
представляет
собой цепочку простых символьных имен
всех катало­гов, через которые проходит
путь от корня до данного файла. Таким
образом, полное Имя является составным,
в котором простые
имена отделены друг от друга принятым
в ОС разделителем. Часто в качестве
разделителя используется прямой или
обратный слеш, при этом принято не
указывать имя корневого ката­лога.
На рис. 5.3, б два
файла имеют простое имя main.exe,
однако их составные имена /depart/main.ехе
и /user/anna/main.exe
различаются.

В древовидной
файловой системе между файлом и его
полным именем имеется взаимно однозначное
соответствие «один
файл

одно
полное имя
».
В файловых
системах, имеющих сетевую структуру,
файл может входить в несколько катало­гов,
а значит, иметь несколько полных имен;
здесь справедливо соответствие «один
файл — много полных имен
».
В обоих случаях
файл однозначно идентифи­цируется
полным именем.

Файл может быть
идентифицирован также относительным
именем.

Относи­тельное
имя
файла определяется через понятие
«текущий каталог». Для каждого пользователя
в каждый момент времени один из каталогов
файловой системы является текущим,
причем этот каталог выбирается самим
пользователем по ко­манде ОС. Файловая
система фиксирует имя текущего каталога,
чтобы затем использовать его как
дополнение к относительным именам для
образования пол­ного имени файла. При
использовании относительных имен
пользователь иден­тифицирует файл
цепочкой имен каталогов, через которые
проходит маршрут от текущего каталога
до данного файла.

Например, если
текущим каталогом явля­ется каталог
/user,
то относительное имя файла /user/anna/main.exe
выглядит следующим образом: anna/
main.exe.

В некоторых
операционных системах разрешено
присваивать одному и тому же файлу
несколько простых имен, которые можно
интерпретировать как псевдо­нимы. В
этом случае, так же как в системе с
сетевой структурой, устанавливается
соответствие «один
файл

много
полных имен
»,
так как каждому
простому име­ни файла соответствует
по крайней мере одно полное имя.

И хотя полное имя
однозначно определяет файл, операционной
системе проще работать с файлом, если
между файлами и их именами имеется
взаимно одно­значное соответствие.
С этой целью она присваивает файлу
уникальное
имя,
так что справедливо соотношение «один
файл

одно
уникальное имя
».
Уникальное имя
существует наряду с одним или несколькими
символьными именами, при­сваиваемыми
файлу пользователями или приложениями.
Уникальное имя пред­ставляет собой
числовой идентификатор и предназначено
только для операционной системы. Примером
такого уникального имени файла является
номер индексного дескриптора в системе
UNIX.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]

  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #

Понравилась статья? Поделить с друзьями:
  • Имя файла в файловой системе windows может начинаться с чего
  • Имя файла в файловой системе windows может иметь длину
  • Имя файла в ос windows может включать до
  • Имя файла в операционной системе windows может содержать сколько символов
  • Имя файла в операционной системе windows может содержать символ ответ тест