useradd -m -s /bin/bash jerry |
echo BASH_PROFILE |
echo BASHRC |
/bin/bash |
/sbin/runlevel |
/sbin/init N |
#~:S:wait:/sbin/sulogin ~:S:wait:/bin/bash |
/sbin/telinit q |
update-rc.d -f portmap remove update-rc.d -f nfs-common remove update-rc.d -f nfs-kernel-server remove update-rc.d -f exim4 remove |
update-rc.d portmap start 20 3 . stop 20 0 1 2 6 . update-rc.d nfs-common start 21 3 . stop 21 0 1 2 6 . update-rc.d nfs-kernel-server start 21 3 . stop 21 0 1 2 6 . |
update-rc.d exim4 start 20 2 . stop 20 0 1 3 6 . |
ps -ef | grep exim ps -ef | grep portmap ps -ef | grep rpc |
/etc/init.d/sample.sh /etc/init.d/sample.sh start /etc/init.d/sample.sh stop |
ln -s /etc/init.d/sample.sh /etc/rc1.d/K99sample ln -s /etc/init.d/sample.sh /etc/rc2.d/S99sample ln -s /etc/init.d/sample.sh /etc/rc3.d/K99sample |
update-rc.d sample.sh start 20 2 4 . stop 20 1 3 5 . |
rm /var/log/sample.log |
#!/bin/sh # Checks memory status through cron of=/home/$USER/mem.out dt=`date` echo "Memory status (in MB) on $dt:" >> $of free -m >> $of echo "------------------" >> $of |
at -f mem.sh now + 1 minute |
*/2 * * * * root /home/your_username/mem.sh |