The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
edit a file using ksh meghana Shell Programming and Scripting 3 04-16-2008 11:04 AM
edit a .fs file kiterboy UNIX for Dummies Questions & Answers 4 05-02-2007 09:32 AM
Can't edit crontab FredSmith UNIX for Dummies Questions & Answers 1 10-24-2005 05:12 PM
VFSTAB edit xeroxguy UNIX for Dummies Questions & Answers 1 09-27-2005 09:07 PM
Edit .profile dasnutz UNIX Desktop for Dummies Questions & Answers 1 06-11-2002 11:32 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-20-2002
<Therapy> <Therapy> is offline
Registered User
  
 

Join Date: Jan 2002
Location: Sweden
Posts: 14
Question Edit txt?

Hi!
A windows user going UNIX on part time, oh no?!!

So my question is how I edit and save documents in UNIX? In DOS you can type 'edit x.txt' to both create a new file and edit a file that already exists. How do I do this in Unix?
  #2 (permalink)  
Old 03-20-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Unix Predator
  
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
You can use vi text editor in Unix

vi [-eFGlRrSv] [-c cmd] [-t tag] [-w size] [file]

Vi is a screen oriented text editor. vi have different interfaces to the same program, and it is possible to switch back and forth during an edit session. View is the equivalent of using the -R (read-only) option of vi.

Command input for vi is read from the standard input. In the vi interface, it is an error if standard input is not a terminal.

Vi is a screen editor. This means that it takes up almost the entire screen, displaying part of the file on each screen line, except for the last line of the screen. The last line of the screen is used for you to give commands to vi, and for vi to give information to you.

The other fact that you need to understand is that vi is a modeful editor.

Ex:
dd Delete the line the cursor is on.
x Delete the character the cursor is on.
:w Save the Works that u done
:q Quit from vi editor
:q! Quit without saving the work that you edit

Do check your Unix system vi man pages for more info
  #3 (permalink)  
Old 03-20-2002
<Therapy> <Therapy> is offline
Registered User
  
 

Join Date: Jan 2002
Location: Sweden
Posts: 14
Lightbulb Thanks!

I think I start to get a grip of it now...
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0