I think it's always a good idea to have a Linux terminal server
available for just such instances when you *can't* reach the z/Linux
guest via the network.

There is a short writeup of how to build a terminal server here:

 http://www.vmworkshop.org/docs/2014/24dH6VdP.pdf

Have a good one.

DJ
On 09/20/2016 02:59 PM, Marcy Cortes wrote:
There's just mainly one sed command that i've needed in order to fix enough to 
get the network up.

sed -i -e 's/oldstring/newstring/'  filename

That's generally been enough to get me through say bad IP addresses or gateway 
settings.



-----Original Message-----
From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Mark Post
Sent: Tuesday, September 20, 2016 12:25 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: [LINUX-390] Best way to edit Linux files in z/VM 3270

On 9/20/2016 at 03:01 PM, "Diep, David (OCTO-Contractor)"
<david.d...@dc.gov>
wrote:
Hi everyone,

I've searched everywhere and I cannot find for editing Linux files
while logged in with 3270. Vi will just get me stuck.  I looked at
'ed', but I get stuck as well... any recommendations??

The ed command works fine, but you need to understand how to use it.  It's ... 
different.

I frequently use sed, but if you're at the point where the root file system is 
mounted, you should be able to use the terminal server access.  This allows you 
to SSH to the terminal server, then connect to the target system and use the 
normal vi/vim editors.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit http://wiki.linuxvm.org/

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


--
*David Jones **|**Managing Director for zSystems Services **|**z/VM,
Linux, and Cloud
703.237.7370 (Office) **|**281.578.7544 (Cell)*

*Information Technology Company <http://www.itconline.com/>*

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to