ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~babaYaga-conf/weaver_sample.pem ec2-user@
ssh -vvv
http://injustfiveminutes.com/2013/03/13/fixing-ssh-login-long-delay/
ssh -o GSSAPIAuthentication=no
history | cut -c 8- |grep log
find . -name "*.log" -print | xargs cat
sudo lsof -i TCP -P
du -m | sort -n
ls -Slhr
open -a Smultron <file_name>
watch ls -l
##list ports:
lsof -i -P # list open ports
lsof -i -P | grep LISTEN
netstat -a
DiskStation> du -hc -d 1 .
du -d 2 -m -P -x -c
[root@itmm /]# du -hc --max-depth=1 .
16K ./lost+found
11M ./boot
428K ./dev
du: cannot change to directory `./proc/5629/fd': No such file or directory
du: `./proc/5681/fd/4': No such file or directory
923M ./proc
12G ./var
14M ./tmp
18M ./etc
17M ./root
df -h
chkconfig iptables off
[root@rcc-pok-rem-02 bin]# chkconfig --list iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@rcc-pok-rem-02 ~]# ntpdate pokgsa.ibm.com
13 Feb 10:48:40 ntpdate[15298]: adjust time server 9.56.248.25 offset 0.000660 sec
[root@rcc-pok-rem-02 ~]# vi /etc/ntp.conf
[root@rcc-pok-rem-02 ~]# service ntpd start
Starting ntpd: [ OK ]
[root@rcc-pok-rem-02 ~]# date
Fri Feb 13 10:50:05 EST 2009
Synchronize
[root@rcc-pok-rem-02 ~]# ntpd -q
[root@rcc-pok-rem-02 ~]# date
Fri Feb 13 10:51:19 EST 2009
ip -4 a