FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-13-2011, 06:02 AM
William Biggs
 
Default ubuntu server 11.04

I have a ubuntu server up I need to know how to edit a xml file in the
command window ans save it ?


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 06:31 AM
"Korves, Tim"
 
Default ubuntu server 11.04

Hi there,

you could use any console-based editor like vi, vi-improved (vim),
nano, pico, joe, etc.

Just open the file with your preferred editor.

<snip>
vim /path/to/file.xml

[ESC], :wq
</snap>

Hope this was the answer you expected.

Rgds, Tim

2011/7/13 William Biggs <wbiggs@clear.net>:
> I have a ubuntu server up I need to know how to edit a xml file in the
> command window ans save it ?
>
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 06:32 AM
Avi
 
Default ubuntu server 11.04

William Biggs wrote:

> I have a ubuntu server up I need to know how to edit a xml file in the
> command window ans save it ?

nano /path/to/the/xml/file

When you're in nano, it shows hints of how to do things like save and
exit at the bottom of the window.

It's probably worth having a read through of this:

https://help.ubuntu.com/community/UsingTheTerminal

though you can ignore the 'starting a terminal' bit if you're sat at
the server, in which case a look into SSH is probably also likely to
make things easier for you:

https://help.ubuntu.com/community/SSH

--
Avi

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 06:42 AM
Avi
 
Default ubuntu server 11.04

Korves, Tim wrote:

> you could use any console-based editor like vi, vi-improved (vim),
> nano, pico, joe, etc.
>
> Just open the file with your preferred editor.
>
> <snip>
> vim /path/to/file.xml
>
> [ESC], :wq
> </snap>
>
> Hope this was the answer you expected.


Even as a Vim user I feel I should point out that vim is almost never
what is expected the first time someone needs to edit a file in the
terminal.

It's a very good editor, but it's one that requires some learning.
Things take longer in, say, nano, but you're not at all likely to
accidentally save a file of garbage with it (unless your muscle memory
insists upon leaving vi commands all over the place )

