{"id":340482,"date":"2025-01-05T08:10:41","date_gmt":"2025-01-05T07:10:41","guid":{"rendered":"https:\/\/glosarix.com\/?post_type=glossary&#038;p=340482"},"modified":"2026-11-12T09:58:59","modified_gmt":"2026-11-12T08:58:59","slug":"touch-command","status":"publish","type":"glossary","link":"https:\/\/glosarix.com\/en\/glossary\/touch-command\/","title":{"rendered":"touch (command)"},"content":{"rendered":"<p>Description: The &#8216;touch&#8217; command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and modification timestamps. If the specified file does not exist, &#8216;touch&#8217; can also create an empty file with the provided name. This command is especially useful for managing files and directories in command-line environments, allowing users to update file time information without the need to open or edit them. Additionally, &#8216;touch&#8217; can be used in shell scripts to automate tasks related to file creation and management. Its simplicity and efficiency make it an essential command for system administrators and developers working in Unix-like operating system environments, facilitating file organization and control within the file system.<\/p>\n<p>History: The &#8216;touch&#8217; command was introduced in the early Unix systems in the 1970s. Originally, its function was quite limited, focusing primarily on the modification of timestamps. Over time, as Unix evolved and diversified into different variants, &#8216;touch&#8217; remained a standard command in most Unix-like and Linux operating system distributions. Its inclusion in BusyBox, a collection of Unix tools in a single executable, made it even more accessible in embedded and resource-constrained system environments.<\/p>\n<p>Uses: The &#8216;touch&#8217; command is primarily used to create empty files and update the timestamps of existing files. It is commonly employed in automation scripts to ensure that certain files are present before executing other operations. It is also used in file version management, where it is necessary to modify the modification date to reflect recent changes without altering the file content.<\/p>\n<p>Examples: A practical example of using &#8216;touch&#8217; is as follows: by executing &#8216;touch nuevo_archivo.txt&#8217;, an empty file named &#8216;nuevo_archivo.txt&#8217; will be created in the current directory. If you wish to update the modification date of an existing file, you can use &#8216;touch archivo_existente.txt&#8217;, which will update its timestamp without modifying its content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description: The &#8216;touch&#8217; command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and modification timestamps. If the specified file does not exist, &#8216;touch&#8217; can also create an empty file with the provided name. This command is especially useful for managing files and directories [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"_yoast_wpseo_metadesc":"The 'touch' command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and\u2026","glosarix_cat":"shells","footnotes":""},"glossary-categories":[13539],"glossary-tags":[],"glossary-languages":[],"class_list":["post-340482","glossary","type-glossary","status-publish","hentry","glossary-categories-shells-and-scripting"],"post_title":"touch (command)","post_content":"Description: The 'touch' command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and modification timestamps. If the specified file does not exist, 'touch' can also create an empty file with the provided name. This command is especially useful for managing files and directories in command-line environments, allowing users to update file time information without the need to open or edit them. Additionally, 'touch' can be used in shell scripts to automate tasks related to file creation and management. Its simplicity and efficiency make it an essential command for system administrators and developers working in Unix-like operating system environments, facilitating file organization and control within the file system.\n\nHistory: The 'touch' command was introduced in the early Unix systems in the 1970s. Originally, its function was quite limited, focusing primarily on the modification of timestamps. Over time, as Unix evolved and diversified into different variants, 'touch' remained a standard command in most Unix-like and Linux operating system distributions. Its inclusion in BusyBox, a collection of Unix tools in a single executable, made it even more accessible in embedded and resource-constrained system environments.\n\nUses: The 'touch' command is primarily used to create empty files and update the timestamps of existing files. It is commonly employed in automation scripts to ensure that certain files are present before executing other operations. It is also used in file version management, where it is necessary to modify the modification date to reflect recent changes without altering the file content.\n\nExamples: A practical example of using 'touch' is as follows: by executing 'touch nuevo_archivo.txt', an empty file named 'nuevo_archivo.txt' will be created in the current directory. If you wish to update the modification date of an existing file, you can use 'touch archivo_existente.txt', which will update its timestamp without modifying its content.","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>touch (command) - Glosarix<\/title>\n<meta name=\"description\" content=\"The &#039;touch&#039; command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and\u2026\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/glosarix.com\/en\/glossary\/touch-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"touch (command) - Glosarix\" \/>\n<meta property=\"og:description\" content=\"The &#039;touch&#039; command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and\u2026\" \/>\n<meta property=\"og:url\" content=\"https:\/\/glosarix.com\/en\/glossary\/touch-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Glosarix\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-12T08:58:59+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@GlosarixOficial\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/glossary\\\/touch-command\\\/\",\"url\":\"https:\\\/\\\/glosarix.com\\\/en\\\/glossary\\\/touch-command\\\/\",\"name\":\"touch (command) - Glosarix\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/#website\"},\"datePublished\":\"2025-01-05T07:10:41+00:00\",\"dateModified\":\"2026-11-12T08:58:59+00:00\",\"description\":\"The 'touch' command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and\u2026\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/glossary\\\/touch-command\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/glosarix.com\\\/en\\\/glossary\\\/touch-command\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/glossary\\\/touch-command\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/glosarix.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"touch (command)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/glosarix.com\\\/en\\\/\",\"name\":\"Glosarix\",\"description\":\"T\u00e9rminos tecnol\u00f3gicos - Glosarix\",\"publisher\":{\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/glosarix.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/#organization\",\"name\":\"Glosarix\",\"url\":\"https:\\\/\\\/glosarix.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/glosarix.com\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Glosarix-logo-192x192-1.png.webp\",\"contentUrl\":\"https:\\\/\\\/glosarix.com\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Glosarix-logo-192x192-1.png.webp\",\"width\":192,\"height\":192,\"caption\":\"Glosarix\"},\"image\":{\"@id\":\"https:\\\/\\\/glosarix.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/GlosarixOficial\",\"https:\\\/\\\/www.instagram.com\\\/glosarixoficial\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"touch (command) - Glosarix","description":"The 'touch' command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and\u2026","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/glosarix.com\/en\/glossary\/touch-command\/","og_locale":"en_US","og_type":"article","og_title":"touch (command) - Glosarix","og_description":"The 'touch' command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and\u2026","og_url":"https:\/\/glosarix.com\/en\/glossary\/touch-command\/","og_site_name":"Glosarix","article_modified_time":"2026-11-12T08:58:59+00:00","twitter_card":"summary_large_image","twitter_site":"@GlosarixOficial","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/glosarix.com\/en\/glossary\/touch-command\/","url":"https:\/\/glosarix.com\/en\/glossary\/touch-command\/","name":"touch (command) - Glosarix","isPartOf":{"@id":"https:\/\/glosarix.com\/en\/#website"},"datePublished":"2025-01-05T07:10:41+00:00","dateModified":"2026-11-12T08:58:59+00:00","description":"The 'touch' command is a fundamental tool in Unix-like operating systems, such as Unix, Linux, and BusyBox, used primarily to modify file access and\u2026","breadcrumb":{"@id":"https:\/\/glosarix.com\/en\/glossary\/touch-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/glosarix.com\/en\/glossary\/touch-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/glosarix.com\/en\/glossary\/touch-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/glosarix.com\/en\/"},{"@type":"ListItem","position":2,"name":"touch (command)"}]},{"@type":"WebSite","@id":"https:\/\/glosarix.com\/en\/#website","url":"https:\/\/glosarix.com\/en\/","name":"Glosarix","description":"T\u00e9rminos tecnol\u00f3gicos - Glosarix","publisher":{"@id":"https:\/\/glosarix.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/glosarix.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/glosarix.com\/en\/#organization","name":"Glosarix","url":"https:\/\/glosarix.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/glosarix.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/glosarix.com\/wp-content\/uploads\/2025\/04\/Glosarix-logo-192x192-1.png.webp","contentUrl":"https:\/\/glosarix.com\/wp-content\/uploads\/2025\/04\/Glosarix-logo-192x192-1.png.webp","width":192,"height":192,"caption":"Glosarix"},"image":{"@id":"https:\/\/glosarix.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/GlosarixOficial","https:\/\/www.instagram.com\/glosarixoficial\/"]}]}},"_links":{"self":[{"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/glossary\/340482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/types\/glossary"}],"author":[{"embeddable":true,"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/comments?post=340482"}],"version-history":[{"count":1,"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/glossary\/340482\/revisions"}],"predecessor-version":[{"id":341444,"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/glossary\/340482\/revisions\/341444"}],"wp:attachment":[{"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/media?parent=340482"}],"wp:term":[{"taxonomy":"glossary-categories","embeddable":true,"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/glossary-categories?post=340482"},{"taxonomy":"glossary-tags","embeddable":true,"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/glossary-tags?post=340482"},{"taxonomy":"glossary-languages","embeddable":true,"href":"https:\/\/glosarix.com\/en\/wp-json\/wp\/v2\/glossary-languages?post=340482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}