linux 常用的150 个命令汇总

1. 线上查询及帮助

man help

2. 文件和目录操作的命令

ls	cd	find	mkdir	mv	pwd	rename
rm	rmdir	touch	tree	basename	
dirname	chattr	lsattr	file	md5sum

3. 查看文件内容的命令

cat	tac	more	less	head	tail	cut	
split	paste	sort	uniq	wc	
iconv	dos2unix	diff	vimdiff	
rev	grep/egrep	join	tr	vi/vim

4 文件压缩与解压命令

tar	unzip	gzip	zip

5. 信息显示命令

uname	hostname	dmesg	uptime	stat	du	df	top	free	date	cal

6 .搜索命令

which	whereis	locate	find

7. 用户管理命令

useradd	userdel	useromd	groupadd	groupdel	passwd	chpasswd
id	su	sudo	visudo

8. 基础网络操作命令

telnet	ssh	scp	wget	ping	route	ifconfig	ifup
ifdown	netstat	ss	curl

9. 深入网络操作命令

nmap	lsof	mail	mutt	nsloop	dig	host	traceroute
tcpdump

10. 有关磁盘与文件系统的命令

mount	umount	fsck	dd	dumpe2fs	dump	fdisk	parted
mkfs	partprobe	mkswap	swapon	swapoff	sync	resize	lsblk

11. 系统权限及用户授权命令

chmod	chown	chgrp	umask

12. 查看系统用户登录信息命令

whoami	who	w	last	lastlog	users	finger

13. 系统性能与性能监控命令

chkconfig	vmstat	mpstat	iostat	pidstat	sar
ipcs	ipcrm	strace	ltrace

14. 关机、重启、注销、退出等命令

shutdown	halt	poweroff	init 0	logout	exit	ctrl+d

15. 进程管理相关命令

bg	fg	jobs	kill	killall	pkill	service 	crontab 	init
nohup	pgrep	runlevel	ps	pstress		nice/renice

16. 其他内置命令

echo	printf	rpm 	yum 	watch	alias/unalias	date
clear	history 	eject	time	nc	xargs	exec	export
unset	type	bc
posted @ 2023-03-05 21:54  风风羊  阅读(225)  评论(0编辑  收藏  举报