Ағылшыншамен салыстырыңыз: абзацты басыңыз — түпнұсқа терезеде ашылады. Абзац астындағы EN түймесі оны мәтін ішінде көрсетеді.
Мазмұны
Кіріспе
Түрлі операциялық жүйелерде файлды өзгерту командасы
File modification command on various operating systems
Компьютерлік жүйеде "touch" командасы компьютерлік файл немесе каталогтың кіру күнін және/немесе өзгерту күнін жаңарту үшін қолданылады. Бұл команда Unix және Unix-қа ұқсас операциялық жүйелерде, TSC-нің FLEX, Digital Research/Novell DR DOS, AROS қабығында, Microware OS 9 қабығында және ReactOS-та қамтылған. Команда сондай-ақ FreeDOS және Microsoft Windows үшін де қолжетімді.
In computing, touch is a command used to update the access date and/or modification date of a computer file or directory. It is included in Unix and Unix like operating systems, TSC's FLEX, Digital Research/Novell DR DOS, the AROS shell, the Microware OS 9 shell, and ReactOS. The command is also available for FreeDOS and Microsoft Windows.
Шолу
Көбінесе, бұл файлдың мазмұнын өзгертпей, оны жаңадан құруға немесе ашу және сақтауға тең келеді. `touch` командасы файлды ашу, сақтау және жабу процесін өткізбейді. Оның орнына, ол файлға немесе каталогқа қатысты уақыт белгілерін жаңартады. Жаңартылған қолжетімділік немесе өзгерту уақыты, резервтік көшірме жасау құралдары немесе `make` командалық қатар интерфейсі сияқты басқа да көптеген бағдарламалар үшін маңызды болуы мүмкін. Әдетте, мұндай бағдарламалар тек соңғы рет іске қосылғаннан кейін жаңадан құрылған немесе өзгертілген файлдарға ғана назар аударады. `touch` командасы сондай-ақ, бағдарламаның немесе сценарийдің сәтті жұмыс істеуі үшін белгілі бір атауы бар файлдың болуын қажет ететін, бірақ файлдың нақты мазмұнына қатысы жоқ жағдайларда файлдарды жылдам құру үшін де пайдалы. Single Unix Specification (SUS) талабына сәйкес, `touch` командасы файлдың қолжетімділік уақытын, өзгерту уақытын немесе екеуін де өзгертуі керек. Файл бір аргумент ретінде берілген жол атауы арқылы анықталады. Егер көрсетілген файл жоқ болса, ол жаңадан құрылады және қолжетімділік және өзгерту уақыттары көрсетілгендей орнатылады. Егер жаңа уақыт белгілері көрсетілмесе, `touch` командасы ағымдағы уақытты пайдаланады.
In its default usage, it is the equivalent of creating or opening a file and saving it without any change to the file contents. touch avoids opening, saving, and closing the file. Instead it simply updates the dates associated with the file or directory. An updated access or modification date can be important for a variety of other programs such as backup utilities or the make command line interface programming utility. Typically these types of programs are only concerned with files which have been created or modified after the program was last run. The touch command can also be useful for quickly creating files for programs or scripts that require a file with a specific name to exist for successful operation of the program, but do not require the file to have any specific content. The Single Unix Specification (SUS) specifies that touch should change the access times, modification times, or both, for a file. The file is identified by a pathname supplied as a single argument. It also specifies that if the file identified does not exist, the file is created and the access and modification times are set as specified. If no new timestamps are specified, touch uses the current time.
Тарих
Тігізу құралы алғаш рет AT&T UNIX 7 нұсқасында пайда болды. Бүгінде бұл команда көптеген операциялық жүйелерде қолжетімді, оның ішінде көптеген Unix және Unix-қа ұқсас жүйелер, DOS, Microsoft Windows және классикалық Mac OS кіреді. GNU coreutils жинағындағы тігізу құралының нұсқасын Пол Рубин, Арнольд Роббинс, Джим Кингдон, Дэвид Маккензи және Рэнди Смит жазған. Бұл команда Microsoft Windows үшін жеке пакет ретінде, UnxUtils жинағының құрамында қолжетімді. FreeDOS нұсқасын Крис Хайденстром жасады және ол GPL лицензиясымен лицензияланады. DR DOS 6.0 және KolibriOS бұл команданы іске асыруды қамтиды. Команда IBM i операциялық жүйесіне де көшірілді.
A touch utility first appeared in Version 7 AT&T UNIX. Today, the command is available for a number of different operating systems, including many Unix and Unix like systems, DOS, Microsoft Windows and the classic Mac OS. The version of touch bundled in GNU coreutils was written by Paul Rubin, Arnold Robbins, Jim Kingdon, David MacKenzie, and Randy Smith. The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix like utilities. The FreeDOS version was developed by Kris Heidenstrom and is licensed under the GPL. DR DOS 6.0 and KolibriOS include an implementation of the command. The command has also been ported to the IBM i operating system.