Linux常用命令及使用
常用命令
文件管理 :mkdir, rmdir, mv, rm, cp, touch, cat, tac, echo, more, less, head, tail, file, find, rename, ln, pwd, scp, alias
磁盘管理: ls, cd, du, df, mount, unmounts, fdisk
文档处理 :wc, sort, uniq, cut, sed, awk, grep, vi, diff
用户和组: useradd, usermod, passwd, userdel, groupadd, groupdel, chgrp, su
文件传输: get, put, wget
网络通信 :telnet, nc, ifconfig, ping, netstat, ip, host
备份压缩 :gzip, bzip2, bunzip2, tar, zip
系统管理 :exit, kill, last, ps, top, free, pstree, reboot, halt, shutdown, sudo, who, w, whoami, whereis, which, last, whatis
系统设置 :clear, set, unset, hwclock, time, date,
其他:history, hostname, nohup, service, init, rpm, ssh, cal, yum
常用命令详解
磁盘管理
文件管理
其他有用
使用小技巧
六组常用命令
1.rm -rf : 删除文件夹下所有内容(【谨慎使用!!!】)
2.tail -f : 显示文件最新追加的内容
3.tar -zxvf : 解压缩 .tar.gz格式的文件
4.netstat -nltp : 系统中某端口号与进程号的关系
5.ps -ef | ps -aux:查看系统中的进程的启动、运行的详细信息。
6.rpm -ivh : 安装一个rpm格式的软件