find :查找
find /opt/ | grep 内容
find 路径 | grep 内容,文件名,目录
which :查找文件/目录所在路径位置 which is ls
查看CPU : lscpu 和 cat/proc/cpuinfo
input :输入 output :输出
free :查看内存大小
lsblk :查看硬盘的分区情况
uname-r :查看内核版本
date :系统时间


cat -n 123.txt cat -s 123.txt

more /etc/passwd
ls /etc/*.conf | more


head 123txt




grep:
1. grep -o root /etc/passwd
2. cat /etc/passwd | grep -c root







本文介绍了Linux环境下常用的命令操作,包括文件查找、路径定位、系统信息查询等实用技巧。通过这些命令,用户可以轻松地进行文件管理、系统监控及硬件信息获取。

被折叠的 条评论
为什么被折叠?



