Swap file "/etc/sysconfig/.iptables.swp" already exists!
使用linux虛擬機器,想要放開一些埠,在開啟iptables檔案時出現了問題
Swap file "/etc/sysconfig/.iptables.swp" already exists!
然後,網上衝浪發現是因為Linux多次vim編輯, 同一個檔案如果在上一次編輯時未進行儲存,則在下一次想要進行編輯時就會出現:
swap file "*.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
解決方式就是:
ll -a 檢視當前目錄下所有的檔案 刪除以swp結尾的臨時檔案
在當前的目錄下刪除臨時檔案
# rm -rf *.swp相關文章
- 解決CentOS /etc/sysconfig/下沒有iptables的問題CentOS
- 奇怪報錯資訊“db already exists with different case already have”解決方法
- git使用報錯fatal: remote origin already exists.GitREM
- django資料庫同步時報錯“Table 'XXX' already exists”Django資料庫
- GitHub 託管程式碼的部分 fatal: remote origin already existsGithubREM
- Python BUG FileExistsError: [Errno 17] File exists: xxxPythonError
- vagrant up 啟動報錯 Stderr: VBoxManage.exe: error: A NAT rule of this name already existsError
- EXISTS、IN、NOT EXISTS、NOT IN(zt)
- Warning: Cannot modify header information - headers already sent by (output started at file_path:line)HeaderORM
- Centos7系統建立使用者時出現“useradd: user ‘xxxx‘ already exists”錯誤CentOS
- [20180808]exists and not exists.txt
- 哪吒探針Windows安裝出現Failed to install Nezha Agent: service nezha-agent already exists 如何解決WindowsAI
- 安裝啟動service redisd start時報錯 /var/run/redis_6379.pid exists, process is already running or crashedRedis
- /etc/passwd & /etc/shadow 詳解
- sql:delete if exists還是drop if exists?SQLdelete
- exists()、not exists() 、in()、not in()用法以及效率差異
- ETC2420 / ETC5242 Statistical ThinkingThinking
- centos7.6 容器執行報錯 /etc/rc.d/init.d/functions: No such file or directoryCentOSFunction
- /etc/alternatives
- already opened by ClassLoader
- In和exists使用及效能分析(二):exists的使用
- ssserver -c /etc/shadowsocks.json --log-file /var/log/shadowsocks.log -d start啟動失敗ServerJSON
- C# File.Exists 判斷系統檔案,警惕32位和64位的差異C#
- in、exists與索引索引
- Could not find or access '/etc/ansible/bin/cfssljson /etc/ansible/bin/cfsslJSON
- Oralce 使用SQL中的exists 和not exists 用法詳解SQL
- efcore This MySqlConnection is already in useMySql
- In和exists使用及效能分析(三):in和exists的效能分析
- swap 跟 fstab
- swap擴容
- elasticsearch之exists查詢Elasticsearch
- [精選] SQL中的IN與NOT IN、EXISTS與NOT EXISTS的區別及效能分析SQL
- warning: already initialized constant FileUtils::VERSIONZed
- IPP SWAP孵化器|IPP SWAP系統開發分析
- 024,Swap Nodes in PairsAI
- Linux Swap擴容Linux
- mac 修改 /etc/hosts 檔案Mac
- VirtIO drivers for Linux, Windows and etc.LinuxWindows