LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot cp menu.xml, rc.xml, and autostart.sh (Openbox) (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-cp-menu-xml-rc-xml-and-autostart-sh-openbox-861855/)

oalicein 02-10-2011 10:25 AM

Cannot cp menu.xml, rc.xml, and autostart.sh (Openbox)
 
I am attempting to install Openbox and LXDE on Arch (x86_64).

After installing the packages, pacman instructs me to copy menu.xml, rc.xml, and autostart.sh to ~/.config/openbox

Whether or not I am root, I get this error:

Code:

cp: target '/home/myusername/.config/openbox' is not a directory
I have attempted to make this directory using mkdir only to get the same error:

Code:

mkdir: cannot create directory '/home/myusername/.config/openbox': No such file or directory
Any tips?

TobiSGD 02-10-2011 10:51 AM

Use the mkdir command with the -p option. If you use mkdir without it, you have to create every single directory that doesn't exist manually.
Assuming that there currently is no .config and no openbox directory in .config you can either do
Code:

mkdir ~/.config
mkdir ~/.config/openbox

or
Code:

mkdir -p ~/.config/openbox
For further info have a look at
Code:

man mkdir

oalicein 02-10-2011 05:52 PM

Ah, forgive me for being so foolish. I will remember to check the man pages next time something like this happens. Thank you for your reply!


All times are GMT -5. The time now is 12:27 AM.