Linux/Bash
Files Commands
Master essential Linux file operations. Learn to create, copy, move, and manage files and directories with proper permissions and ownership.
20 commands
Pro Tips
Use 'cp -a' to preserve all file attributes including permissions, timestamps, and symlinks.
Use 'rm -i' for interactive confirmation before deleting files to avoid accidents.
Use 'rsync -avz' instead of 'cp' for large directories - it shows progress and can resume.
Common Mistakes
'rm -rf /' or 'rm -rf *' can destroy your system. Always double-check paths before running rm.
Linux has no recycle bin by default. Deleted files are gone unless you have backups.