# doc2unix <file>
[排错] Linux 解决使用 wget 命令时报错 “Unable to establish SSL connection.”
报错代码:
GnuTLS: No or insufficient priorities were set.
Unable to establish SSL connection.
分析:
如果客户端和服务端的 TLS 版本不匹配,就会出现此类报错
解决方法:
# wget --secure-protocol=TLSv1 <URL>
[内容] Linux 当前网络流量的查看
内容一:查看此时的瞬间网络流量
# ip -s -h link
内容二:持续查看某张网卡的网络流量
# iftop -nN -i eth0
(补充:这里以持续查看名为 eth0 网卡的流量为例)
[命令] Linux 命令 gzip (打包、解包、压缩和解压文件或目录,压缩包以 xz 作为后缀)
内容一:gzip 命令简介
1.1 gzip 命令的格式
# gzip <option> <file>
1.2 gunzip 命令的常用选项
1) -c or –stdout, write on standard output, keep original files unchanged
2) -d or –decompress, decompress
3) -f or –force, force overwrite of output file and compress links
4) -h or –help, give this help
5) -k or –keep, keep (don’t delete) input files
6) -l or –list, list compressed file contents
7) -n or –no-name, do not save or restore the original name and timestamp
8) -N or –name, save or restore the original name and timestamp
9) -q or –quiet, suppress all warnings
10) -r or –recursive or –rsyncable, operate recursively on directories
11) -t or –test, test compressed file integrity
12) -1 or –fast, compress faster
13) -9 or –best, compress better
内容二:gzip 命令的使用案例
2.1 案例一:压缩文件
# gzip test.txt
(补充:这里以压缩文件 test.txt 为例)
2.2 案例二:解压文件
# gzip -d test.txt.xz
(补充:这里以解压文件 test.txt.zx 为例)
[命令] Linux 命令 gunzip (打包、解包、压缩和解压文件或目录,压缩包以 xz 作为后缀)
内容一:gunzip 命令简介
1.1 gunzip 命令的格式
# gunzip <option> <file>
1.2 gunzip 命令的常用选项
1) -c or –stdout, write on standard output, keep original files unchanged
2) -d or –decompress, decompress
3) -f or –force, force overwrite of output file and compress links
4) -h or –help, give this help
5) -k or –keep, keep (don’t delete) input files
6) -l or –list, list compressed file contents
7) -n or –no-name, do not save or restore the original name and timestamp
8) -N or –name, save or restore the original name and timestamp
9) -q or –quiet, suppress all warnings
10) -r or –recursive or –rsyncable, operate recursively on directories
11) -t or –test, test compressed file integrity
12) -1 or –fast, compress faster
13) -9 or –best, compress better
内容二:gunzip 命令的使用案例
2.1 案例一:压缩文件
# gunzip test.txt
(补充:这里以压缩文件 test.txt 为例)
2.2 案例二:解压文件
# gunzip -d test.txt.xz
(补充:这里以解压文件 test.txt.zx 为例)