Working with Files for DevOps Engineers
Working with files covers creating, copying, moving, deleting and viewing files and directories in Linux. Commands such as touch, mkdir, cp, mv, rm, cat, less, head and tail do this work, and links, wildcards and careful use of recursive flags let you manage many files safely.
Stage: Linux · Part of the DevOps Engineer roadmap · Last reviewed 19 November 2026
What to learn in Working with Files
- Create, copy, move and remove files and directories
- Use wildcards to act on groups of files
- View large files with less, head and tail -f
- Create hard links and symbolic links and explain the difference
- Avoid destructive mistakes by checking with ls before rm -r
- Compare two files using diff
Working with Files interview questions
What is the difference between a hard link and a symbolic link?
A hard link is another name for the same inode, so the data stays until all links are removed and it must be on the same filesystem. A symbolic link is a small file pointing to a path, and it breaks if the target is removed.
How can you safely delete files with wildcards?
Run ls with the same pattern first to see what matches, avoid running rm -rf as root with variables that might be empty, and use rm -i or move files to a temporary folder when unsure. Quoting and checking paths prevents expensive mistakes.
Where Working with Files fits in the DevOps Engineer roadmap
Working with Files belongs to the Linux stage (beginner level). Operating system fundamentals: the Linux course.
Other units in this stage
- Start Here (free)
- Navigating the Filesystem
- Text Editors
- Users, Groups and Permissions
- Text Processing and Pipes
- Processes and Jobs
- Package Management
- The Shell Environment
- Bash Scripting
- Archives, Storage and Filesystems
- Networking and SSH
- Services, Boot and Logs
- Security Basics
- Real Server Admin
- Linux for DevOps
- Capstones and Placement Prep
Back to the full DevOps Engineer roadmap