File Management
Objective
Hands-on practice with file management in a Linux environment.
Tools & Technologies
lscpmvfindtar
Key Commands
ls -lahfind / -name '*.log' -mtime +7tar -czf backup.tar.gz /etccp -r src/ dest/Lab Steps
01
Navigation
Practice navigating the filesystem using absolute and relative paths.
02
Copying and Moving
Copy and move files and directories with cp and mv flags.
03
Find Command
Use find with -name, -type, -mtime, -size to locate files.
04
Archiving
Create and extract tar archives with gzip and bzip2 compression.
Challenges Encountered
- Accidentally overwriting files without -i flag
- find permissions errors in /proc and /sys
Key Takeaways
- Always use -i flag when moving/copying to avoid overwrites
- tar czf vs cjf for gzip vs bzip2