**基本語法:**
```bash
cd #進入資料夾
cd ../ #上一層資料夾
ls -a #顯示全部檔案
rm -r #刪除文件
du -sh ./* #看檔案大小
```
//要在cmd執行
**如果你下載了太大的模型想要刪除**
可以選擇直接重灌Ubuntu
**Reinstall Ubuntu**:
- Reinstall Ubuntu by running:
```bash
wsl --unregister Ubuntu
wsl --install -d Ubuntu
```
```bash
wsl --install -d Ubuntu-22.04
wsl -d Ubuntu-22.04 cat /etc/os-release
```
**WSL Update**: Make sure that your WSL version is up to date. You can update it by running:
```bash
wsl --update
```
**建立Python環境(LLaMa需要在這個環境下執行)**
### 1. **Update Package Lists**
First, make sure your package lists are up to date. Run the following commands:
```bash
sudo apt update
sudo apt upgrade
```
### 2. **Check Your Ubuntu Version**
Ensure that you're using a supported version of Ubuntu. You can check your Ubuntu version with:
```bash
lsb_release -a
```
If your Ubuntu version is very old, consider upgrading to a more recent version.
### 3. **Add Universe Repository**
Sometimes, the `python3-pip` package is available in the "universe" repository, which may not be enabled by default. Enable it with the following command:
```bash
sudo add-apt-repository universe
sudo apt update
```
Then try installing `python3-pip` again:
```bash
sudo apt install python3-pip
```
### 4. **Install PIP Using `get-pip.py` Script**
If the above steps don't work, you can manually install PIP using the `get-pip.py` script:
```bash
sudo apt install curl
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
```
This script should install PIP for you, and then you can use `pip` to install other Python packages.