You're not reading the error messages
addr wrote:What am I doing wrong?
Always remember: Error messages on Linux are always
So if your Linux system says something like "gedit: command not found" then it simply means that there is no such command or program on your system.
Efforts like this one: "sudo gedit/etc/apt/sources.list" are pretty much pointless. First of all it's not what I wrote ... and I wouldn't write false commands on purpose or without having tried them out myself
And secondly you still get an error message telling you that such a command too doesn't exist: "gedit/etc/apt/sources.list: command not found"
Therefore: Read your error messages!
They were given to you for a particular reason
So gedit doesn't exist on your system. So how could you find out what other editor is there on your system? ==> use the apropos
command. You can ask apropos
about a specific topic you're interested in and it will tell you what programs it knows that could be suitable for handling this topic.
So we're interested in edit
ing files ... so why not ask apropos
what it knows aobut this?
- Code: Select all
On my system this will spit out a huge list
and not all results are equally useful ... so please use some common sense here. Amongst the useful results I get stuff like:
gvim (1) - Vi IMproved, a programmers text editor
joe (1) - Joe's Own Editor
jpico (1) - Joe's Own Editor
jstar (1) - Joe's Own Editor
kate (1) - Advanced text editor for KDE
nano (1) - Nano's ANOther editor, an enhanced free Pico clone
If you're not sure about the usefulness of a command you can ask the man
ual page about it. Let's say we're not really convinced that the program kate
is what we want. Let's see its manual!
- Code: Select all
When I type that command I get this back on my screen:
KATE(1) KDE User's Manual KATE(1)
kate - Advanced text editor for KDE
kate [-s, --start name] [-u, --use] [-p, --pid pid] [-e, --encoding name] [-l, --line line] [-c, --column column] [-i, --stdin]
[KDE Generic Options] [Qt Generic Options]
Kate is the KDE Advanced Text Editor.
Kate also provides the editor part for various applications, under the name KWrite.
Some of Kate's many features include configurable syntax highlighting for languages ranging from C and C++ to HTML to bash scripts, the ability
to create and maintain projects, a multiple document interface (MDI), and a self-contained terminal emulator.
But Kate is more than a programmer's editor. Its ability to open several files at once makes it ideal for editing UNIXÂ®'s many configuration
So after reading this it's probably safe to say that yes, kate is what we wanted, given that we don't have gedit.
I hope you feel a tad more comfortable with your Linux installation now?