Solved

Some Terminal Confusion

Posted on 2011-02-17
1
1,459 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exchange 2013 will not send or receive 9 76
Network latency question 9 76
How to become System Integration engineer 3 68
Wifi Router Confliction with Network 12 37
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

738 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