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

Related problems

Start free on Cariara · Coding problems · System design studio

Starting Python
No results yet.

          
↑↓ move ↵ open esc close

Labs

Loading labs…

Run with your own input

Starting Python

Loading Python…