Command that gave me error:vi .env
or vi <any file name that starts with a “.” that means it’s a hidden file>
Error:
Swap file .env.swp already exists
or
Swap file xxx already exists
Solution:
ls -A
(This will show you if a .swp file really existd)rm .filename.swp
(This will delete the .swp file which was generated while you closed the session accidentally while editing the original file)
Verify the solution:
ls -A
(Now you won’t see the .swp file that you deleted using the above command)
Latest posts by Chetan (see all)
- MyHospitalNow.com – PROD | Clean all patient user and related quote, bid and file data - March 21, 2020
- Sending Email with attachments in Laravel 5.5 using and PHP & JQuery - February 20, 2020
- How to run php artisan queue:listen in background on Ubuntu or Linux machine - February 6, 2020