LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I'm having aprob;em wth a mkdir command in the terminal (https://www.linuxquestions.org/questions/linux-newbie-8/im-having-aprob%3Bem-wth-a-mkdir-command-in-the-terminal-718333/)

demonbladenet 04-10-2009 05:59 PM

I'm having aprob;em wth a mkdir command in the terminal
 
I seem to be having a real problem with the following command
mkdir ~/.gnome2/rhythmbox/plugins/

I get the following from the terminal

mark@mark-desktop:~$ mkdir ~/.gnome2/rhythmbox/plugins/
mkdir: cannot create directory `/home/mark/.gnome2/rhythmbox/plugins/': No such file or directory
mark@mark-desktop:~$
I need this to install a couple of plugins into rythmbox Any help would be appreciated
I'm using Ubuntu 9 and it has Gnome 2.26 installed

ic_torres 04-10-2009 06:11 PM

Quote:

Originally Posted by demonbladenet (Post 3505079)
I seem to be having a real problem with the following command
mkdir ~/.gnome2/rhythmbox/plugins/

I get the following from the terminal

mark@mark-desktop:~$ mkdir ~/.gnome2/rhythmbox/plugins/
mkdir: cannot create directory `/home/mark/.gnome2/rhythmbox/plugins/': No such file or directory
mark@mark-desktop:~$
I need this to install a couple of plugins into rythmbox Any help would be appreciated
I'm using Ubuntu 9 and it has Gnome 2.26 installed


try using mkdir -p

mine worked :

mkdir -p ~/.testdir/testdir2/testdir3

Robhogg 04-10-2009 06:18 PM

Does the directory ~/.gnome2/rhythmbox definitely exist? If not, you'd have to create this before creating a directory within it.

demonbladenet 04-10-2009 06:25 PM

can you explain Robhogg? i'have Rythmbox installed but I thought the command was creating ~/.gnome2/rhythmboxif not what coomands do need tobe able to run the commands listed in my post? Windows=brainrot!!

i92guboj 04-10-2009 06:31 PM

Quote:

Originally Posted by demonbladenet (Post 3505088)
can you explain Robhogg? i'have Rythmbox installed but I thought the command was creating ~/.gnome2/rhythmboxif not what coomands do need tobe able to run the commands listed in my post? Windows=brainrot!!

You are trying to create a directory called "~/.gnome2/rhythmbox/plugins/".

By default mkdir can only create one level. That means that to create a directory called "~/.gnome2/rhythmbox/plugins/" first you need to make sure that "~/.gnome2/rhythmbox/" exist. And to create that one, you first need to make sure that "~/.gnome2/" exists.

So, you either do this:

Code:

mkdir "~/.gnome2/" # this one probably exists already
mkdir "~/.gnome2/rhythmbox/"
mkdir "~/.gnome2/rhythmbox/plugins/"

Or use this:

Code:

mkdir -p "~/.gnome2/rhythmbox/plugins/"
-p instructs mkdir to create multiple levels when necessary.

demonbladenet 04-10-2009 06:32 PM

so how do I check to see if the directory ~/.gnome2/rhythmbox exists? And if not what commands should I use to take care of this? And If I have Rythmbox installed and working won't that directory already exist?

See what 10yrs of Windows can do?? BRAINROT

demonbladenet 04-10-2009 06:34 PM

checking out that last post that i recieved

i92guboj 04-10-2009 06:35 PM

Quote:

Originally Posted by demonbladenet (Post 3505095)
so how do I check to see if the directory ~/.gnome2/rhythmbox exists?

This will tell you.

Code:

ls -d ~/.gnome2/rhythmbox/
Quote:

And If I have Rythmbox installed and working won't that directory already exist?
Not necessarily. As for the installation, it won't touch anything inside your home directory. When you install programs in linux they don't touch anything inside your user account. Only in the system directories.

When you first start a program the needed config files are usually created. But sometimes there's nothing to be saved unless you actually modify the default config. I have no idea how rythmbox works, so I can't speak about that.

demonbladenet 04-10-2009 07:03 PM

thanks!
 
Thanks now on to the next question can you decompress a file into the directory ?
The direction looks like this:

1. Download
* audiodynamic-0.2.tar.gz The latest version. Includes some fixes made by Denis Malinovsky.
* audiodynamic-0.1.tar.gz
2. Create local plugin directory: mkdir ~/.gnome2/rhythmbox/plugins/
3. Decompress archive: tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
4. Restart Rhythmbox

I already have the audiodynamics down loaded on to my desktop but not yet decompressed

i92guboj 04-10-2009 07:05 PM

That should be it. However it all depends on what's inside the package. You can use -t instead of -x to simulate the extraction without actually extracting anything. ;)

Code:

tar -tzvf audiodynamic.tar.gz

demonbladenet 04-10-2009 07:10 PM

I'm still not real clear....I need to open that directory ("~/.gnome2/rhythmbox/plugins/") right? and the use the command above? If so what command opens said directory?

i92guboj 04-10-2009 07:31 PM

In command line, you use "cd" to change the current directory. However, if you use this command you said above:

Code:

tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
You don't need to enter in that directory. Tar will uncompress everything there for you.

On a graphical browser you can just natigate into that directory. However, since ~/.gnome2 has a leading dot on its name, it will be hidden by default. Your graphical browser should have an option to show hidden files somewhere.

demonbladenet 04-10-2009 07:35 PM

Tried It...Got this


tar: audiodynamic.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

i92guboj 04-10-2009 07:40 PM

Quote:

Originally Posted by demonbladenet (Post 3505131)
Tried It...Got this


tar: audiodynamic.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

That means that audiodynamic.tar.gz is not on the current directory. You first need to locate it. Once you have located it then you can proceed. For example, if it's on the directory ~/Desktop, then you can do this:

Code:

tar -xzvf ~/Desktop/audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
Or:

Code:

cd ~/Desktop
tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/


demonbladenet 04-10-2009 07:56 PM

Got this:
mark@mark-desktop:~$ cd ~/Desktop
mark@mark-desktop:~/Desktop$ tar -xzvf audiodynamic.tar.gz -C ~/.gnome2/rhythmbox/plugins/
tar: audiodynamic.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
mark@mark-desktop:~/Desktop$

but the name is a litlle different .. there is a -0.2.tar.gz...I'll see if that helps.....
Nope..Got this

mark@mark-desktop:~$ tar -xzvf audiodynamic-0.2.tar.gz -C ~/.gnome2/rhythmbox/plugins/
tar: audiodynamic-0.2.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors


All times are GMT -5. The time now is 04:01 AM.