Solved

Some Terminal Confusion

Posted on 2011-02-17
1
1,436 Views
Last Modified: 2012-06-22
I've recently been seeing a lot of .swp file extensions lately. I'm trying to follow a tutorial on customizing your mac terminal page and i'm trying to edit my new .bash_profile file with the 'vi' editor but I'm getting this message after trying to open it via 'vi .bash_profile' ....

THanks
M


E325: ATTENTION
Found a swap file by the name ".bash_profile.swp"
          owned by: Marcus   dated: Mon Feb 14 19:33:23 2011
         file name: ~Marcus/.bash_profile
          modified: YES
         user name: Marcus   host name: Marcus-Mac-2.local
        process ID: 343
While opening file ".bash_profile"
             dated: Mon Feb 14 19:30:01 2011

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r .bash_profile"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".bash_profile.swp"
    to avoid this message.

Swap file ".bash_profile.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

Open in new window

0
Comment
Question by:nvibest
1 Comment
 
LVL 21

Accepted Solution

by:
developmentguru earned 500 total points
ID: 34925691
First, if you are new to the VI editor I would definitely look for a friendlier editor.  You should try nano.

The error message indicates that another program already has the file open, or the program was not shut down properly last time.  Here is a link describing the situation.

http://discussions.apple.com/thread.jspa?threadID=1972793
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Programming Language for Wordpress 7 62
Exchange 2016 - not receiving mail 17 33
Ruby or Python 7 41
Oracle programming for starter 14 24
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question