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)
Say goodbye to the hassles of bike ownership! MotoShare.in offers affordable rentals, whether you need a scooter for errands, a bike for a road trip, or a reliable ride to explore new cities.