--
Avi

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Wed Jul 13 10:30:02 2011
Return-path: <ubuntu-users-bounces@lists.ubuntu.com>
Envelope-to: tom@linux-archive.org
Delivery-date: Wed, 13 Jul 2011 09:41:54 +0300
Received: from chlorine.canonical.com ([91.189.94.204]:54743)
by s2.java-tips.org with esmtp (Exim 4.69)
(envelope-from <ubuntu-users-bounces@lists.ubuntu.com>)
id 1Qgt8s-0004y2-9n
for tom@linux-archive.org; Wed, 13 Jul 2011 09:41:54 +0300
Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com)
by chlorine.canonical.com with esmtp (Exim 4.71)
(envelope-from <ubuntu-users-bounces@lists.ubuntu.com>)
id 1QgtAZ-0002UT-ET; Wed, 13 Jul 2011 06:43:39 +0000
Received: from mail-gy0-f177.google.com ([209.85.160.177])
by chlorine.canonical.com with esmtp (Exim 4.71)
(envelope-from <toshazed@gmail.com>) id 1QgtAT-0002UN-DN
for ubuntu-users@lists.ubuntu.com; Wed, 13 Jul 2011 06:43:33 +0000
Received: by gyh4 with SMTP id 4so2656176gyh.8
for <ubuntu-users@lists.ubuntu.com>;
Tue, 12 Jul 2011 23:43:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type; bh=tUkb1QlUXqO2L/VR923BSZPK8+EUoBhSW5KOV7dq50g=;
b=BbPSW+AnqWzizz6yw4BxX0ooJS8p8cXavn2COMHzAk2pnhzi w16Aobj/0jz04ek5Vd
welchfVxy8zqy9BGQmX/uE+zoy7cBpMmyyNa/bHlQiZtFUKZOy6l+6e7mSPsxuvaOl+s
Bh/D9yXHPZyOKPbSAZjc5R3hQICU7Bl9P5hXc=
MIME-Version: 1.0
Received: by 10.236.78.232 with SMTP id g68mr1105875yhe.416.1310539410967;
Tue, 12 Jul 2011 23:43:30 -0700 (PDT)
Received: by 10.236.36.5 with HTTP; Tue, 12 Jul 2011 23:43:30 -0700 (PDT)
In-Reply-To: <CAG+tHmsMOT8E7Nair1+vRGHv1Fw1RGQTrO31K+L-qHYe63iU-Q@mail.gmail.com>
References: <CAG+tHmsMOT8E7Nair1+vRGHv1Fw1RGQTrO31K+L-qHYe63iU-Q@mail.gmail.com>
Date: Wed, 13 Jul 2011 12:43:30 +0600
Message-ID: <CAK6e52rLbGfhkb5=G_n6ivsL3EjcPc6AJj8GzwPBnROKtrtd pQ@mail.gmail.com>
Subject: Re: Message at the time of Booting
From: =?UTF-8?B?4Ka44Ka+4Kac4KeH4Kam4KeB4KawIOCmsOCmueCmv+Cmri Dgppzgp4vgp5/gpr7gprDgpqY=?=
=?UTF-8?B?4Ka+4Kaw?= <toshazed@gmail.com>
To: "Ubuntu user technical support,
not for general discussions" <ubuntu-users@lists.ubuntu.com>
X-BeenThere: ubuntu-users@lists.ubuntu.com
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: "Ubuntu user technical support,
not for general discussions" <ubuntu-users@lists.ubuntu.com>
List-Id: "Ubuntu user technical support,
not for general discussions" <ubuntu-users.lists.ubuntu.com>
List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/ubuntu-users>,
<mailto:ubuntu-users-request@lists.ubuntu.com?subject=unsubscribe>
List-Archive: <https://lists.ubuntu.com/archives/ubuntu-users>
List-Post: <mailto:ubuntu-users@lists.ubuntu.com>
List-Help: <mailto:ubuntu-users-request@lists.ubuntu.com?subject=help>
List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>,
<mailto:ubuntu-users-request@lists.ubuntu.com?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2491245585300421381=="
Sender: ubuntu-users-bounces@lists.ubuntu.com
Errors-To: ubuntu-users-bounces@lists.ubuntu.com

--===============2491245585300421381==
Content-Type: multipart/alternative; boundary=20cf300fb0bd0e0d4204a7edbc19

--20cf300fb0bd0e0d4204a7edbc19
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64

