mbrback shell script creates a backup of your hard drive’s MBR and its partition table. You can then use mbrback to restore the MBR boot code, full MBR, or partition table from the backup files.
Read the rest of this entry
Archive for the ‘ shell script ’ Category
Linux Shell Script To Backup and Restore MBR (Master Boot Recored)
Author: adminJan 11
“rdate: couldn’t connect to host 172.25.32.1: Connection refused”
Author: adminDec 9
This problem is solve, issue was not with NTP but with xinetd service.
when i run these commands on 172.25.32.1 problem is solved.
chkconfig time-dgram on
chkconfig time-stream on
service xinetd restart
Unix Signals
Author: adminDec 17
A signal is a message which can be sent to a running process.
Signals can be initiated by programs, users, or administrators.
For example, to the proper method of telling the Internet Daemon (inetd) to re-read its configuration file is to send it a SIGHUP signal.
Read the rest of this entry
Linux / UNIX: Run Commands When You Log Out
Author: adminNov 24
I’ve written a Perl script that connects to our central server for me and it allows me feed data so that I make a timesheet later. How do I run my script when I log out from Apple OS X or Linux / UNIX workstation using bash shell?
Almost all modern shell including bash allows you run run command when you log out. Typically this is used to:
Read the rest of this entry
vi Find And Replace Text Command
Author: adminNov 24
ow do I find and replace (substitute) test using vi or vim text editor under UNIX / Linux / BSD or Apple OS X operating systems?
Both vi and vim text editor comes with substitute command for finding and replacing text.
Read the rest of this entry