LinuxQuestions.org
Visit Jeremy's Blog.
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 02-13-2004, 09:46 PM   #1
santasballz
Member
 
Registered: Jan 2004
Posts: 227

Rep: Reputation: 30
what the hell is wrong with kwrite, kedit, kword, k evertying?


i need to edit a file, and i need to be under root
under root, i type kedit
says command not found
i type kwrite
says command not found

thign is i installed all the packages, and i can use kwrite to open the file if i right click the file in graphical mode and select "open with kwrite" but the problem is that if i do that, i am not under root and therefore i cannot write in the file

but under root, when i type in kwrite it says command not found!
 
Old 02-13-2004, 10:04 PM   #2
santasballz
Member
 
Registered: Jan 2004
Posts: 227

Original Poster
Rep: Reputation: 30
wtf, i can use kedit and everything else when i am under normal user

but i cannot do them when i am root, but i need to be root to edit the files
 
Old 02-13-2004, 10:06 PM   #3
Luantum
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 48

Rep: Reputation: 15
As a normal user type 'whereis kedit' and look at the paths it gives you. Find the path that the kedit executible is in and add it to your root ~/.bashrc

Or just use pico!
 
Old 02-13-2004, 10:07 PM   #4
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
chill out.

try /opt/kde/bin/kwrite

Not everything is in root's path.....
 
Old 02-13-2004, 10:08 PM   #5
santasballz
Member
 
Registered: Jan 2004
Posts: 227

Original Poster
Rep: Reputation: 30
how do i add it to the root thing? the ~/.bashrc
also is the pico command just pico?
 
Old 02-13-2004, 10:20 PM   #6
santasballz
Member
 
Registered: Jan 2004
Posts: 227

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Luantum
As a normal user type 'whereis kedit' and look at the paths it gives you. Find the path that the kedit executible is in and add it to your root ~/.bashrc

Or just use pico!
hmm sorry, newbie here, how do i TRY that?
 
Old 02-13-2004, 11:20 PM   #7
Squall
Member
 
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239

Rep: Reputation: 31
1. cp ~/.bashrc ~/.bashbackup
2. *name of text editor* ~/.bashrc
3. go to an empty line
4. write on empty line:
[code]export PATH=$PATH:/pathoffile
5. save
6. exit editor
7. send me some money
8. type the same thing into your regular console
9. w00t
10. send me more money
11. Congradulations, you are now a h4x0r
 
Old 02-13-2004, 11:30 PM   #8
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Originally posted by Squall
1. cp ~/.bashrc ~/.bashbackup
2. *name of text editor* ~/.bashrc
3. go to an empty line
4. write on empty line:
[code]export PATH=$PATH:/pathoffile
5. save
6. exit editor
7. send me some money
8. type the same thing into your regular console
9. w00t
10. send me more money
11. Congradulations, you are now a h4x0r
I can think of a couple of things wrong with this...

2. the person is trying to fix a trouble with his text editor not being in his path, so "*name of text editor* ~/.bashrc" isn't going to do squat.

4. this needs fixin..."[code]" has nothing to do with bash variables

11. a "h4x0r" probably wouldn't be using Kwrite

7. & 10. $$ > Squall (there's you money =oD)


As an alternative, Vim is an excellent editor for both user and root...type "vimtutor" for some help

Last edited by mikshaw; 02-13-2004 at 11:32 PM.
 
  


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
What the hell am I doing wrong???? drknownothing Linux - Hardware 9 09-30-2004 08:28 AM
RPM Problem... What the hell is wrong with this thing? Darx Fedora 9 03-20-2004 12:09 AM
SuSE 9.0, Where is Kedit? pc-overkill Linux - Distributions 2 12-08-2003 03:56 PM
Another ed2k_gui Problem ... What the hell is wrong. casstyle78 Linux - Software 0 11-06-2003 12:22 PM
What the hell am I doing wrong? Blank screen on boot. yakko Linux - Newbie 13 06-02-2003 08:45 PM

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

All times are GMT -5. The time now is 11:13 PM.

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