Linux常用命令汇总

#《运维必须掌握的150个常用命令》是从老男孩Linux上的视频看到的,我现在准备花些时间去整理这部分命令,为以后的学习打下良好的基础。整理好之后的博文也会放在博客中。

线上查询及帮助命令(2 个)

man help 

●文件和目录操作命令(13 个) 

ls tree pwd

mkdir rmdir cd touch cp mv rm ln find rename 

●查看文件及内容处理命令(22 个) 

cat tac more less head tail cut split paste sort uniq wc iconv dos2unix file diff vimdiff chattr lsattr rev grep egrep 

●文件压缩及解压缩命令(4 个) tar unzip gzip zip

 ●信息显示命令(12 个) 

uname hostname dmesg uptime file stat du df top free date cal

 ●搜索文件命令(4 个) which find whereis locate 

●用户管理命令(10 个) 

useradd usermod userdel groupadd passwd chage id su visudo sudo 

●基础网络操作命令(10 个) 

telnet ssh scp wget ping route ifconfig ifup ifdown netstat 

●深入网络操作命令(6 个) lsof route mail mutt nslookup dig 

●有关磁盘文件系统的命令(8 个)

mount umount df du fsck dd dumpe2fs dump

●关机和查看系统信息的命令(3个)

 shutdown halt init

 ●系统管理相关命令(8个)

uptime top free vmstat mpstat iostat sar chkconfig 

●系统安全相关命令(10 个) 

chmod chown chgrp chage passwd su sudo umask chattr lsattr

 ●查看系统用户登陆信息的命令(7 个)

 whoami who w last lastlog users finger 

●查看硬件信息相关命令(8 个)

 ifconfig free fdisk ethtool mii-tool dmidecode dmesg lspci

●其它(19 个)

 echo printf rpm yum watch alias unalias date clear history eject time nohup nc xargs exec export unset type 

●系统性能监视高级命令(12 个) 

内存:top free vmstat mpstat iostat sar 

CPU:top vmstat mpstat iostat sar 

I/O:vmstat mpstat iostat sar 

进程:ipcs ipcrm lsof strace lstrace 

负载:uptime 

mount umount df du fsck dd dumpe2fs dump 

●关机和查看系统信息的命令(3 个) 

shutdown halt init 

●系统管理相关命令(8 个) 

uptime top free vmstat mpstat iostat sar chkconfig 

●系统安全相关命令(10 个) 

chmod chown chgrp chage passwd su sudo umask chattr


你可能感兴趣的:(命令汇总整理)