![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
AntHub
闻道有先后,术业有专攻;
有道无术尚可求,有术无道止于术;
熵减、熵减、熵减,还是熵减。
展开
-
查看压缩及归档文件内容
查看压缩及归档文件内容原创 2024-01-02 19:50:21 · 453 阅读 · 0 评论 -
linux 环境变量
linux 环境变量原创 2023-06-30 20:57:27 · 386 阅读 · 0 评论 -
linux sys_select 系统调用
linux sys_select 系统调用原创 2023-04-16 20:35:44 · 125 阅读 · 0 评论 -
最多10次递归显示软链接指向
最多10次递归显示软链接指向原创 2022-12-18 19:36:34 · 62 阅读 · 0 评论 -
du命令_set命令选项
du命令_set命令选项原创 2022-07-31 20:08:33 · 143 阅读 · 0 评论 -
git 远程仓库
git 远程仓库原创 2022-07-16 11:07:33 · 416 阅读 · 0 评论 -
declare 命令
文章目录declare选项说明用法示例declare说明: Set variable values and attributes. Declare variables and give them attributes. If no NAMEs are given,display the attributes and values of all variables.Using +' instead of -’ turns off the given attribute.-Variables原创 2022-04-29 17:28:33 · 765 阅读 · 0 评论 -
nginx 下载文件配置调整
server { listen 80; server_name localhost; ... location /download/ { alias /dir/; add_header Content-Disposition attachment; add_header Content-Type application/octet-stream;}原创 2022-03-02 21:07:24 · 2265 阅读 · 0 评论 -
shell 判断操作系统类型
文章目录shell 判断操作系统类型shell 判断操作系统类型$OSTYPE, 旧版的shell 无法识别;uname + ${}uname + substr# 1# 2uname_s=$(uname -s)os_name=${uname_s: 0: 5}the_7z_cmd="/c/Program Files/7-Zip/7z"if [ "$os_name" == "Linux" ];then the_7z_cmd=7zafi# 3if ["$(ex原创 2022-03-02 20:59:11 · 2283 阅读 · 0 评论 -
centos-linux 查看网关
文章目录centos-linux 查看网关最小化安装后就有的命令net-utilscentos-linux 查看网关最小化安装后就有的命令ip route show: default via 后面的ip 即为网关ip;这个方法一般都会好使,如果不好使的话,那么主机的网络肯定由问题,一般会表现为无法访问其他网络。下面的是一些辅助方法;cat /etc/sysconfig/network : 这里边GATEWAY 参数的值即为网关地址;也可能没有GATEWAY, 只有一行 # Created原创 2022-02-01 16:46:03 · 2511 阅读 · 0 评论 -
vmware 磁盘扩容
文章目录参考:https://blog.csdn.net/zmzdmx/article/details/112299741fdisk /dev/sda[root@localhost ~]# fdisk /dev/sdaWelcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.Be careful before using the writ原创 2022-01-08 21:39:12 · 382 阅读 · 0 评论 -
ip(iproute2软件包) 命令
文章目录路由路由ip route show # 查看路由ip route add default via 192.168.249.2 dev ens33 # 添加默认路由; 部分情况可解决 (Name or service not known)/(connect: Network is unreachable) 问题# ip route add 10.0.0/24 via 193.233.7.65...原创 2022-01-08 18:33:42 · 831 阅读 · 0 评论 -
linux日期校正
同步阿里云:yum -y install ntpdatentpdate ntp1.aliyun.com原创 2021-11-06 18:28:25 · 213 阅读 · 0 评论 -
git 常用命令和存储组织结构
git config --global https.proxy “http://127.0.0.1:8888” ;git config --global --unset http.proxy原创 2020-05-18 14:30:11 · 381 阅读 · 1 评论 -
shell 设置代理
文章目录关于代理的环境变量:示例关于代理的环境变量:http_proxy:为http网站设置代理, 示例:192.168.1.1:8080; user:pass@192.168.1.1:8080; socks4://192.168.1.1:1080; socks5://192.168.1.1:1080https_proxy: 为https网站设置代理,同httpftp_proxy: 为ftp协议设置代理; socks5://192.168.1.1:1080no_proxy: 无需代理的主机或域原创 2020-12-17 11:02:00 · 3800 阅读 · 0 评论 -
openssl
openssl 能从密文中解析 key 、iv、salt?原创 2020-07-20 09:48:12 · 397 阅读 · 0 评论 -
git 上传 github报错 (Permission denied)
~/.ssh/config 中的 host 值,要与 .git/config[remote "origin"] url = git@XXX:test/demo.git中的 XXX 对应原创 2020-06-27 17:19:11 · 601 阅读 · 0 评论 -
linux 固定 ip 地址
vim /etc/sysconfig/network-scripts/ifcfg-ens33原创 2020-06-25 18:48:03 · 165 阅读 · 0 评论 -
vim 常用命令
:%s/XXXX//gn ;: e ++enc=utf-8原创 2020-05-19 17:30:37 · 230 阅读 · 0 评论 -
linux 命令合集
文章目录逻辑CPU个数: cat /proc/cpuinfo | grep 'processor' | wc -l-物理CPU个数: cat /proc/cpuinfo | grep 'physical id' | sort | uniq | wc -l每个物理CPU中Core的个数: cat /proc/cpuinfo | grep 'cpu cores' | wc -l原创 2020-06-02 14:19:22 · 275 阅读 · 0 评论 -
文件句柄_文件描述符
文件句柄 : FILE * ,是个指针;文件描述符: _IO_FILE结构体中的 “int _fileno” 是个 int 值原创 2020-05-06 21:14:25 · 1260 阅读 · 0 评论 -
/bin/sh -e
-e含义每条指令之后,都可以用$?去判断它的返回值,零就是正确执行,非零就是执行有误,加了-e之后,就不用自己写代码去判断返回值,返回非零,脚本就会自动退出。...原创 2019-12-06 10:20:46 · 777 阅读 · 0 评论 -
strace ltrace记录
-f : follow forks (除了跟踪当前进程外,还跟踪其子进程)-o file :send trace output to FILE instead of stderr(将输出信息写到制定的文件file中,而不是显示到标准错误输出[stderr]中)-p pid :trace process with process id PID, may be repeated(绑定到一个由pid制定的正在运行的进程)-T : print time spent in each syscall(打印每个原创 2019-11-03 17:16:32 · 429 阅读 · 0 评论 -
trap 信号捕获
trap 信号捕获命令说明示例产生信号命令说明Trap signals and other events.Defines and activates handlers to be run when the shell receives signalsor other conditions.示例# 捕获 EXITtrap "echo exit_ok" EXIT# 捕获 SIGIN...原创 2019-10-27 18:37:34 · 570 阅读 · 0 评论