RGVhciBDaGlkYW1iYXJhaXllcgoKMjAxMS83LzEzIFJhbWFjaG FuZHJhbiBDaGlkYW1iYXJhaXll
ciA8cmFtYWNoYW5kcmFuLmNoaWRhbWJhcmFtQGdtYWlsLmNvbT 4KCj4gV2hlbiBJIHN0YXJ0IG15
IExhcHRvcCB3aGVyZSBJIGhhdmUgaW5zdGFsbGVkIFVidW50dS AxMC4xMCwgSSBnZXQgdGhlCj4g
Zm9sbG93aW5nIG1lc3NnLSAia2V5czogdG8gY29udGludWUgd2 FpdCBvciBwcmVzcyBTIHRvIHNr
aXAgbW91bnRpbmcgb3IgTQo+IGZvciBtYW51YWwgcmVjb3Zlcn kuCj4KCkkgdGhpbmsgdGhpcyBt
c2cgaXMgc2hvd2luZyBhdCB0aGUgcGVyaW9kIG9mIGJvb3QgcH JvY2VzcyB5b3VyIGxhcHRvcC4g
VGhpcwptYXkgb2NjdXIgaWYgeW91ciBPUyBmYWlsZWQgdG8gYS BkZXNpcmVkIHBhcnRpb24gZGF0
YSBvciB0aGUgZmlsZXN5c3RlbSBvZgp0aGUgcGFydGl0aW9uIG dvdCBjb3JydXB0ZWQuCgoKPiBD
b3VsZCBub3QgdXBkYXRlIElDRSBhdXRob3JpdHkgL2hvbWUvcm FtLi4uLi8uSUNFIGF1dGhvcml0
eQo+CgpBbmQgdGhpcyBvY2N1cnMgd2hlbiB5b3VyIHVzZXIgcH JvZmlsZSBmYWlsZWQgdG8gbG9h
ZCBhdCB0aGUgdGltZSBvZiBsb2dnaW5nCmluIHRvIHRoZSBzeX N0ZW0uCgpMZXQgbWUga25vdyBz
b210aGluZyBpbiBicmllZi4KCjEuIEZyb20gd2hlbiB5b3UgYX JlIGZhY2luZyB0aGlzIHByb2Js
ZW0/CjIuIFdoYXQgcHJvZ3JhbS9hcHBsaWNhdGlvbiB5b3UgdXNlZC BsYXN0PwozLiBXaGF0IHBy
b2dyYW0vYXBwbGljYXRpb24geW91IGhhdmUgaW5zdGFsbGVkL2 NvbmZpZ3VyZWQgYXQgbGFzdCBi
ZWZvcmUKdGhpcyBwcm9ibGVtcyBiZWdhbj8KNC4gRGlkIHlvdS BldmVyIGNvbmZpZ3VyZWQgYW55
IG9mIHlvdSBwYXJ0aXRpb25zIG1hbnVhbGx5Pwo1LiBJcyB0aG VyZSBhbnkgb3RoZXIgdXNlciBh
Y2NvdW50cyBvbiB5b3VyIGxhcHRvcD8gSWYgeWVzIHRoZW4sIG FyZSB0aG9zZQpvciB0aGF0IGFj
Y291bnQgaGFkIHRoZSByb290IHByZXZpbGVnZXM/CgpQbGVhc2UgbGV0IG1lIGtub3cgdGhlIGFu
c3dlcnMgb2YgdGhlc2UgcXVlc3Rpb25zIGNhcmVmdWxseSB0by BoZWxwIHlvdSBtb3JlCmFuZCBl
ZmZlY3RpdmVseS4KCldpdGggUmVnYXJkcwotLSAK4Kaw4Ka/4KaCL1JJTkcKKzg4MDE2NzE0MTE0
MzcKCuCmruCmueCmvuCmuOCmmuCmv+CmrC9HZW5lcmFsIFNlY3 JldGFyeQrgpqvgpr7gpongpqjg
p43gpqHgp4fgprbgpqgg4Kar4KawIOCmk+CmquCnh+CmqCDgpr jgp4vgprDgp43gprgg4Ka44Kay
4Ka/4KaJ4Ka24Kao4Ka4IOCmrOCmvuCmguCmsuCmvuCmpuCnh+Cmti AvIEZvdW5kYXRpb24gZm9y
IE9wZW4gU291cmNlClNvbHV0aW9ucyBCYW5nbGFkZXNoCgrgpq rgp43gprDgpqfgpr7gpqgg4Ka4
4Kau4Kao4KeN4Kas4Kav4Ka84KaVLCAi4Kaq4KeH4KaZ4KeN4K aX4KeB4KaH4KaoIOCmruCnh+Cm
suCmviAtIOCnqOCnpuCnp+CnpyA8aHR0cDovL2Zvc3NiZC5vcm cvaW5kZXgucGhwL2V2ZW50PiIK
4KWk4KWkIOCmrOCnjeCmr+CmleCnjeCmpOCmv+Cml+CmpCDgpq zgp43gprLgppfgpoMg4Kaw4Ka/
4KaCLeCmpuCnjeCmryDgpqHgpqggJ+CmsCDgpqzgp43gprLgpp cgPGh0dHA6Ly90b3NoYXplZC53
b3JkcHJlc3MuY29tLz4g4KWk4KWkCuCmuOCmpuCmuOCnjeCmry wg4Kay4Ka/4Kao4Ka+4KaV4KeN
4Ka4IOCmruCmv+CmqOCnjeCmnyDgpqzgpr7gpoLgprLgpr7gpq bgp4fgprYgPGh0dHA6Ly9saW51
eG1pbnQtYmQub3JnL2Fib3V0X3VzPiDgpaTgpaQK4Ka44Kam4K a44KeN4KavLCDgpongpqzgp4Hg
pqjgp43gpp/gp4EK4Kas4Ka+4KaC4Kay4Ka+4Kam4KeH4Ka2IDxodHRwczovL 2xhdW5jaHBhZC5u
ZXQvJTdFdG9zaGF6ZWQ+Cg==
--20cf300fb0bd0e0d4204a7edbc19
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dear Chidambaraiyer<br><br><div class=3D"gmail_quote">2011/7/13 Ramachandra=
n Chidambaraiyer <span dir=3D"ltr">&lt;<a href=3D"mailto:ramachandran.chida=
mbaram@gmail.com">ramachandran.chidambaram@gmail.c om</a>&gt;</span><br><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex;">
When I start my Laptop where I have installed Ubuntu 10.10, I get the follo=
wing messg- &quot;keys: to continue wait or press S to skip mounting or M f=
or manual recovery.<br></blockquote><div><br>I think this msg is showing at=
the period of boot process your laptop. This may occur if your OS failed t=
o a desired partion data or the filesystem of the partition got corrupted.<=
br>
</div><div>=C2=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-le=
ft: 1ex;">Could not update ICE authority /home/ram..../.ICE authority<br cl=
ear=3D"all">
</blockquote><div><br>And this occurs when your user profile failed to load=
at the time of logging in to the system.<br><br>Let me know somthing in br=
ief. <br><br>1. From when you are facing this problem?<br>2. What program/a=
pplication you used last?<br>
3. What program/application you have installed/configured at last before th=
is problems began?<br>4. Did you ever configured any of you partitions manu=
ally?<br>5. Is there any other user accounts on your laptop? If yes then, a=
re those or that account had the root previleges?<br>
<br>Please let me know the answers of these questions carefully to help you=
more and effectively.<br><br>With Regards<br>-- <br></div></div>=E0=A6=B0=
=E0=A6=BF=E0=A6=82/RING<br>+8801671411437<br><font><font style=3D"color:rgb=
(0, 0, 0)" color=3D"#888888"><br>
=E0=A6=AE=E0=A6=B9=E0=A6=BE=E0=A6=B8=E0=A6=9A=E0=A 6=BF=E0=A6=AC/General Sec=
retary<br>
</font></font>=E0=A6=AB=E0=A6=BE=E0=A6=89=E0=A6=A8=E0=A7=8D =E0=A6=A1=E0=A7=
=87=E0=A6=B6=E0=A6=A8 =E0=A6=AB=E0=A6=B0 =E0=A6=93=E0=A6=AA=E0=A7=87=E0=A6=
=A8 =E0=A6=B8=E0=A7=8B=E0=A6=B0=E0=A7=8D=E0=A6=B8 =E0=A6=B8=E0=A6=B2=E0=A6=
=BF=E0=A6=89=E0=A6=B6=E0=A6=A8=E0=A6=B8 =E0=A6=AC=E0=A6=BE=E0=A6=82=E0=A6=
=B2=E0=A6=BE=E0=A6=A6=E0=A7=87=E0=A6=B6 / Foundation for Open Source Soluti=
ons Bangladesh<br><br><font><font style=3D"color:rgb(0, 0, 0)" color=3D"#88=
8888">=E0=A6=AA=E0=A7=8D=E0=A6=B0=E0=A6=A7=E0=A6=B E=E0=A6=A8 =E0=A6=B8=E0=
=A6=AE=E0=A6=A8=E0=A7=8D=E0=A6=AC=E0=A6=AF=E0=A6=B C=E0=A6=95</font></font>,=
&quot;<a href=3D"http://fossbd.org/index.php/event" target=3D"_blank">=E0=
=A6=AA=E0=A7=87=E0=A6=99=E0=A7=8D=E0=A6=97=E0=A7=8 1=E0=A6=87=E0=A6=A8 =E0=
=A6=AE=E0=A7=87=E0=A6=B2=E0=A6=BE - =E0=A7=A8=E0=A7=A6=E0=A7=A7=E0=A7=A7</a=
>&quot; =E0=A5=A4=E0=A5=A4 =E0=A6=AC=E0=A7=8D=E0=A6=AF=E0=A6=95=E0=A7=8D=E0=
=A6=A4=E0=A6=BF=E0=A6=97=E0=A6=A4 =E0=A6=AC=E0=A7=8D=E0=A6=B2=E0=A6=97=E0=
=A6=83 <a href=3D"http://toshazed.wordpress.com/" target=3D"_blank">=E0=A6=
=B0=E0=A6=BF=E0=A6=82-=E0=A6=A6=E0=A7=8D=E0=A6=AF =E0=A6=A1=E0=A6=A8 '=
=E0=A6=B0 =E0=A6=AC=E0=A7=8D=E0=A6=B2=E0=A6=97</a> =E0=A5=A4=E0=A5=A4 =E0=
=A6=B8=E0=A6=A6=E0=A6=B8=E0=A7=8D=E0=A6=AF, <a href=3D"http://linuxmint-bd.=
org/about_us" target=3D"_blank">=E0=A6=B2=E0=A6=BF=E0=A6=A8=E0=A 6=BE=E0=A6=
=95=E0=A7=8D=E0=A6=B8 =E0=A6=AE=E0=A6=BF=E0=A6=A8=E0=A7=8D=E0=A6=9F =E0=A6=
=AC=E0=A6=BE=E0=A6=82=E0=A6=B2=E0=A6=BE=E0=A6=A6=E 0=A7=87=E0=A6=B6</a> =E0=
=A5=A4=E0=A5=A4 =E0=A6=B8=E0=A6=A6=E0=A6=B8=E0=A7=8D=E0=A6=AF, <a href=3D"h=
ttps://launchpad.net/%7Etoshazed" target=3D"_blank">=E0=A6=89=E0=A6=AC=E0=
=A7=81=E0=A6=A8=E0=A7=8D=E0=A6=9F=E0=A7=81 =E0=A6=AC=E0=A6=BE=E0=A6=82=E0=
=A6=B2=E0=A6=BE=E0=A6=A6=E0=A7=87=E0=A6=B6</a><br>

