[Linux]命令行分类
2023-09-27 14:24:41 时间
0 操作系统 / 编译 / 进程 / 内存 / 硬盘 / 硬件
-
hostname / hostnamectl / uname
- hostnamectl set-hostname xxxx 重置hostname
-
yum / rpm / createrepo / apt-get
-
systemctl / service
- systemctl restart firewalld
- systemctl enable firewall
- systemctl disable firewall.service
- service redis_$redis_port restart
-
firewall-cmd / ufw
- firewall-cmd --query-port=80/tcp
- sudo ufw app list
-
top / free / swapon
- free -m
-
df –h # 查看已挂载设备的信息
-
netstat / ps / lsof / ss / kill
- netstat -antulp | grep ssh
-
mount / fdisk
-
lscpu / lspci / lsusb
-
ifconfig / (ip addr) /
-
chkconfig
- chkconfig iptables off # 永久关闭防火墙
- chkconfig iptables on # 永久关闭后重启
-
/proc/, /etc/
-
sh / make / source / export
1 用户
- chmod / chown / chgrp
- useradd / userdel / passwd / usermod
- su / sudo
- who
2 文件管理 / 文本处理 / 管道
- mkdir / rm / touch / mv / cp / cd
- mkdir -p /app/yum/centos7/x86_64/
- ln
- vi / vim / nano
- ls / cat / grep / find
- nl / sed / awk / wc / xargs
- sed -i 's/\r$//' 把文本中的行尾的\r替换为空白
- find $TOMCAT_HOME/webapps/ -name jdbc.properties |xargs sed -i 's/53302/3306/g'
3 网络请求
- curl / wget / scp
4 压缩
-
zip / unzip
- unzip /var/ftp/tmp/app.war -d $TOMCAT_HOME/webapps/app
-
tar / gzip / bzip2 / xz
5 其它: 定时脚本 / ...
- crontab
X 推荐文献
- [Linux]常用命令之【top/uptime/w/vmstat/free】(系统负载) - 博客园/千千寰宇
- [Linux]常用命令之【vi/grep/find】 - 博客园/千千寰宇
- [Linux]常用命令之【netstat/ps/lsof/ss/kill/】 - 博客园/千千寰宇
- [Linux]常用命令之【nl/sed/awk/wc/xargs】 - 博客园/千千寰宇
- [Linux]scp:物理主机与虚拟机的文件传输 - 博客园/千千寰宇
- [Linux]查看硬件及操作系统信息 - 博客园/千千寰宇
- [Linux]常用命令之【systemctl/service】 - 博客园/千千寰宇
- [Linux]常用命令之【tar/zip/unzip】
- Linux常用命令大全(非常全!!!) - CSDN
相关文章
- Linux服务器安全加固
- 软硬链接、文件删除原理、linux中的三种时间、chkconfig优化
- 如何在 Android 设备上运行 Linux
- Linux 命令行工具使用小贴士及技巧(二)
- Linux 内核里的数据结构——基数树
- Linux 中如何通过命令行访问 Dropbox
- linux文件系统概述
- 【Linux】在命令行中查看Linux内核版本的几种方法
- 《Linux防火墙(第4版)》——2.6 私有网络服务VS公有网络服务
- linux 建立 MySQL 账号
- Linux 内核 标准 PCI 配置寄存器
- LINUX对于未安装的软件包的查看
- 《Linux嵌入式实时应用开发实战(原书第3版)》—— 导读
- linux 使用fdisk分区扩容,看介绍命令(未完)
- linux用户,组管理总结(8/19)
- 【八天学好Linux】第二天 Linux中用命令行管理文件
- 【正点原子Linux连载】第三十三章 U-Boot移植 -摘自【正点原子】I.MX6U嵌入式Linux驱动开发指南V1.0
- linux系统下信号具体解释2
- Linux修改时间
- linux下安装kafka消息队列
- 《Linux命令行与shell脚本编程大全 第3版》创建实用的脚本---02
- 《Linux命令行与shell脚本编程大全 第3版》高级Shell脚本编程---42
- 《Linux命令行与shell脚本编程大全 第3版》Shell脚本编程基础---36
- 《Linux命令行与shell脚本编程大全 第3版》Shell脚本编程基础---23
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---51
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---42
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---25
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---17
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---14
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---13
- 《Linux命令行与shell脚本编程大全 第3版》Linux命令行---1