注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| local threads = {} | |
| wrk.headers['nonce'] = '1' | |
| wrk.headers['sign'] = '1' | |
| wrk.headers['token'] = '1' | |
| wrk.headers['timestamp'] = '1' | |
| setup = function (thread) | |
| table.insert(threads, thread) | |
| end |
| #!/bin/bash | |
| ############################################ | |
| # 云服务器带宽检查脚本 | |
| # | |
| #version:1.2 | |
| #使用方法: | |
| #例:./vmnetcheck.sh [em2|em1] | |
| # | |
| #参数说明: | |
| #不写参数时,默认检查外网网卡em1 |
| #!/bin/bash | |
| # https://www.linuxidc.com/Linux/2017-12/149752.htm | |
| TRASH_DIR="/root/.trash" | |
| basepath_array=( | |
| / | |
| ) |
| // https://juejin.im/post/5b3629cbf265da59645b1ac5 | |
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "net" |
| # network.yaml | |
| network: | |
| version: 2 | |
| renderer: networkd | |
| ethernets: | |
| enp9s0: | |
| addresses: | |
| - 192.168.1.13/24 | |
| gateway4: 192.168.1.1 |
| # .bashrc | |
| # User specific aliases and functions | |
| alias rm='rm -i' | |
| alias cp='cp -i' | |
| alias mv='mv -i' | |
| alias ll='ls -al' | |
| # Source global definitions |
| glide mirror set https://golang.org/x/text https://github.com/golang/text |
| # bash | |
| https://stackoverflow.com/questions/33632668/bash-tab-completion-of-filenames-after-arguments | |
| complete -D -o default | |
| # zsh | |
| https://unix.stackexchange.com/questions/333530/zsh-path-file-name-completion-on-file-arguments/333543#333543?newreg=65c5031ab2d6429984db9f2c4a26ac3c |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Mobile HLS video</title> | |
| </head> | |
| <body> | |
| <h1>Mobile HLS video</h1> |