at $ at 23:00 $ at 6:00 tomorrow $ at now + 3 days chkconfig # chkconfig --list # chkconfig --list postfix # chkconfig --level 35 postfix on # chkconfig rsync on # chkconfig telnet off 2
crontab $ crontab -e $ crontab -l $ crontab -r date A PPENDIX $ date # date 093010152007.30 3
df $ df $ df -H $ df /tmp du $ du -c ~ # du -m /boot # du -s /* 4
eject # eject -d # eject # eject /dev/cdrom # eject /media/cdrom A PPENDIX fdformat # fdformat /dev/fd0h1440 # fdformat /dev/fd0h720 5
fdisk # fdisk -l # fdisk /dev/hda free $ free -m 6
fsck # fsck -A # fsck -y hwclock A PPENDIX # hwclock --show # hwclock --systohc # hwclock --hctosys 7
jobs $ jobs $ jobs -l kill $ kill 500 # kill -KILL 1000 $ kill -l 8
killall # killall httpd # killall -i xclock last $ last A PPENDIX $ last centuser 9
lastlog # lastlog -t 3 # lastlog -u centuser lsmod $ lsmod 10
lsof # lsof /var/log/messages # lsof -c syslogd # lsof -i:873 mformat # mformat a: A PPENDIX 11
mke2fs # mke2fs /dev/hdb1 # mke2fs -j /dev/hdb2 # mke2fs -j -c /dev/hdb3 modinfo # modinfo floppy 12
modprobe # modprobe eepro100 # modprobe -r tulip mount # mount # mount /dev/hda5 /data A PPENDIX # mount -o loop home.iso /mnt/tmp 13
nice # nice -n -5 updatedb nohup # nohup updatedb & pgrep $ pgrep http $ pgrep -l http $ pgrep -t tty1 14
ps $ ps ax $ ps aux pstree $ pstree $ pstree -p A PPENDIX 15
rpm # rpm -ivh tree.rpm # rpm -q tree # rpm -qi tree # rpm -Uvh tree.rpm # rpm -K tree.rpm # rpm -e tree 16
runlevel # runlevel shutdown # shutdown -h now # shutdown -r +5 # shutdown -r 23:15 A PPENDIX 17
top $ top umount # umount /data # umount /media/cdrom 18
uname $ uname -r $ uname -m users # users A PPENDIX 19
w $ w $ w -u $ w centuser who $ who 20
yum A PPENDIX # yum update # yum update httpd # yum install postfix 21
chmod $ chmod 755 file1 $ chmod a+x file2 $ chmod o+x file3 chown # chown centuser file1 # chown centuser:staff file2 # chown -R dir1 22
cp $ cp file1 dir1/file2 $ cp file1 file2 file3 dir2 file $ cp -r dir2 /tmp A PPENDIX $ file /bin/bash 23
find \ \ # find /home -name "cent*" $ find. -name core -exec rm {} \; $ find. -mtime +30 24
gunzip $ gunzip file2.gz gzip $ gzip file1 $ gzip -c file2 > file2.gz A PPENDIX ln $ ln -s /etc/hosts hostlist $ ln -s /var/log /home/centuser/log 25
locate $ locate configure $ locate "*.rpm" ls $ ls -ld /etc $ ls -A 26
mcopy $ mcopy a: $ mcopy testfile a: mdir $ mdir a: A PPENDIX 27
mkdir # mkdir /data $ mkdir -p a/b/c $ mkdir -m 770 dir1 mv $ mv file1 dir2 $ mv file1 file3 $ mv dir1 dir3 28
tar $ tar zcvf /tmp/cent.tar.gz /home/centuser $ tar zxvf file.tar.gz $ tar xvf file.tar $ tar ztf file.tar.gz $ tar ztvf file.tar.gz A PPENDIX touch $ touch -t 200709151050 sample $ touch testfile 29
updatedb # updatedb wc $ wc -l /etc/services $ dmesg wc -l 30
dig $ dig www.shoeisha.co.jp $ dig -x 61.193.170.140 $ dig shoeisha.co.jp mx A PPENDIX 31
host $ host www.shoeisha.co.jp $ host 61.193.170.140 $ host -t mx shoeisha.co.jp hostname $ hostname # hostname h200.example.net 32
ifconfig # ifconfig # ifconfig eth0 mail # ifconfig eth1 172.22.0.3/16 A PPENDIX $ mail $ mail centuser@example.com $ mail -s testmail root $ dmesg mail -s dmesgmail centuser@example.com 33
netstat $ netstat -at $ netstat -atp ntpdate # ntpdate 172.30.0.100 34
ping $ ping 192.168.0.1 $ ping -c 4 192.168.0.1 scp A PPENDIX $ scp file1 h200: $ scp file2 centuser@h200:/tmp $ scp h200:/home/centuser/file3. 35
ssh $ ssh 192.168.0.100 $ ssh centuser@192.168.0.100 $ ssh -p 60022 192.168.0.100 ssh-keygen $ ssh-keygen -t dsa $ ssh-keygen -p 36
telnet $ telnet 192.168.0.100 $ telnet localhost 80 wget $ wget http://www.example.com/testfile $ wget -r http://www.example.com/testdir A PPENDIX 37
whois $ whois centos.org 38
groupadd # groupadd staff groupdel # groupdel staff A PPENDIX id $ id $ id centuser 39
passwd $ passwd # passwd centuser su $ su - $ su $ su - centuser 40
sudo $ sudo /sbin/shutdown -h now useradd # useradd centuser # useradd -G staff centuser # useeradd -d /staff centuser A PPENDIX 41
userdel # userdel centuser # userdel -r centuser usermod # usermod -s /bin/tcsh centuser # usermod -G staff centuser 42
cat $ cat /etc/hosts $ cat file1 file2 > file3 grep A PPENDIX $ dmesg grep eth0 $ grep ssh /etc/services $ grep -r rpc.statd /etc/init.d 43
head $ head /etc/passwd $ head -3 /etc/passwd less $ less /etc/rc.local $ dmesg less 44
sort $ rpm -qa sort tail $ tail /etc/passwd A PPENDIX $ tail -15 /etc/passwd $ tail +10 /etc/passwd # tail -f /var/log/messages 45
alias $ alias $ alias ls="ls -alf" cd $ cd $ cd - $ cd.. $ cd dir1 $ cd ~centuser 46
exit $ exit export $ export DATE $ export DATE="20070915" A PPENDIX 47
history $ history $ history 20 $ history -c printenv $ printenv pwd $ pwd 48
set $ set unalias $ unalias lsdir A PPENDIX 49
apropos $ apropos sudo echo $ echo $LANG $ echo "centuser" >> file1 50
man $ man passwd whatis $ man 5 passwd $ LANG=C man passwd A PPENDIX $ whatis sudo which $ which man Yoshikazu Nakajima, Shinichiro Hida, SHOEISHA.Co.,Ltd. 51