rhcsa作业
1. Cd /rootMkdir /root/haha /root/hehecp -r /hehe /haha/apple2. Mv hehe appleTouch /root/haha/heihei.txt3. date ”%m%D%H”Cut date ”%m%D%H” A.txtCut -d: -f3 /etc/passwd UIDCut -d: -f4 /etc/passwd GID4. wc -l /etc/passwd5.cut -d : -f1 /etc/passwd6.Sort -r : -f3 /etc/passwd7.Head -25 /etc/passwd | tail -68.Ip a | grep ‘inet’9.ip a | grep link/ether10.cut -d : -f7 /etc/passwd | sort |uniq -c11.Df -h 系统现在剩余大小为‘df -h / | grep -w / |cut -d ‘ ’ -f4’12.Mkdir -p /logfile13. Find . -name”*.log”-exec14.tar -zcvf all_log_backup.tar .gz /logfile/15. Tar -zcvf all_all_log_backup.tar.gz-C /root/[root123 ~]# wc -l /etc/passwd 39 /etc/passwd [root123 ~]# cut -d : -f1 /etc/passwd root bin daemon adm lp sync shutdown halt mail operator games ftp nobody dbus yggdrasil yggdrasil-worker tss avahi systemd-oom polkitd rtkit pipewire geoclue clevis sssd gnome-remote-desktop libstoragemgmt systemd-coredump wsdd colord setroubleshoot flatpak gdm gnome-initial-setup sshd chrony dnsmasq tcpdump xxx