My configuration files or resource files to use for work in Linux-based environments.
Minimumm install for development
sudo apt install net-tools
sudo apt install openssh-server
- sudo systemctl status ssh (檢查ssh server 是否運行)
sudo apt install tmux
sudo apt install git gitconfig
sudo apt install i2c-tools
This will download the data from this repo. and store the data in the file name .tmux.conf
which located in your home directory.
wget -O- https://raw.githubusercontent.com/yhkuan/configs/main/tmux.conf | cat > ~/.tmux.conf
- Increase the history to 32768
Line 2 in 8890006
- Using
Ctrl-b
thenP
to store the history file from current window.Line 5 in 8890006
Ctrl-b, d
-> detach session 本來執行的活動還是會繼續進行,想要再次進入可以透過tmux attach -t 0
其中 0 為 session ID 可以透過tmux ls
來找出 session ID為何Ctrl-b, c
-> New window 在同一個session中Ctrl-b, &
-> kill current windowCtrl-b, [
-> into copy mode 在這模式中讓你可以往前瀏覽之前的content- In Copy mode,
Ctrl-r
-> 進入向上search模式,會把一樣的字串標記成黃色,按下Enter後離開search 模式,這時候透過鍵盤的n 來持續search 不同位置的結果。 - 在tmux 下如何清除 the content of a pane?
Ctrl-b :clear-history
- TBD
This will download the data from this repo. and store the data in the file name .gitconfig
which located in your home directory.
wget -O- https://raw.githubusercontent.com/yhkuan/configs/main/gitconfig | cat > ~/.gitconfig
This will download the data from this repo. and store the data in the file name .gitignore
which located in your git project directory.
wget -O- https://raw.githubusercontent.com/yhkuan/configs/main/VisualStudio.gitignore | cat > .gitconfig