Linuxエラー
エラー解決
mv: cannot move '/src/item-243' to '/dest/': Directory not empty の原因と解決法
mv: cannot move '/src/item-243' to '/dest/': Directory not empty の原因と具体的な解決手順をまとめました。
エラーメッセージ(全文)
mv: cannot move '/src/item-243' to '/dest/': Directory not empty
このエラーとは
mv: cannot move '/src/item-243' to '/dest/': Directory not empty は Linux 開発でよく遭遇するエラーです。
想定環境: Windows / macOS / Linux
よく出る状況: サーバー運用
よくある原因
- 権限
- ディスク
- プロセス
解決方法
方法1: sudo / 所有者確認
ls -la と df -h.
それでも直らないとき
バージョン情報(Linux のバージョン、OS、実行コマンド)を添えて、エラーメッセージ全文と直前に変更した点を確認してください。ログの数行上にも原因の手がかりが残っていることが多いです。
まとめ
「mv: cannot move '/src/item-243' to '/dest/': Directory not empty」は 権限 が原因のことが多いです。上記の手順で切り分けてください。
次にやること
同じ Linux カテゴリの関連エラーもあわせて確認してください。
よくある質問
mv: cannot move '/src/item-243' to '/dest/': Directory not empty とは何ですか?
mv: cannot move '/src/item-243' to '/dest/': Directory not empty は Linux 実行時に表示されるエラーです。権限
mv: cannot move '/src/item-243' to '/dest/': Directory not empty の原因は?
権限。ディスク。プロセス。
mv: cannot move '/src/item-243' to '/dest/': Directory not empty の直し方は?
sudo / 所有者確認:ls -la と df -h.
Linux で mv が出るのはなぜ?
サーバー運用
mv: cannot move '/src/item-243' to '/dest/': Directory not empty を防ぐには?
。
次に読むべき記事
- rm: cannot remove '/var/cache/pkg-244': Device or resource busy の原因と解決法
- useradd: user 'appuser246' already exists の原因と解決法
- groupadd: group 'team247' already exists の原因と解決法
- mv: cannot move '/src/item-663' to '/dest/': Directory not empty の原因と解決法
- mv: cannot move '/src/item-648' to '/dest/': Directory not empty の原因と解決法
同カテゴリ「Linuxエラー」の記事
- cat: cannot access '/var/log/syslog': Permission denied の原因と解決法
- chmod: cannot access '/var/log/syslog': Permission denied の原因と解決法
- sudo: /etc/nginx/nginx.conf: command not found の原因と解決法
- grep: /var/log/app.log: Permission denied の原因と解決法
- ssh: Permission denied (publickey) の原因と解決法
- cp: cannot create regular file '/dest/file-662.txt': No space left on device の原因と解決法
人気記事
- TS2307: Cannot find module '@components/Widget601' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget591' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget581' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget571' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget561' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget551' or its corresponding type declarations の原因と解決法
学習ルート
体系的に学びたい方はこちらから。
エラー・トラブル集で続きを探す →あわせて読みたい
- mv: cannot move '/src/item-663' to '/dest/': Directory not empty の原因と解決法同カテゴリの関連エラー
- mv: cannot move '/src/item-648' to '/dest/': Directory not empty の原因と解決法同カテゴリの関連エラー
- mv: cannot move '/src/item-633' to '/dest/': Directory not empty の原因と解決法同カテゴリの関連エラー
- mv: cannot move '/src/item-618' to '/dest/': Directory not empty の原因と解決法同カテゴリの関連エラー
- mv: cannot move '/src/item-603' to '/dest/': Directory not empty の原因と解決法同カテゴリの関連エラー