linux tools

linux tools Linux Performance Observability Tools https://hub.docker.com/r/nicolaka/netshoot https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/ldd.html ldd 作用: 用来查看程式运行所需的共享库,常用来解决程式因缺少某个库文件而不能运行的一些问题。 示例: 查看test程序运行所依赖的

pam config

pam config pam模块文件内容看,可以将pam配置文件分为四列, 第一列代表模块类型 第二列代表控制标记 第三列代表模块路径 第四列代表模块参数 Module_type 将为 Service_name 字段

创建/删除tun/tap设备

创建/删除tun/tap设备 ip tuntap add dev tun0 mode tun ip tuntap add dev tap0 mode tap ip tuntap del dev tun0 mode tun #for detail ip tuntap help https://my.oschina.net/dangzy/blog/221893

nftable, nft basic, nft commands

nftable, nft basic, nft commands 安装 nftables archlinux 1 2 3 4 sudo pacman -S nftables sudo systemctl start nftables sudo systemctl enable nftables sudo systemctl status nftables centos 8 1 2 systemctl disable --now firewalld 表, table 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

aliyun docker

aliyun docker https://cr.console.aliyun.com/cn-qingdao/mirrors 安装/升级Docker客户端 推荐安装1.10.0以上版本的Docker客户端,参考文档 docker-ce 配置镜像加速器 针对Docker客户端版本大于 1.10.0

golang程序在windows上,注册为服务

golang 程序在windows上,注册为服务 https://blog.csdn.net/yang8023tao/article/details/53332984 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

visualbox share folder

visualbox share folder https://www.jianshu.com/p/21df1811133f 1.Windows创建一个共享文件 保存好目录,我的是D:\ virtualbox_share 2.打开共享文件夹选项 3.配置共享文件夹 选择固定分配,共享文件夹选择Wi

5W1H

5W1H 5W1H 分析法是我们工作中经常被使用到的方法, 但是, 你知道 5W1H 法是怎样产生的吗? 5W 5W1H 的前身是 5W 模式, 这个模式是 1948 年美国著名政治学家、传播学奠基者哈

resolv.conf, search, domain, nameserver, DNS

‘resolv.conf, search, domain, nameserver, DNS’ http://www.ttlsa.com/linux/resolv-conf-desc/ resolv.conf 是 resolver 类库使用的配置文件, 每当一个程序需要通过域名来访问 internet 上面的其它主机时, 需要利用该类库将域名转换成对应的IP, 然后才可进行访

裴讯N1

裴讯N1 斐讯N1折腾记: 降级及刷入官改 https://forum.khadas.com/t/burning-tools-for-linux-pc/1832 https://github.com/khadas/utils

centos audit.log

centos audit.log 1 2 3 4 5 6 7 ansible all -m yum -a 'name=audit state=present' ansible all -m yum -a 'name=audit-libs state=present' ansible all -m service -a 'name=auditd state=restarted'

Execute bash script from URL

Execute bash script from URL 1 2 3 4 5 bash <(curl -s http://mywebsite.com/myscript.txt) curl -s https://myurl.com/script.sh | bash /dev/stdin param1 param2 Directly run bash scripts in Github Gists locally in Terminal. Get the raw version of it and copy the link. Now we are going to curl that link to get the content in the file and then pass that content to bash. https://stackoverflow.com/questions/5735666/execute-bash-script-from-url

redis docker

redis docker 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 podman run \ -d \ --name redis \ -p 6379:6379 \ -v /etc/localtime:/etc/localtime:ro \ redis docker run -it --rm redis redis-cli -c -h 192.168.1.xxx #创建并启动容器 sudo docker run --name redis-x -p 6379:6379 -d redis #启动 sudo docker start redis-x sudo docker exec -it

tomcat autoDeploy="false" deployOnStartup="false"

‘tomcat autoDeploy="false” deployOnStartup="false”’ https://stackoverflow.com/questions/26884335/tomcat-deploy-only-manager-on-startup From the Apache 6 documentation: https://tomcat.apache.org/tomcat-6.0-doc/config/context.html in the Attributes section of Context, the documentation for the path attribute specifies: This attribute must only be used when statically defining a Context in server.xml. In all other circumstances, the path will be inferred from the filenames used for either the .xml context file or the docBase. Even when statically defining a Context in server.xml, this attribute must not be set unless either the docBase is not located under the Host’s appBase or both deployOnStartup and autoDeploy are false.

Archlinux, Pixelbook, chromeos, Crostini

Archlinux, Pixelbook, chromeos, Crostini https://wiki.archlinux.org/title/Chromebook_Pixel_2 https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini Enabling Linux support Settings > Linux > Enable Delete the Debian container (optional) 1 2 vmc destroy termina vmc start termina Install an Arch linux container Open a new terminal in Chrome (Ctrl + Alt + T) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

dnsmasq config 配置

‘dnsmasq config 配置’ DNSmasq是一个小巧且方便地用于配置DNS和DHCP的工具,适用于小型网络。它提供了DNS功能和可选择的DHCP功

archlinux clean

archlinux clean 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 # pacman 缓存 目录 /var/cache/pacman/pkg # 查看缓存目录大小 du -sh /var/cache/pacman/pkg # remove cached packages that are not

vscode basic,vscode, visual studio code

vscode basic,vscode, visual studio code linux vscode 配置 1 echo "--enable-features=UseOzonePlatform --ozone-platform=wayland" >> ~/.config/code-flags.conf debian install visual studio code install from repo https://linuxize.com/post/how-to-install-visual-studio-code-on-debian-9/ download deb https://code.visualstudio.com/# vscode 列编辑 Alt+Shift+鼠标左键拖动, 选中拖动的区域内容 https://blog.csdn.net/u011127019/article/details/74039598

输出重定向 Linux Shell 1>/dev/null 2>&1

输出重定向 Linux Shell 1>/dev/null 2>&1 https://blog.csdn.net/sunboy_2050/article/details/9288353 shell中可能经常能看到: 1 echo log > /dev/null 2>&1 命令的结果可以通过 “>” 的形式来定义输出 /dev/null 代表空设备文件 > > : 代表重定向到哪里,例如