Managing Files

Suggested Exercises
  • Create a file with touch (or some other program) and then practice copying it with cp, renaming it with mv, moving it to another directory with mv, and deleting it with rm.
  • Create a directory with mkdir, and then practice using cp, mv and rm on it, just as with files. Try copying files into it and then try deleting the directory with both rmdir and rm. Do both commands work?

Source: Linux Essentials, 2nd Edition, Bresnaham C. & Blum R,pp.148