1.2014之後的版本
2.是用systemd開機
user id=1000 (稱為login帳號)
0 (稱為管理員帳號)
1~999 (系統帳號)
sudo -i (切換root權限)
apt update (更新倉庫清單)
apt list --upgrade (查看更新清單)
apt upgrade (更新軟體)
reboot (重開機)
sudo -i (切換root權限)
uname -r (確認版本資訊)
apt autoremove (自動清除無用元件)
reboot (重開機)
確認版本套件數量
dpkg -l | wc -l
版本套件資訊存出
dpkg -l > bdse138.txt
確認保留的核心套件(正常要有3套,最新+2套近期的)
less -N boot/grub/grub.cfg
1.更新時出現覆蓋提示
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
2.確認兩個檔案的不同
---我的
+++新的
-刪除
+新增
3.若只有部分設定被重置,且有新增其他設定,建議選(Y)讓新的覆蓋,再去把被還原的設定改回來。
shutdown -h (預設60秒後關機)
shutdown -h+2 (預設2分鐘後關機)
shutdown -h 14:00 (下午2點關機)
poweroff = shutdown -h now
中斷shutdown(對會馬上關機的指令無效)
-c
nmtui 選第三項(Set system hostname)改名
nano /etc/hosts 改目錄名稱
/bin (一般指令,相當於man(1))
/sbin (系統指令S:system相當於man(8))
*為系統套件,是用apt install安裝,屬於系統套件
綠色=捷徑,水藍=指令
/usr/bin
/usr/sbin
*為系統套件,是用apt install安裝,屬於系統套件
/usr/local/bin
/usr/local/sbin
*透過compile產生,例如:make,cmake,pip3
/usr/local/軟體名稱/bin
/usr/local/軟體名稱/sbin
*例如:hadoop,spark。
/opt/Vender名稱/軟體名稱
*使用vendor安裝方式,例如:/opt/hpsw/nnmi
ls (列出目錄名稱)
ls -l (列出目錄名稱與詳細資訊)
ls (列出目錄名稱)
ls /usr (列出usr目錄的內容)
可用;來連接2個指令在一個ent執行
1. gzip 相容性最好,但壓縮比不高
2. bzip2 壓縮比有好一點
3. xz 壓縮比最好,但相容性不一定好
-t list
-v 顯示詳細操作過程(Verbose mode)
-f 檔名
-x extract解開
1.要確認不對的版本套件(jupyter為例)
2.確認套件需求
less -N /usr/lib/python3/dist-packages/requests/__init__.py
3.若套件比套件需求新,就更新套件需求檔。
若筆記內有發現錯誤隨時可以登入後在這邊留言~
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing