Solved

Some Terminal Confusion

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Six Sigma Control Plans
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 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