Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th October 2004, 03:42 PM
virtuoso Offline
Registered User
 
Join Date: Aug 2004
Posts: 26
i can't edit a file! pico / edit bad commands?

I am trying to edit some files in ssh but if I try "edit" or "pico" I get a bad command. Why?

What other commands can I use to edit a file?
Reply With Quote
  #2  
Old 28th October 2004, 03:46 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
the most common are:
vi
vim
emacs
nano
etc.
Everyone of them has its own command to work with it, so you'll have to search for tutorials on the net.

And if you are root on the machine
just
yum install pico
__________________
--
http://twitter.com/ik12
Reply With Quote
  #3  
Old 28th October 2004, 05:30 PM
Mat's Avatar
Mat Offline
Retired Community Manager
 
Join Date: Jun 2004
Location: lair of a unix daemon
Posts: 1,155
Quote:
Originally Posted by virtuoso
Why?
simply because they're not installed.. if you have root-access, try to install them.



Mat
__________________
Man will always find a difficult means to perform a simple task
(Rube Goldberg)

Having fun with Tcl at
Mat's Playground
Reply With Quote
  #4  
Old 28th October 2004, 06:34 PM
CrystalCowboy's Avatar
CrystalCowboy Offline
Registered User
 
Join Date: Sep 2004
Posts: 536
Pico comes as part of pine. Pine is not a standard part of the FC2 distribution. I think nano was designed to look a lot like pico, so if you can't install pico that might be a good replacement, and nano is standard under FC2.
__________________
Explore the Core!
Reply With Quote
  #5  
Old 28th October 2004, 06:48 PM
GreyGeek Offline
Registered User
 
Join Date: Aug 2004
Location: Lincoln, NE
Age: 71
Posts: 83
Quote:
Originally Posted by virtuoso
I am trying to edit some files in ssh but if I try "edit" or "pico" I get a bad command. Why?
Either pico and edit are not on your system, or they are not in your path.
You can issue "whereis pico" and it it is on you system that command will tell you where it is.
Ditto for 'edit'.
If whereis shows you their location then you can evoke them by includeing their path in your command sequence: /<pathshownbywhereis>/pico /pathtofiletoedit/filename.

Another way to locate a file, especially if you don't know its exact spelling, is to use "locate"
locate pico
You will get a list showing every file with 'pico' as part of its name.
If your system complains that the locate database doesn't exist then open a root term and issue 'updatedb'.
Reply With Quote
  #6  
Old 9th November 2004, 06:24 PM
spark1's Avatar
spark1 Offline
Registered User
 
Join Date: Nov 2004
Location: TLV, Israel.
Posts: 18
looks like ¨nano¨ is equal to ¨pico¨.. or is it just me.. ?
__________________
Dont forget PC isn't all in life - get out and have some beer! ;)
Reply With Quote
  #7  
Old 9th November 2004, 06:43 PM
kosmosik's Avatar
kosmosik Offline
Registered User
 
Join Date: Apr 2004
Location: Warsaw, Poland
Age: 32
Posts: 1,085
can somebody give some explanation why vi is defaultu $EDITOR in Fedora? like come on... I like VIM, I use it everyday but for newbie vi is like something from other space (how do I close this thing?). I know vi is de facto standard on *NIX (AFAIR ed is part of POSIX standard) and I am not saying to remove it but to not to use it as default. mcedit or nano is quite enough for newbies and at least they know how to use it...

for topic - issue something (as root) like "yum install mc" and you will get nice editor launched via mcedit...
Reply With Quote
  #8  
Old 9th November 2004, 07:26 PM
Ensnared Offline
Registered User
 
Join Date: Nov 2004
Location: Trondheim, Norway
Age: 35
Posts: 17
I've been using Linux for 7 years and I still think vi seems like something from outer space (no, I don't like emacs either )

I love pico. Always have, always will. Since it's part of pine (as already mentioned above) it's not part of the Fedora distro (I think the reason it's no longer available - as it was in RedHat - is that it isn't licensed under the GPL). Nano was, as also mentioned, created as a GPL version of pico (it was targeted for Debian to begin with), and works exactly like pico does.

So - your solution is to do the following:

alias pico='nano'

Put that into your /etc/bashrc or something and you'll be able to continue using pico even if it's not actually installed
Reply With Quote
  #9  
Old 9th November 2004, 08:45 PM
Mat's Avatar
Mat Offline
Retired Community Manager
 
Join Date: Jun 2004
Location: lair of a unix daemon
Posts: 1,155
Quote:
Originally Posted by spark1
looks like ¨nano¨ is equal to ¨pico¨.. or is it just me.. ?
that's cause it's a pico clone


Mat
__________________
Man will always find a difficult means to perform a simple task
(Rube Goldberg)

Having fun with Tcl at
Mat's Playground
Reply With Quote
Reply

Tags
bad, commands, edit, file, pico

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to edit yum.conf file? FedoraSuperFan Using Fedora 2 4th February 2008 01:13 AM
how do i edit this file. ubersyntax Using Fedora 6 3rd January 2008 08:21 PM
Unable to edit any file in OS??? ajeetraina Using Fedora 5 1st January 2008 02:38 PM
anything can be used to edit pdf file? fedoradebut Using Fedora 0 3rd April 2006 05:31 PM
How do I edit file (php.ini) guruleenyc Using Fedora 5 18th March 2005 01:16 PM


Current GMT-time: 03:00 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat