您的位置:首页 > 运维架构 > Linux

linux当中150个常用的基础命令

2016-08-12 08:31 537 查看
目录操作命令(6 个)

ls tree pwd mkdir rmdir cd文件操作命令(7 个)

touch cp mv rm ln find rename
文件查看及处理命令(21 个)

cat more less head tac headtail cut pastesort uniq wc iconv dos2unixfile diff tree chattrlsattr rev vimdiff文件打包压缩命令(3 个)

gzip tar unzip信息显示命令(12 个)

uname hostname dmesg uptime filestat du df top free w date搜索文件命令(4 个)

find which whereis locate用户管理命令(10 个)

useradd userdel passwd chageusermod id su sudo visudogroupadd基本网络操作命令(10 个)

telnet ssh scp wget ping routeifconfig ifup ifdown netstat深入网络操作命令(6 个)

route mail mutt nslookup digwget有关磁盘空间的命令(6 个)

mount umount df du fsck dd关机和查看系统信息的命令(7个)

shutdown reboot ps top kill date安装和登录命令(3 个)

shutdown halt reboot系统管理相关命令(9 个)

top free vmstat mpstat iostatsar kill chkconfig last系统安全相关命令(13 个)

passwd su sudo umask chgrpchmod chown chattr lsattr pswhoami查看系统用户登陆信息命令(6个)

w who users last lastlogfingers查看硬件相关命令(6 个)

ethtool mii-tool dmidecodedmesg lspci其它(14 个)

chkconfig echo yum watch aliasunalias date clear history eject time nohup nc xargs监视物理组件的高级Linux 命令

内存:top free vmstat mpstat iostat sarCPU:top vmstat mpstat iostatsarI/O:vmstat mpstat iostat sar进程:ipcs ipcrm负载:uptime关机/重启/注销命令

关机:shutdown -h now ――>立刻关机(生产常用)shhutdown -h +1 ――>1 分钟以后关机init 0halt ――>立即停止系统,需要人工关闭电源halt -ppoweroff ――>立即停止系统,并且关闭电源重启:reboot(生产常用)shutdown -r now(生产常用)shhutdown -r +1 ――>1 分钟以后重起init 6注销logoutexit(生产常用)ctl+d ――>快捷键(生产常用)进程管理:(16 个)

bg:后台运行 fg:挂起程序 jobs:显示后台程序kill,killall,pkill:杀掉进程crontab:设置定时 ps:查看进程 pstree:显示进程状态树top:显示进程 nice:改变优先权 nohup:用户退出系统之后继续工作pgrep:查找匹配条件的进程 strace:跟踪一个进程的系统调用ltrace:跟踪进程调用库函数的情 vmstat:报告虚拟内存统计信息危险的系统命令:

mv rm dd fdisk partedlinux 三剑客(3 个)

grep sed awk
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息