You can also rename files and folders using the mv command.
indicates 'move up one level' (to 'Second semester'), and from there, move into the Biology folder. It is the path relative to where we are now. Each folder is listed in the path from top to bottom. Option 1 contains the absolute path towards the Biology folder. Option 2 (relative path): mv research-findings.csv. Option 1 (absolute path): mv research-findings.csv ~/Desktop/Second\ Semester/Biology Let's explore the difference between absolute and relative file paths. My first piece of information is therefore research-findings.csv, and my second piece of information is therefore the file path to the Biology folder. The new destination for the original file. The mv command requires several pieces of information. In Terminal, you don't have a visual interface, so you'll have to know the mv command to do this! If you use a visual interface like Finder (or another visual interface), you would have to click and drag this file into its correct location.
Let's say you've accidentally created a file in the wrong place, like putting your biology research spreadsheet in your art history folder. Now, you might want to move around or copy content that you've created. There are a series of commands that will allow you to do this. Use keyboard shortcuts to avoid command line typing hassles