useradd miho ; mkdir -p /home/miho/id ; tail -1 /etc/passwd > /home/miho/id/user.info ; date >> /home/miho/id/user.info ; chmod 444 /home/miho/id/user.info

wget yahoo.co.jp ; wc -l index.html

mkdir -p /tmp/test
cd /tmp/test\
wget yahoo.co.jp
wc -l *

userdel miho
mv /home/miho /home/miho.old
mv /var/mail/miho /var/mail/miho.old
useradd miho

ls -l /var/mail/USER

tar cf document.tar *
tar tvf document.tar
tar xf document.tar

gzip *.txt
qunzip *.gz

useradd sato
tail -1 /etc/passwd > user.info : id sato >> user.info

head -201/var/log/dmesg > log.txt
tail -10 /var/log/dmesg >> log.txt

du -h user.tar.gz

cat /etc/redhat-release
rpm -ql vi

     debian
     dpkg

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

cat /etc/redhat-release > myOS.info ; rpm -qa | grep python >> myOS.info ;mkdir -p /tmp/info/os ; mv myOS.info /tmp/info/os

cat /etc/redhat-release > myOS.info2 ; rpm -qa | grep python | wc -l >>myOS.info2 ; echo The installed PKG is Kho >> myOS.info2

[root@ik1-331-25935 os]# cat /etc/redhat-release > myOS.info2 ; rpm -qa | grep python | wc -l >>myOS.info2 ; echo The installed PKG is Kho >> myOS.info2
[root@ik1-331-25935 os]# cat myOS.info2
CentOS Linux release 7.2.1511 (Core)
27
The installed PKG is Kho

cat /etc/redhat-release > myOS.info3 ; echo The installed PKG is Kho >> myOS.info3 ; rpm -qa | grep python | wc -l >> myOS.info3

rpm -i python-slip-0.4.0-2.el7.noarch > slip.conf

yum upgrade
yum list updates

yum -y install postgresql
yum -y install postgresql-server

yum -y install postgresql-server

yum -y install postgresql
yum list installed | grep postgresql

echo “listen_addresses = ‘*’” >> /var/lib/pgsql/data/postgresql.conf
echo "# PostgreSQL Client Authentication Configuration File" > ./pg_hba.conf
echo "# ===================================================" >> ./pg_hba.conf
echo "local all all trust" >> ./pg_hba.conf
echo "host all all 127.0.0.1/32 trust" >> ./pg_hba.conf
echo "host all all ::1/128 trust" >> ./pg_hba.conf

servie postgresql restart

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.