Skip to main content

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

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.

Back to the full DevOps Engineer roadmap