Skip to main content

Linux Terminal: Create, Move, and Delete Files with Commands

HardReset.InfoDecember 16, 20253 min9 views
3 connections·4 entities in this video

Creating Files in Linux

  • 💡 Use the touch command followed by the desired filename to create a single file.
  • ⚡ To create multiple files at once, list their names after the touch command, separated by spaces (e.g., touch file1 file2 file3).

Moving Files with the mv Command

  • 🚀 The mv command is used to move files or directories from a source to a destination.
  • 🎯 Specify the source file and the destination directory (e.g., mv file.txt documents/).
  • 🧩 You can move multiple files at once using wildcards; for example, mv *.txt documents/ will move all files ending with .txt to the documents directory.

Deleting Files with the rm Command

  • 🗑️ The rm command is used to remove files.
  • ⚠️ To delete a single file, type rm followed by the filename (e.g., rm file.txt).
  • 💥 Similar to mv, wildcards can be used with rm to delete multiple files, such as rm *.txt to remove all files ending with .txt.
  • 🛡️ Always double-check your commands, especially when using wildcards, to avoid accidental data loss.
Knowledge graph4 entities · 3 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover · drag to explore
4 entities
Chapters2 moments

Key Moments

Transcript14 segments

Full Transcript

Topics11 themes

What’s Discussed

LinuxTerminalFile ManagementCreate FilesMove FilesDelete Filestouch commandmv commandrm commandWildcardsCommand Line Interface
Smart Objects4 · 3 links
Media· 1
Concepts· 3