Monthly Archives: May 2019

SCP to another PORT, not port 22

  Capital “P”. $ scp -P 12345 svn_backup.tgz user@xxx.xxx.xx.xxx:/path/to/new/svn/ 

Posted in My Linux | Comments Off on SCP to another PORT, not port 22

command line tips and tricks

Version:1.0 StartHTML:000000196 EndHTML:000060386 StartFragment:000010516 EndFragment:000060318 StartSelection:000010516 EndSelection:000060312 SourceURL:http://blogs.iabsolute.com/?p=592 command line tips and tricks « Blogs IT Networking These tips are in no particular order…. Watch a log file as its appended to tail -f logfile Redirect a man page to … Continue reading

Posted in command line of linux, My Linux | Comments Off on command line tips and tricks

clear ROOT email from LINUX

mail -f /var/spool/mail/user delete * then q (this clear all mail) if somehow can not delete and get error “value too large for defined data type” Clearing Email Sent To Mail Root: cat /dev/null > /var/spool/mail/root Clearing Logs: cat /dev/null … Continue reading

Posted in My Linux | Comments Off on clear ROOT email from LINUX

ntpdate – time

A good server machine should always tick its clock with correct time. The best way to keep it in shape is to sync with a time server. You can use any preferred time server to sync. I’m using public time … Continue reading

Posted in My Linux | Comments Off on ntpdate – time

Auto rebooting scheudle for LINUX server

the command to reboot should be something like “shutdown -r now”, where -r means to reboot (as opposed to -h which is halt). Cron is the process for executing commands at a scheduled time. Crontab is the facility to schedule … Continue reading

Posted in My Linux | Comments Off on Auto rebooting scheudle for LINUX server