LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Moving files from the command line (https://www.linuxquestions.org/questions/linux-newbie-8/moving-files-from-the-command-line-262084/)

adam-red 12-03-2004 05:47 AM

Moving files from the command line
 
I've deleted my xorg.conf file like an arse trying to edit it for the NVidia Driver install, but I did make a backup and left it on my desktop for some reason.
What is the command to move the file from my desktop into the etc/X11 directory? I know I need to use the mv command, but I'm doing the syntax all wrong. Whats the command, and which directory should I be in when I type it?
Thanks in advance.
Adam.

wiskic10_4 12-03-2004 05:56 AM

adam-red,

from any directory:

mv /home/username/Desktop/xorg.BAK /etc/X11/

(where username is your username, and xorg.BAK is whatever you named the backup)

-Wiski

UltimaGuy 12-03-2004 06:03 AM

I think it is better if you use copy (CP) instead of Move (MV) as you'll still have a copy left if sometign goes wrong again..

Syntax : #cp /home/<username>/Desktop/xorg.conf /etc/X11/.

wiskic10_4 12-03-2004 06:11 AM

UltimaGuy is correct --> I guess I was just trying to answer the question asked w/out thinking of the repercussions of the action... =P

-Wiski

adam-red 12-03-2004 03:28 PM

Thanks for the help. I managed to get the file into the X11 directory. Now when I type startx it tries to run it, and then gives an error saying cannot run in framebuffer mode.
How can I fix this so it'll start x and load up KDE as it should?

Thanks
Adam

adam-red 12-06-2004 04:42 AM

It's alright. Fixed it now. Well....I say fixed it...I didn't actually do anything :rolleyes: . Works anyway.

Cheers
Adam


All times are GMT -5. The time now is 04:06 PM.