Search in uioop.blogspot.com

Blog Archive

Tuesday, August 17, 2010

DAY 1 in MacOS - Changing the Drive/Volume in Terminal

Article from http://guides.macrumors.com/Terminal

1. Call/Run Terminal - Click the Finder and key-in Terminal and hit enter.





In Terminal, if you
Code:
ls /Volumes
you'll see all of your drives. You can then cd to one of them (or just cd directly - no need to list the volumes first). For example:
Code:
cd /Volumes/My\ Other\ Drive
Spaces are replaced by '\ '. Or you can put the whole thing in quotes:
Code:
cd /Volumes/"My Other Drive"
If the drive name has no spaces, then you'd just use the name:
Code:
cd /Volumes/MyOtherDrive
Here is a list of common commands:

ls list files and directories
cd change directory
mkdir create a new directory
cp copy files or directories
mv move (rename) files or directories
rm remove files or directories

2. Mac OS X Terminal Commands list

No comments:

AVG Internet Security 2013

Total Pageviews

Contributors