flutter 指定 android sdk 路徑

指令:

flutter --android-sdk "[路徑]

範例:

C:\Users\danny>flutter config --android-sdk "D:\3106_AndroidSDK"
Setting "android-sdk" value to "D:\3106_AndroidSDK".
You may need to restart any open editors for them to read new settings.

記得指定完成後執行flutter doctor --android-licenses 去同意整個授權才能使用!

 2022-12-22 man 指定語言 語系

man 透過 --locale=語系 指定要看的語系說明,但不清楚語系名稱時進入usr/share/man查詢:

ls -la /usr/share/man

danny@EDY-G41MT-D3:/usr/share/man$ ls -la
total 484
drwxr-xr-x  36 root root   4096 Sep 23 08:53 .
drwxr-xr-x 347 root root  12288 Dec  3 17:01 ..
drwxr-xr-x   5 root root   4096 Feb  7  2020 cs
drwxr-xr-x   5 root root   4096 Feb  7  2020 da
drwxr-xr-x   6 root root   4096 Feb  7  2020 de
drwxr-xr-x   6 root root   4096 Sep 23 08:53 es
drwxr-xr-x   3 root root   4096 May 11  2022 fi
drwxr-xr-x   6 root root   4096 May 11  2022 fr
drwxr-xr-x   3 root root   4096 May 11  2022 hr
drwxr-xr-x   5 root root   4096 May 11  2022 hu
drwxr-xr-x   5 root root   4096 May 11  2022 id
drwxr-xr-x   5 root root   4096 Feb  7  2020 it
drwxr-xr-x   6 root root   4096 Sep 23 08:53 ja
drwxr-xr-x   5 root root   4096 Feb  7  2020 ko
drwxr-xr-x   2 root root 102400 Dec  3 17:01 man1
drwxr-xr-x   2 root root  24576 May 17  2022 man2
drwxr-xr-x   2 root root 122880 Nov  4 09:37 man3
drwxr-xr-x   2 root root   4096 Dec  3 17:01 man4
drwxr-xr-x   2 root root  28672 Dec  3 17:01 man5
drwxr-xr-x   2 root root   4096 Nov  2 11:30 man6
drwxr-xr-x   2 root root  16384 Nov  2 11:30 man7
drwxr-xr-x   2 root root  53248 Dec  3 17:01 man8
drwxr-xr-x   6 root root   4096 May 11  2022 nl
drwxr-xr-x   5 root root   4096 Feb  7  2020 pl
drwxr-xr-x   6 root root   4096 May 11  2022 pt
drwxr-xr-x   5 root root   4096 May 11  2022 pt_BR
drwxr-xr-x   5 root root   4096 May 11  2022 ro
drwxr-xr-x   6 root root   4096 Sep 23 08:53 ru
drwxr-xr-x   4 root root   4096 May 11  2022 sl
drwxr-xr-x   5 root root   4096 May 11  2022 sr
drwxr-xr-x   6 root root   4096 Jun 28 10:52 sv
drwxr-xr-x   5 root root   4096 Feb  7  2020 tr
drwxr-xr-x   5 root root   4096 May 11  2022 uk
drwxr-xr-x   4 root root   4096 Sep 23 08:53 vi
drwxr-xr-x  10 root root   4096 Dec 22 11:29 zh_CN
drwxr-xr-x  10 root root   4096 Dec 22 11:29 zh_TW
danny@EDY-G41MT-D3:/usr/share/man$

看到語系名稱後指定語系就完成,這裡指定zh_TW查詢指令pwd

man --locale=zh_TW pwd

7a585423349979df8dfacbc7ef1bea63.png

 調整 pve root Resize pve root

調整 pve root Resize pve root

安裝pve如果您的系統碟容量比較小,按照比例會取得較小的pve-root空間,像下面:

root@pve:~# lsblk
NAME               MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                  8:0    0   113G  0 disk
├─sda1               8:1    0  1007K  0 part
├─sda2               8:2    0   512M  0 part
└─sda3               8:3    0 112.5G  0 part
├─pve-swap       253:0    0     8G  0 lvm  [SWAP]
├─pve-root       253:1    0    28G  0 lvm  /
├─pve-data_tmeta 253:2    0     1G  0 lvm
│ └─pve-data     253:4    0  60.5G  0 lvm
└─pve-data_tdata 253:3    0  60.5G  0 lvm
└─pve-data     253:4    0  60.5G  0 lvm
sdb                  8:16   0   2.7T  0 disk
├─sdb1               8:17   0   2.7T  0 part
└─sdb9               8:25   0     8M  0 part
sdc                  8:32   0   2.7T  0 disk
├─sdc1               8:33   0   2.7T  0 part
└─sdc9               8:41   0     8M  0 part

pve-root 被分配到28G,很快的它就會滿了,接下來就需要調整空間,下面會將pve-data 刪除以取得最大的空間。 (閱讀全文…)

 移除檔案的副檔名

using System;
using System.IO;
public class Example
{
public static void Main()
{
string filepath= @"C:\1234\5678\abc.csv";
// 直接將副檔名給null就會清空
string onlyFileNamePath = Path.ChangeExtension(filepath, null);
Console.WriteLine(filePathWithoutExt);
}
}