Command line mystery
Posted 11-04-2011 at 07:38 PM by Mountaineer
In Ubuntu 11.04, I copied an mp3 file to mu home folder and then tried to use the terminal to move it to /Music. Didn't work. Trial and error may help. I used to know DOS pretty well, but this is elusive.
Total Comments 1
Comments
-
It might also help to post the command used and what it said when it didn't work.
However, I'm guessing that the problem is that you don't have a 'Music' folder at the top of the root file system. IIRC Ubuntu comes with a 'Music' folder in your home directory, i.e. /home/Mountaineer/Music, or ~/Music for short (when logged in as Mountaineer). Or even $HOME/Music.
In Unix-like systems, users normally only have write access to their own home directories, which is probably why "mv music.mp3 /Music" [sic] didn't work. Edit: To refer to the current directory, use "./", though it's seldom necessary unless you are running an executable. e.g.
Code:mountaineer@computer:~/Music$ ./randomscript.sh
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://ss64.com/bash/Posted 11-05-2011 at 04:48 PM by ewqdsacxz
Updated 11-05-2011 at 05:01 PM by ewqdsacxz (Forgot something)