Online Linux Terminal Logo
OnlineLinuxTerminal
Операции с файламиCLI Manual

$touch

Create empty files or update file access and modification timestamps.

Синтаксис командыPOSIX Standard
touch [OPTIONS] FILE...
Сообщество Linux2.4k Онлайн

Общайтесь с пользователями Linux, учите команды и скачивайте шпаргалки.

Попробуйте в интерактивной песочнице

Клиентская симуляция без установки с мгновенным результатом.

Открыть в полноэкранном терминале ↗
bash — terminal

Обзор и принцип работы

`touch` is the standard tool for quickly creating empty placeholder files or updating the access and modification timestamps of existing files to the current system time.

Основные флаги и параметры команды

Flag / OptionDescription
-aChange only the access time.
-mChange only the modification time.
-cDo not create any files if they do not already exist.

Практические примеры использования

#1Create multiple new empty files
touch server.js config.json .env && ls -l

Creates three empty files in the current folder.