ps -ef
ps aux
ptree <PID>
pstree <PID>
pkill <进程名>
kill <PID>
killall
uptime
shutdown -i5 -g0 -y
shutdown -h now
poweroff
reboot
shutdown -i6 -g0 -y
shutdown -r now
uname -a
showrev -p
/etc/os-release
df -k
df -h
du -sk <目录>
du -sh <目录>
mount -F ufs <设备> <目录>
mount <设备> <目录>
-t ext4
mount
findmnt
newfs /dev/rdsk/c0t0d0s0
mkfs.ext4 /dev/sda1
ln -s <源> <目标>
find / -name "filename"
grep "pattern" file
ifconfig <网卡>
ip addr
ifconfig
netstat -rn
ip route
netstat -an \| grep LISTEN
ss -tuln
netstat -tuln
ping <主机>
traceroute <主机>
traceroute
tracepath
nslookup <域名>
dig <域名>
nslookup
hostname <新主机名>
/etc/nodename
hostnamectl set-hostname <新主机名>
pkgadd -d <包文件>.pkg
pkg install <包名>
yum install
dnf install
apt install
pkgrm <包名>
pkg uninstall
yum remove
apt remove
pkginfo
pkg list
rpm -qa
yum list installed
dpkg -l
apt list --installed
pkg update
yum update
apt update && apt upgrade
useradd -m -d /home/user1 user1
useradd -m user1
userdel user1
passwd user1
who
last
su - user1
chmod 755 file
chown user:group file
/var/adm/messages
/var/log/messages
/var/log/syslog
tail -f /var/adm/messages
tail -f /var/log/messages
journalctl -f
/var/log/authlog
/var/log/secure
/var/log/auth.log
prstat
top
htop
vmstat 5
iostat -xnz 5
iostat -xz 5
sar
svcadm enable <服务名>
systemctl start <服务>
svcadm disable <服务名>
systemctl stop <服务>
svcs -a \| grep <服务>
systemctl status <服务>
svcadm restart <服务名>
systemctl restart <服务>
systemctl enable <服务>
svcs -a
systemctl list-unit-files --type=service
vi
textedit
vim
nano
grep
-E
-P
sed
wc
sort
pkg
pkgadd
apt
yum
/dev/dsk/c0t0d0s0
/dev/sda1
如果需要具体某个命令的详细用法或场景示例,可以进一步说明!