#1  
Old 11th August 2006, 14:44
bravadoman bravadoman is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question How to use vi?

It's been over 20 years since using AIX and now I find myself needing the basic shell commands as well as vi editor commands. I did look on other forums for the answers first. However the suggested commands such as wq to write quit vi did not work.
[Help needed on Ubuntu Server]
1) How to use vi?

2) How to copy the text from the Dapper Drake "The Perfect Setup" from my Windows box and use on my Ubuntu box? I do not mind doing some work in vi; but doing lots of typing leads to errors. http://www.howtoforge.com/perfect_setup_ubuntu_6.06

3) Basic shell commands at the Ubuntu command line

Thanks very much.
B
Reply With Quote
  #2  
Old 11th August 2006, 14:48
sjau sjau is offline
Pseudo Lawyer
 
Join Date: Apr 2006
Location: Switzerland
Posts: 857
Thanks: 3
Thanked 25 Times in 23 Posts
Default

you could use another editor. I use nano a lot, since you are on ubuntu I think it's already installed:

nano file.txt

if not, apt-get install nano

Reply With Quote
  #3  
Old 11th August 2006, 14:58
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 1,721
Thanks: 148
Thanked 98 Times in 91 Posts
Default

I'm more a Midnight Commander (MC) person.
MC is a file manager, but using it to navigate to the file, and when needed editing the file is so easy!

apt-get install mc was all that I needed
Reply With Quote
  #4  
Old 11th August 2006, 15:00
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 830
Thanks: 5
Thanked 41 Times in 36 Posts
Default

1.) try "aptitude install vim" to install vi extended, due to debian comes with the "old" vi. vim is a bit more comfortable. But anyway vi as well as vim alsways worked fine.

3.) these "basic shell commands" are most of all the same accross the popular linux distros, so what escpecially are you looking for?
Reply With Quote
  #5  
Old 11th August 2006, 15:10
bravadoman bravadoman is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Wink basic shell commands

Quote:
Originally Posted by Ben
1.) try "aptitude install vim" to install vi extended, due to debian comes with the "old" vi. vim is a bit more comfortable. But anyway vi as well as vim alsways worked fine.

3.) these "basic shell commands" are most of all the same accross the popular linux distros, so what escpecially are you looking for?
3a. How to create a new user account?
3b. How to transfer files between two PCs perhaps using a USB drive or floppy media (my Ubuntu box is not networked)?

Thanks for taking the time to help.
B
Reply With Quote
  #6  
Old 11th August 2006, 16:15
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 830
Thanks: 5
Thanked 41 Times in 36 Posts
Default

3a: useradd / userdel, for groups the same with groupadd, groupdel
try --help or the manpages (man useradd) for more info on them.

3b: don't know if ubuntu comes with automount. otherwise just mount your device using mount, also depinding on the content of fstab.
Reply With Quote
  #7  
Old 11th August 2006, 16:48
mystix mystix is offline
HowtoForge Supporter
 
Join Date: Jul 2005
Location: Luxembourg
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bravadoman
1) How to use vi?
Look here:
http://www.dynamic-apps.com/linux_vim.jsp



Quote:
Originally Posted by bravadoman
2) How to copy the text from the Dapper Drake "The Perfect Setup" from my Windows box and use on my Ubuntu box?
To logon to your linux server via ssh you need 'putty'. You can download it here:
http://the.earth.li/~sgtatham/putty/.../x86/putty.exe

After you logged on your server, you can copy the commands from the tutorial and paste it in the putty window with a rightclick.

Quote:
Originally Posted by bravadoman
3) Basic shell commands at the Ubuntu command line
Look here:
http://members.tripod.com/~earthen/linuxcom.htm

Have fun
Reply With Quote
  #8  
Old 12th August 2006, 19:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Quote:
Originally Posted by bravadoman
1) How to use vi?
Have a look here: http://www.howtoforge.com/faq/12_15_en.html

Quote:
Originally Posted by bravadoman
3) Basic shell commands at the Ubuntu command line
Have a look here: http://linuxcommand.org/learning_the_shell.php
__________________
Falko
--
Follow me on:
Reply With Quote
  #9  
Old 10th June 2007, 05:18
MisterVlad MisterVlad is offline
Member
 
Join Date: Jun 2007
Location: Windsor, Ontario, CANADA
Posts: 61
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to MisterVlad Send a message via Skype™ to MisterVlad
Default

just to resurect an old article... PICO works really nice.

I use it on Debian 3.0, 3.1 and now 4.0. I think it is pre-installed as I have never installed it, but found it by mistake in an article. Not to mention, I have NO Idea how to use VI.
Reply With Quote
  #10  
Old 10th June 2007, 16:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Quote:
Not to mention, I have NO Idea how to use VI.
Take a look here: http://www.howtoforge.com/faq/12_15_en.html
__________________
Falko
--
Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
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


All times are GMT +2. The time now is 11:07.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th