系統時間呈現秒數
設定-->系統-->日期與時間-->秒數
安裝chrome
下載/google-chrome-stable_current_amd64.deb
~$ ls 下載/google-chrome-stable_current_amd64.deb
~$ ls ./下載/google-chrome-stable_current_amd64.deb
~$ sudo apt install ./下載/google-chrome-stable_current_amd64.deb
下載/google-chrome-stable_current_amd64.deb
-->右鍵-->使用AppCenter開啟-->安裝
更新
顯示程式-->軟體更新
$ sudo apt update
$ sudo apt upgrade
APT、 dpkg、snap
apt 是 Ubuntu 中常用的套件管理指令 //Advanced Package Tool
dpkg 是直接管理 Debian 套件的低階指令
snap 是 Ubuntu 引入的新一代套件管理系統
-----------------------------------------------------------------------
# sudo apt update //更新軟體庫清單
$ apt list --upgradable
# sudo apt upgrade //升級系統或軟體
# sudo apt search vlc //搜尋特定應用程式
$ sudo apt install vlc //安裝應用程式
$ apt list //列出系統中的套件資訊
$ apt list --installed //只顯示已安裝的套件
$ sudo apt show vlc //列出應用程式的詳細資訊
[sudo] kk 的密碼:
Package: vlc
Version: 3.0.20-3build6
Priority: optional
...
$ sudo apt remove vlc //移除應用程式
$ sudo apt purge vlc //移除應用程式及所有設定檔
For Python IDLE
Python 3.12.3
Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(3+6)
9
正在列出... 完成
idle/noble-updates,now 3.12.3-0ubuntu2 all [已安裝,自動]
idle/noble 3.12.3-0ubuntu1 all
Package: idle
Version: 3.12.3-0ubuntu2
Priority: optional
Section: universe/python
Source: python3-defaults
...
切換admin
$ sudo su
[sudo] kk 的密碼:
root@kk-VMware-Virtual-Platform:/home/kk# exit 或 CTRL+D
exit
查看cpu、ram、process
$ top
CTRL+Z //離開
查看記憶體
~$ free -h
total used free shared buff/cache available
Mem: 7.7Gi 3.4Gi 1.8Gi 176Mi 2.9Gi 4.3Gi
置換: 0B 0B 0B
查看硬碟
~$ df -h
檔案系統 容量 已用 可用 已用% 掛載點
tmpfs 790M 2.1M 788M 1% /run
/dev/sda2 20G 8.9G 9.7G 48% /
tmpfs 3.9G 92M 3.8G 3% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 790M 148K 790M 1% /run/user/1000
/dev/sr0 5.8G 5.8G 0 100% /media/kk/Ubuntu 24.04.1 LTS amd64
打包 tar
//c:create建立壓縮檔案 v:verbose輸出處理的檔案列表 f:archive file指定壓縮檔案
$ tar -cvf aa.tar a1.txt a2.txt
a1.txt
a2.txt
//列出 .tar 壓縮檔案的內容
$ tar -tf aa.tar
a1.txt
a2.txt
//解壓縮 .tar 壓縮檔案
$ cp aa.tar 文件
$ cd 文件
$ ls
aa.tar
//x:extract
$ tar -xvf aa.tar
a1.txt
a2.txt
$ ls
a1.txt a2.txt aa.tar