Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How do I edit a file?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
CPeachey
Posts: 4
Joined: 2010-05-12 20:27

How do I edit a file?

#1 Post by CPeachey »

I need to edit my xorg.conf file.
I can navigate to it in Terminal but do not know how to open it.
If I navigate to it outside of terminal I can change it but cannot save the changes (not allowed)
I can't seem to find a "how to" for this.
Any help please?
(Debian 504 on a Toshiba laptop)
Chris

refracta
Posts: 1234
Joined: 2008-10-26 01:46

Re: How do I edit a file?

#2 Post by refracta »

using the terminal is one way

su

nano /etc/X11/xorg.conf


using gksudo to run a editor with root privys is another

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: How do I edit a file?

#3 Post by craigevil »

You need to be root.

Try su nano /etc/X11/xorg.conf
or gksu gedit /etc/X11/xorg.conf if you prefer a GUI text editor

Or set-up sudo using visudo.

Some file managers have an option to run as root. I use pcmanfm, Under Tools> Open Current Folder as Root
Nautilus has a similar option if you have the package nautilus-gksu installed.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

CPeachey
Posts: 4
Joined: 2010-05-12 20:27

Re: How do I edit a file?

#4 Post by CPeachey »

Thanks all. I'm spoilt for choice now!
Chris

Post Reply