Linux swp ファイルは、拡張子「.swp」を持つファイルです。このファイルは、vi または vim を使用してファイルを編集するときに生成されます。編集が完了して正常に終了すると、ファイルは自動的に削除されます. ; swp ファイルは隠しファイルであり、ディレクトリ内で「ls -al」を使用することによってのみ表示できます。
Linux swp ファイルとは何ですか?
Linux での .swp ファイルの生成と解決策:
私たちは以下を使用しますviコマンドでnginx.conf設定ファイルを編集すると、図のようなプロンプトが表示されますので、このとき直接Eキーを押して通常通り編集することもできますが、次回も発生する可能性があります。では、この問題の原因は何でしょうか。 次の 2 つの状況が発生します(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 nginx.conf" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".nginx.conf.swp" to avoid this message
Linux ビデオ チュートリアル 」
以上がLinuxのswpファイルとは何ですかの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。