<br>

--20cf300fb0bd0e0d4204a7edbc19--


--===============2491245585300421381==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--===============2491245585300421381==--
 
Old 07-13-2011, 07:08 AM
"Korves, Tim"
 
Default ubuntu server 11.04

Avi, you're right. But I'm a vim user... So, it looked like an easy
example to me... ;-)

2011/7/13 Avi <lists@avi.co>:
> Korves, Tim wrote:
>
>> you could use any console-based editor like vi, vi-improved (vim),
>> nano, pico, joe, etc.
>>
>> Just open the file with your preferred editor.
>>
>> <snip>
>> vim /path/to/file.xml
>>
>> [ESC], :wq
>> </snap>
>>
>> Hope this was the answer you expected.
>
>
> Even as a Vim user I feel I should point out that vim is almost never
> what is expected the first time someone needs to edit a file in the
> terminal.
>
> It's a very good editor, but it's one that requires some learning.
> Things take longer in, say, nano, but you're not at all likely to
> accidentally save a file of garbage with it (unless your muscle memory
> insists upon leaving vi commands all over the place )
>
> --
> Avi
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 07:24 AM
Janne Jokitalo
 
Default ubuntu server 11.04

> 2011/7/13 Avi <lists@avi.co>:
> > Korves, Tim wrote:
> >
> >> you could use any console-based editor like vi, vi-improved (vim),
> >> nano, pico, joe, etc.
> >>
> >> Just open the file with your preferred editor.
> >>
> >> <snip>
> >> vim /path/to/file.xml
> >>
> >> [ESC], :wq
> >> </snap>
> >
> > Even as a Vim user I feel I should point out that vim is almost never
> > what is expected the first time someone needs to edit a file in the
> > terminal.
<snip>
> >
On Wed, Jul 13, 2011 at 09:08:11AM +0200, Korves, Tim wrote:
> Avi, you're right. But I'm a vim user... So, it looked like an easy
> example to me... ;-)

