1.
head -6 /etc/passwd |tail -1
2.(1)
grep ^[A-Z] /
(2)
grep ^[host] /etc
(3)
grep "HOME$" /etc
(4)
grep -i "a.txt" /
3.
grep "re" /usr/share/rhel.xml >> /root/files
4.
tar -czf /back/etcback.tar.gz /etc
5.
vim .bashrc
alias hello="echo 'hello,everyone'>>/file.txt"
6.
gruopadd mygruop
useradd myuser
gpasswd -a myuser mygroup
su myuser
mkdir /home/myuser/ex
mkdir /home/myuser/hv
chown root:root hv
7.
groupadd g1
useradd redhat
touch redhat.txt
chown redhat:g1 redhat.txt