Move/Rename File in Shell

Level 118 keystrokes

mv moves or renames files and directories.

Shell code

# mv = move; in the same directory it renames old.txt to new.txt
# With a directory as destination (mv old.txt docs/) it moves the file there
1mv old.txt new.txt
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Shell code and how often they appear.

  • .× 2

More Shell examples at level 1

← Shell typing practice