Copy and inspect ownership
Quest: copy-and-inspect-ownership
Mission
Copy /etc/hostname to ~/playground/hostname and inspect it with ls -l. The guide checks that the copy is a regular file owned by your Unix account with exactly the same contents as /etc/hostname.
Why This Matters
Copying creates a new file. The source may be system-owned, but the copy you create in your home directory should belong to you. ls -l lets you prove it.
Commands You Will Use
cpls -l
Steps
- Run
cp /etc/hostname ~/playground/hostname. - Run
ls -l ~/playground/hostname. - Check that the owner column shows your handle.
- Ask the guide to check your work.
Hints
cptakes source first, destination second.- In
ls -l, the owner appears after the link count. - The owner should be your handle, because you created the copy.
If Check Fails
Run cp /etc/hostname ~/playground/hostname again, then ask the guide to check your work.

Linux Foundations