LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2004, 05:47 AM   #1
adam-red
Member
 
Registered: Oct 2004
Location: Manchester, UK
Distribution: openSUSE 11.2
Posts: 63

Rep: Reputation: 15
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.
 
Old 12-03-2004, 05:56 AM   #2
wiskic10_4
LQ Newbie
 
Registered: Oct 2004
Location: Odessa, TX
Distribution: Slackware 10.0, Debian 3.0, FC2, and various Live CD's
Posts: 20

Rep: Reputation: 0
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
 
Old 12-03-2004, 06:03 AM   #3
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
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/.
 
Old 12-03-2004, 06:11 AM   #4
wiskic10_4
LQ Newbie
 
Registered: Oct 2004
Location: Odessa, TX
Distribution: Slackware 10.0, Debian 3.0, FC2, and various Live CD's
Posts: 20

Rep: Reputation: 0
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
 
Old 12-03-2004, 03:28 PM   #5
adam-red
Member
 
Registered: Oct 2004
Location: Manchester, UK
Distribution: openSUSE 11.2
Posts: 63

Original Poster
Rep: Reputation: 15
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
 
Old 12-06-2004, 04:42 AM   #6
adam-red
Member
 
Registered: Oct 2004
Location: Manchester, UK
Distribution: openSUSE 11.2
Posts: 63

Original Poster
Rep: Reputation: 15
It's alright. Fixed it now. Well....I say fixed it...I didn't actually do anything . Works anyway.

Cheers
Adam
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line to sort files satimis Programming 6 06-28-2005 02:50 AM
adding files through command line browser Linux - General 6 05-21-2005 06:53 PM
moving files and folders thru command line JROCK1980 Linux - General 2 02-16-2004 06:55 PM
How do I edit files in command line sweb74 Linux - Newbie 13 01-27-2004 10:53 PM
Running .sh files from the command line zulu1_hl Linux - Newbie 3 11-01-2002 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration