Anonymous技术小站 自由 共享 互助

shell脚本小记-记录IP变化

记录IP变化的脚本 脚本文件: monitorIP.sh 用法: ./monitorIP.sh <网卡名> <分钟数> 后台监测用法: nohup ./monitorIP.sh <网卡名> <分钟数> & 关闭后台监测方法: 用ps -ef | grep monitorIP.sh 找到pid 用su

anonymous_vhacker 发布于 2023-01-13

crontab定时任务

安装 sudo apt install cron 格式 # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day

anonymous_vhacker 发布于 2023-01-10

Linux实时网速显示脚本

脚本 #!/bin/bash display_usage() { echo -e "\t\tUsage:\n\t\t$0 eth \n\t\teg: $0 eth0 \n" } # check whether user had supplied -h or --help . If y

anonymous_vhacker 发布于 2023-01-05

Linux查看系统及内核信息

系统信息 cat /etc/os-release cat /etc/redhat-release (上面这条只适用于redhat) cat /etc/issue lsb_release -a 内核信息 cat /proc/version uname -a CPU信息 cat /proc/cpuin

anonymous_vhacker 发布于 2023-01-04

vim常用命令

环境变更 命令 功能 :set nu <

anonymous_vhacker 发布于 2022-12-02

top命令

top命令可以在linux中查看各进程的系统资源的占用情况,包括CPU占用、内存占用、进程优先级等等。 开启命令: top 就是如此简单 进入top之后以交互模式运行,不同按键触发不同功能。 常用按键功能:

anonymous_vhacker 发布于 2022-12-01

Linux中压缩和解压文件

文件类型:.tar 解包: tar xvf FileName.tar 打包: tar cvf FileName.tar DirName 文件类型:.zip 解压: unzip FileName.zip 压缩: zip FileName.zip DirName 文件类型:.rar 解压: rar x

anonymous_vhacker 发布于 2022-11-30