The Command Line Part 3

Steven Klavins
1 min readFeb 20, 2020

Week 1 — The command line

Ok! A lot to cover within the command line, now onto a few further things.

Copying files This again is a fairly simple process in terminal you do the following “cp” example “cp file_name.type file_name_copy.type”. For windows on the other hand you use “copy”, example “file.type file.type_copy”. To copy to a new directory do the following “copy file_name new_dir” (the directory you copy to must be a child to the present location for this to work).

Moving files To move files in terminal we use the “mv” command, example (mv file.type ./folder). Entering “mv” without providing a new destination will enable you to rename the file. If we were to do this in windows the command would be “move” examplemove document.type C:\Users\Steven\Desktop”. To rename a file in windows we use the command “rename” for examplerename document.type C:\Users\Steven\Desktop\ file_name.type new_name.type”

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Steven Klavins
Steven Klavins

Written by Steven Klavins

Hi, I’m Steven, most call me Steve! I’m a programmer, musician, and artist. This blog contains various tutorials and posts related to software development.

No responses yet

Write a response