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格式的軟件