Please don't top-post.

The problem for the inexperienced vim user with the above example would be to
figure out how to actually insert/edit any text. There's no 'i' command to get
to the insert-mode.

Unless of course someone edited the OP, in which case I apologize for jumping
into the middle of a thread.

But it generally considered wiser to instruct using nano, which is (also?)
installed by default, and has no stripped-down version anyhow.


--
Jaska

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 07:57 AM
Avi Greenbury
 
Default ubuntu server 11.04

Janne Jokitalo wrote:

> But it generally considered wiser to instruct using nano, which is
> (also?) installed by default, and has no stripped-down version anyhow.

There is no vim by default, either - only vi.

Nano's also the default. It's what he'll see with visudo and crontab -e
and the like.

--
Avi

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 08:16 AM
Tom H
 
Default ubuntu server 11.04

On Wed, Jul 13, 2011 at 3:57 AM, Avi Greenbury <lists@avi.co> wrote:
> Janne Jokitalo wrote:
>
>> But it generally considered wiser to instruct using nano, which is
>> (also?) installed by default, and has no stripped-down version anyhow.
>
> There is no vim by default, either - only vi.

Of course vim's installed by default. In fact, there's probably no
"real" vi - unless vim.tiny is vi.

Give "update-alternatives --list vi" a try...

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 09:02 AM
Avi Greenbury
 
