
11th August 2006, 14:44
|
|
Junior Member
|
|
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

11th August 2006, 14:48
|
|
Pseudo Lawyer
|
|
Join Date: Apr 2006
Location: Switzerland
Posts: 857
Thanks: 3
Thanked 25 Times in 23 Posts
|
|
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
|

11th August 2006, 14:58
|
|
Moderator
|
|
Join Date: Dec 2005
Location: The Netherlands
Posts: 1,721
Thanks: 148
Thanked 98 Times in 91 Posts
|
|
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
|

11th August 2006, 15:00
|
|
Moderator
|
|
Join Date: Jul 2006
Posts: 830
Thanks: 5
Thanked 41 Times in 36 Posts
|
|
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?
|

11th August 2006, 15:10
|
|
Junior Member
|
|
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

11th August 2006, 16:15
|
|
Moderator
|
|
Join Date: Jul 2006
Posts: 830
Thanks: 5
Thanked 41 Times in 36 Posts
|
|
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.
|

11th August 2006, 16:48
|
|
HowtoForge Supporter
|
|
Join Date: Jul 2005
Location: Luxembourg
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

10th June 2007, 05:18
|
|
Member
|
|
Join Date: Jun 2007
Location: Windsor, Ontario, CANADA
Posts: 61
Thanks: 1
Thanked 1 Time in 1 Post
|
|
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.
|

10th June 2007, 16:08
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
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
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:07.
|
Recent comments
1 day 2 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 14 hours ago
1 day 15 hours ago