Linux命令总结

时间:2021-07-19 09:38:44   收藏:0   阅读:28

环境:Ubuntu

一、系统配置相关

# 查看内核版本
cat /proc/version
uname -a
# 查看系统版本
lsb_release -a
cat /etc/issue
# 查看用户列表
cat /etc/passwd

二、数据处理相关

1.使用grep抓取数据

# 处理文件
grep [key] [file]

# 使用管道
[string list] | grep [key]

2.使用cat等工具显示数据

# 带行号显示文本
cat -n [file]

# 每行line_number个字母,显示文本
fold -w [line_number:number] [file]

 3.使用tr替换文字

[stream] | tr [old charactes] [new characters]

 

三、网络相关

# 查看网络信息等
# 键入ip,根据提示操作
ip [...]

 

原文:https://www.cnblogs.com/aolan/p/15028416.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!