Solved

Some Terminal Confusion

Posted on 2011-02-17
1
1,363 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Finding a free PC on campus 6 54
Network Connection 5 35
SUM 2 INTEGER ARRAYS INTO 1 10 63
Recover password from HP 4300 SAN 2 18
This is about my first experience with programming Arduino.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now