Move and List
Easy · Files & Directories · cp · mv · ls
Problem
The file draft.txt exists. Rename it to final.txt, keeping a copy of the original content at backup.txt.
Then list the directory. ls prints names sorted, one per line.
Approaches
- cp then mv
Related problems
Start free on Cariara · Coding problems · System design studio