Monthly Archives: November 2006
Install & Configure OpenSSH
As I’m setting up a Linux CENT OS for an experimental project, I need to install and setup OpenSSH server into the Linux box, for secure and encrypted remote access instead of telnet and ftp. To run an OpenSSH server, … Continue reading
How To Configure yum To Get Through Proxy?
Yesterday, I was installing Linux Cent OS in Virtual Machine for an for an experimental project. When using yum update to get all the latest packages, I realised that yum couldn’t successful updated. This is because office network is behid … Continue reading
Confirm The Input
In many case, when developing a menu system using shell script, it will be good to prompt the user to confirm that it is okay to run a script. for example: Are you sure to run this task? [Yes | … Continue reading
fgrep files and insert characters before & after the output
I’m preparing a Unix shell script to scan backup log and to check for failure code. If the directory backup is finished with failure, then the script must be able to pick-up the failed directory and write to an include … Continue reading
Get Total No of Files and Total File Size in DVD/CD Media
Few months ago, I was preparing some statistics for data migration. All data are stored in the DVD disc and I need to calculate total no of files and total data size capacity of each of the DVD disc. There … Continue reading