Default ubuntu server 11.04

Tom H wrote:
> On Wed, Jul 13, 2011 at 3:57 AM, Avi Greenbury <lists@avi.co> wrote:
> > Janne Jokitalo wrote:
> >
> >> But it generally considered wiser to instruct using nano, which is
> >> (also?) installed by default, and has no stripped-down version
> >> anyhow.
> >
> > There is no vim by default, either - only vi.
>
> Of course vim's installed by default. In fact, there's probably no
> "real" vi - unless vim.tiny is vi.
>
> Give "update-alternatives --list vi" a try...
>

Well, yes. vim.tiny is installed, and it's more accurate to refer to
that as 'vim' than 'not vim'. But what I meant was that by default, if
he tries to do

vim /path/to/file.xml

As in the earlier message, he will be met with words to the effect of
"Vim cannot be found, try installing one of these packages" followed by
a list of vim-* packages It must, again by default, either be invoked
as 'vi' (which might as well be vi) or 'vim.tiny'.

In short, if someone is asking how to edit a text file in a terminal, I
don't think part of the how-to should include:

- a tutorial on vi
- a tutorial on vim
- an explanation of how to change the default editor
- an explanation of how to invoke vim.tiny as vim rather than vi

Because none of those are necessary. It should explain how to use the
perfectly workable (unless you already know some other editor, in which
case the question is moot) nano. Which is there and working and
predictable and friendly, if a little slow, by default.

--
Avi

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-13-2011, 09:59 AM
Janne Jokitalo
 
Default ubuntu server 11.04

On Wed, Jul 13, 2011 at 04:16:48AM -0400, Tom H wrote:
> On Wed, Jul 13, 2011 at 3:57 AM, Avi Greenbury <lists@avi.co> wrote:
> > There is no vim by default, either - only vi.
>
> Of course vim's installed by default. In fact, there's probably no
> "real" vi - unless vim.tiny is vi.

Yeah, seems 'server' task has vim for it, which nowadays is the full vim.


--
Jaska

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 01:18 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org