LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-31-2005, 05:25 PM   #1
atravis
LQ Newbie
 
Registered: Mar 2005
Location: UK
Posts: 2

Rep: Reputation: 0
Unhappy Editing via Putty


I wish to edit or create a text file using vi (or other) with a putty client.

A simple question I am sure

I have installed fedora core 3. I have got it on my network and it can connect to the internet. I have done the honourable thing and removed the keyboard and monitor and can access the box from a putty client via ssh.

I am not a great user of these tools so don't laugh too hard: I can navigate up and down the directories and execute various commands: ifconfig, ping, shutdown etc....

I do however want to do more than this and this is where I am stuck. I wish to edit or create a text file but when running ' vi textfile ' I get an error : -bash: vi: command not found - I have tried various options on this but cannot edit a file using vi, vim, kedit, gedit, and so on with a putty client.

I am doing something simple and wrong but as a newbie have no idea.
 
Old 03-31-2005, 05:54 PM   #2
amon
Member
 
Registered: May 2004
Location: UK
Distribution: Debian, Ubantu, CentOS
Posts: 146

Rep: Reputation: 17
many editors you listed there will require X to be running, X is the graphical front end to linux (and other *nix systems). if your not sure then rule of thumb, if it runs in a terminal its a terminal application andit will run on putty if it has any buttons and requires the mouse then chances are it needs X and putty only connects to the terminal via SSH (or telnet)

try running nano (or pico). i use nano as it is easy and your common commands are displayed at the bottom, things like ctrl+o to save(write Out) the file and ctrl+x to eXit.

annother thing to try is seeing what happens if you do thease commands on the computer in a terminal (if you reconnect your keyboard, mouse and monitor. generaly i'd reccommend learning linux actualy on the linux box (preferably with a gui) to start with its a lot easier to get into with the hints of the GUI and then slip into the command line for admin stuff.

i hope this clears up some misunderstandings and helps in some way.

HTH
 
Old 03-31-2005, 05:55 PM   #3
asb
Member
 
Registered: Jul 2003
Location: portland
Distribution: debian testing
Posts: 68

Rep: Reputation: 15
sounds like you don't have vi installed to me.
 
Old 04-01-2005, 04:19 PM   #4
atravis
LQ Newbie
 
Registered: Mar 2005
Location: UK
Posts: 2

Original Poster
Rep: Reputation: 0
sorted

thanks guys,

vi was not installed - downloaded apt-get and then vim and it works fine now.

regards
 
Old 04-01-2005, 04:28 PM   #5
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Rep: Reputation: 17
Here is a cheat sheet I found a while ago...You can print it out and have the vi commands infront of you as you use it. It's a good sheet to have when your new to vi. http://bullium.com/vim.html hope it helps.
 
Old 04-01-2005, 05:01 PM   #6
amon
Member
 
Registered: May 2004
Location: UK
Distribution: Debian, Ubantu, CentOS
Posts: 146

Rep: Reputation: 17
i like the cheet sheet, very handy. have saved a copy for a rainy day.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
x11vnc through putty? nicedreams Linux - Software 1 06-04-2005 05:37 AM
Re: Putty unixfreak Linux - Newbie 6 09-01-2004 12:42 PM
Need help with PUTTY unixfreak Linux - Software 2 08-30-2004 07:06 PM
Editing a file using PuTTY on my Red Hat 9 server...please, need help Quincy Wisdom Linux - Newbie 4 07-01-2004 08:30 PM
Other than putty KaktusKnight Linux - General 4 05-07-2003 02:28 PM

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

All times are GMT -5. The time now is 03:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration