cal 2018 > cal2018.sato.txt ; date > date.sato.txt ; id sato > id.sato.txt
mkdir user_info
mv ./* ./user_info

cp *.sato.txt *.sato.txt.old

cp id.*.* id.sato.txt.old

echo Written by Kho >> cal2018.sato.txt.old

tar cf document.tar *

cat /etc/passwd > current_user.txt ; pstree > pstree.info
head -20 /var/log/dmesg > demesg.info ; tail -10 /var/log/dmesg >> demesg.info
chmod 444 *

yum install psmisc


rpm -qa | grep python > gpython ; wc -l gpython
rpm -qal | grep python

tar cf cu_ps_dmesg.tar *
gzip cu_ps_dmesg.tar

mount > mount.info
yum list installed | grep python >python.pkg.info ; yum list installed | grep python | wc -l >> python.pkg.info
cat -n python.pkg.info > python.pkg.info2

select avg(age) from userlist where age between 20 and 25;
select * from userlist order by age;
select * from userlist order by age desc ;

useradd nam; useradd namgf
mkdir /home/nam ; mkdir /home/namgf ; mkdir /home/myhome
echo Do you like me? > present.conf ;cat /etc/fstab > pet.info ; pstree > bed.info

cat /etc/inintab > pet.info ; dmesg > bed.info
mv /home/nam/pet.info /home/myhome/pet.info.nam ; mv /home/nam/bed.info /home/myhome/bed.info.nam

mv /home/namgf/pet.info /home/myhome/pet.info.namgf ; mv /home/namgf/bed.info /home/myhome/bed.info.namgf

useradd lee ; useradd leegf1 ; useradd leegf2 ; useradd leegf3
cat /etc/passwd > ./lee/money.info ; pstree > ./leegf1/money.info ; dmesg > ./leegf2/money.info ; cat /etc/fstab > ./leegf3/money.info

cal 2018 > ./lee/car.info

cat ./leegf1/money.info >> ./lee/money.info ; cat ./leegf2/money.info >> ./lee/money.info ; cat ./leegf3/money.info >> ./lee/money.info

cat ./leegf1/money.info >> ./lee/money.info ; cat ./leegf2/money.info >> ./lee/money.info ; cat ./leegf3/money.info ./lee/money.info

rm ./leegf1/money.info ;rm ./leegf2/money.info ; rm ./leegf3/money.info
userdel leegf1 ; userdel leegf2 ; userdel leegf3

wc -l /etc/passwd;pstree|wc -l;dmesg|wc -l;wc -l /etc/fstab

[root@ik1-331-25935 home]# wc -l /etc/passwd
32 /etc/passwd
[root@ik1-331-25935 home]# pstree|wc -l
27
[root@ik1-331-25935 home]# dmesg|wc -l
541
[root@ik1-331-25935 home]# wc -l /etc/fstab
11 /etc/fstab
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.