> For the complete documentation index, see [llms.txt](https://stb11816.gitbook.io/python_note/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stb11816.gitbook.io/python_note/ubuntu/debug.md).

# debug

## Failed to lock the file

當vm當機或被強迫關機，再度開啟時會出現的錯誤

```
解決方法1：
進到 VMware 的 Guest OS 資料夾，將所有的 *.lck 資料夾或檔案刪除
```

參考資料：\
<http://www.vixual.net/blog/archives/842>

## share folder

無法正常顯示資料夾時可重新安裝vmware tools

參考資料：\
<https://snippetinfo.net/mobile/media/2004>\
<http://jimmu-jimmu.blogspot.com/2012/12/vmwareguesthost.html>

## 執行程式被kill

<https://blog.csdn.net/ktigerhero3/article/details/80004315>

## 關閉ssh連線時，保留欲執行的程式

```
sudo nohup [command] & >/dev/null 2>&1
```

<https://blog.csdn.net/stonesharp/article/details/28904529>

## ctrl+c vs ctrl+z

c是kill，z是掛起

z掛起後可以先做其他事，可用bg查看被掛起來的程式，再用fg把掛起的程式叫回來

<https://blog.csdn.net/mylizh/article/details/38385739>
