[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Some Terminal Confusion

Posted on 2011-02-17
1
Medium Priority
?
1,596 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 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Simple Linear Regression
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

649 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