linux_commands:file_management
File Management Commands
This section covers commands related to manipulating files and directories in Linux.
- cp: Copies files or directories.
- Example: `cp file.txt /path/to/destination/`
- mv: Moves or renames files and directories.
- Example: `mv file.txt new_file.txt`
- rm: Removes files or directories.
- Example: `rm file.txt`
- For directories: `rm -r directory/`
- touch: Creates empty files or updates the access time.
- Example: `touch new_file.txt`
- cat: Displays the content of a file.
- Example: `cat file.txt`
linux_commands/file_management.txt · Last modified: 2025/02/07 12:06 by jmbargallo
