When you change directories, the “~” will change to the name of your current directory. Now that we have Terminal open, we can start moving files around.ģ: change directories to see the ffmpeg filesįirst we need to change directories to where you downloaded the ffmpeg files and extracted the compressed zip file. My files downloaded to my Downloads folder, so I am going to change to that directory. If you use Downloads for your web downloaded files, type the following: To change directory we use the command “cd” followed by the directory name to which we want to move. Your-computer-name:Downloads your-username$ Your command prompt should now look something like: Then hit the return (enter) key to run the command. Then we will list the files in that directory to make sure we have them. To list files in a directory, we use the command “ls”. Type “ls” and hit the return key to run the command. zip file and the expanded folder with the ffmpeg files. If you have a bunch of files in your Downloads folder, you make see a long list of filenames which may be confusing, visually. Terminal window with Downloads folder files listed Here is what my Terminal window looks like. We are going to change directory into the folder with the ffmpeg files. You can see that the extracted folder is called ‘SnowLeopard_Lion_Mountain_Lion_Mavericks_Yosemite_’, which is the same as the. Zip file you downloaded.Ĭhange directory into the extracted folder (use the folder name you have, if different)…Ĭd SnowLeopard_Lion_Mountain_Lion_Mavericks_Yosemite_ Your folder name may be different, depending on the name of the. Now list the files there to make sure we are in the correct place type “ls” and press return. ffmpeg files listedĤ: copy the ffmpeg files to /usr/local/bin I can see the three files we need for ffmpeg listed in the folder. We are going to move the ffmpeg files into a place where your Mac can find them and use them. A good place to store new command files is in a directory named /usr/local/bin. The command to move files is “mv” followed by the files to be moved and the directory to move them.īut, we can’t just move files there. If it’s your Mac, you’re probably the admin, which means you can do things as a superuser. The command to run other commands as superuser is “sudo”. It will prompt you on the command-line to ask for your password when you run it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |