Devops engineer DevOps Enthusiast || Linux | Git || Docker || Jenkins ||Kubernetes || AWS
--AWS Community Builder | DevOps Engineer | Docker | Linux | Jenkins | AWS | Git | Terraform | Docker | kubernetes Empowering communities via open source and education.
Markdown supported · ⌘↵ to post
Php_Guider
Here’s a concise overview for managing Linux files and directories:
Copy files: cp source/filename destination/
Copy directories: cp -R source_dir/ destination_dir/ (Use cp -a to preserve permissions, but this might not be supported on all systems like AIX.)
Create files: touch filename
Delete files: rm filename
Delete directories: rm -R dir_name/
Rename/Move: mv old_filename new_filename
For detailed instructions, check out Vultr's guide: How to Copy Files and Directories in Linux Using the cp Command.