「*nix操作」修訂間的差異
跳至導覽
跳至搜尋
Tankianting(討論 | 貢獻) |
Tankianting(討論 | 貢獻) |
||
行 13: | 行 13: | ||
(hdx,y) => x,y 從0起算,指第x顆硬碟的第y分割區 | (hdx,y) => x,y 從0起算,指第x顆硬碟的第y分割區 | ||
<ref>[https://forums.freebsd.org/threads/booting-freebsd-via-grub.60422/ FreeBSD論壇]</ref> | |||
行 24: | 行 24: | ||
} | } | ||
</pre> | </pre> | ||
<ref>https://serverfault.com/a/424016 by 030 under CC BY-SA 3.0</ref> | |||
===使用 certbot 含自動設定 nginx === | ===使用 certbot 含自動設定 nginx === | ||
行 33: | 行 33: | ||
</pre> | </pre> | ||
https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal | <ref>https://certbot.eff.org/instructions?ws=nginx&os=ubuntufocal</ref> | ||
==rsync 用ssh同步到遠端,排除目錄== | ==rsync 用ssh同步到遠端,排除目錄== | ||
行 40: | 行 40: | ||
==在 HP Laptop 15 fd0072 安裝 Linux Mint == | ==在 HP Laptop 15 fd0072 安裝 Linux Mint == | ||
* [[在 HP Laptop 15 fd0072TU 安裝 Linux Mint]] | * [[在 HP Laptop 15 fd0072TU 安裝 Linux Mint]] | ||
== 於某目錄內找重複檔案 == | |||
用遞迴方式於某目錄找重複檔案,匯出到 foo.txt: | |||
<pre>fdupes -r [/path/to/dir] > foo.txt</pre> | |||
<ref>[https://askubuntu.com/questions/177346/how-to-delete-duplicate-files-with-fdupes How to find (and delete) duplicate files]</ref> | |||
==參考== | |||
<references/> | |||
[[category:資訊]] | [[category:資訊]] |
於 2023年6月16日 (五) 00:59 的修訂
BSD 加入到 Grub2
以系統管理員身份編輯
/etc/grub.d/40_custom
,加入:
menuentry "BSD" { set root='(hd1,2)' kfreebsd /boot/loader }
(hdx,y) => x,y 從0起算,指第x顆硬碟的第y分割區
Nginx 強制 SSL
server { listen 80; server_name signup.mysite.com; return 301 https://$server_name$request_uri; }
使用 certbot 含自動設定 nginx
apt-get install python3-certbot-nginx certbot --nginx
rsync 用ssh同步到遠端,排除目錄
rsync [ORIG_FOLDER] user@[HOST.ADDRESS]::/mnt/destination --exclude=~/.UnsyncFolder
在 HP Laptop 15 fd0072 安裝 Linux Mint
於某目錄內找重複檔案
用遞迴方式於某目錄找重複檔案,匯出到 foo.txt:
fdupes -r [/path/to/dir] > foo.txt