User Tools

Site Tools


linux_commands:file_management

File Management Commands

This section covers commands related to manipulating files and directories in Linux.

  • cp: Copies files or directories.
    1. Example: `cp file.txt /path/to/destination/`
  • mv: Moves or renames files and directories.
  1. Example: `mv file.txt new_file.txt`
  • rm: Removes files or directories.
  1. Example: `rm file.txt`
  2. For directories: `rm -r directory/`
  • touch: Creates empty files or updates the access time.
  1. Example: `touch new_file.txt`
  • cat: Displays the content of a file.
  1. Example: `cat file.txt`
linux_commands/file_management.txt · Last modified: 2025/02/07 12:06 by jmbargallo