ubuntu常用技巧

2021-10-04 01:50:24 字數 906 閱讀 7334

方式1

vim etc/profile #buhao

vi etc/profile

方式2sudo gedit /etc/profile

應用source /etc/profile

只修改當前使用者的環境變數:

gedit ~/

.bashrc

source ~/

.bashrc

sudo tar -zxvf jdk-

13.0

.2_linux-x64_bin.tar.gz

unzip -d /usr/local apache-jmeter-

5.2.1

.zip

解壓後移動到 usr/local等目錄,後序可以在該目錄下啟動終端,通過命令列來啟動軟體。

也可以新增環境變數,免去進入該目錄,直接通過命令列啟動軟體

apt

sudo apt install vim 

sudo apt install mosquitto-clients

sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa

sudo apt-get update

sudo apt-get install mosquitto

sudo mv a.txt b.txt
top 檢視所有程序,類似任務管理器

ps -aux | grep jdk 用於查詢含有「jdk」的所有的程式

ps -a | grep system 查詢所有帶system的程序

pstree

殺死程序

kill -9 pid

Ubuntu常用命令與技巧

以root使用者使用終端 sudo i 修改root使用者密碼 sudo passwd root 在右鍵選單中加入開啟終端 sudo apt get install nautilus open terminal 系統服務管理軟體 sudo apt get install bum 安裝rar支援 su...

Ubuntu使用技巧

ctrl c pwd 開啟終端後使用 ctrl shift t 關閉終端用ctrl shift w 1 reboot 2 shutdown r now 立刻重啟 root使用者使用 3 shutdown r 10 過10分鐘自動重啟 root使用者使用 4 shutdown r 20 35 在時間為...

Ubuntu 使用技巧

1.修改ubuntu 的螢幕亮度 在fn無法調節的情況下 root許可權修改 etc rc.local檔案,在exit 0 之前新增如下 echo 1500000 sys class backlight intel backlight brightness echo 1500000 sys clas...