Bash Script: How Do I Copy The Missing Files, Directories Alone From a Directory to Another Directory in Linux?

Posted by Jay     Tags: , , , 5 September, 2009    2,828 views    (0) Comment

How Do I Copy The Missing Files, Directories Alone From a Directory to Another Directory in Linux? I tried to upgrade the wordpress version for this blog and end up with some issues with my customization, especially on a production system like this. Hence, I have to unzip the latest wordpress in a directory and copy on the extra files, directories from the old wordpress directory to the new place including wp-config.php. Doing that manually is tiresome and have the risk of missing some files Read Full Article (Click here)...

Categories : Scripts Unix, wordpress Tags : , , ,

BASH Help:How do i check if a directory exists and display that it doesn’t using bash?

Posted by Jay     Tags: , 5 September, 2009    3,103 views    (0) Comment

BASH Help:How do i check if a directory exists and display that it doesn’t using bash? I’m trying to check if the directory with the string name “$checkdirectory” exists, then display a message that it doesn’t if it doesn’t. Can someone help me with this? I’m very new to bash and was using another program as a reference/learning program but I’m not sure how I would do this. Answer: if [ -d $checkdirectory ]; then echo “Error: Read Full Article (Click here)...

Categories : Scripts Unix Tags : ,

Crontab – Quick & Complete reference Setting up cronjobs in Unix and Linux.

Posted by Jiltin     Tags: , , , 16 August, 2009    7,304 views    (8) Comment

What is crontab? cron is a unix, solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs in unix , solaris. Crontab (CRON TABle) is a file which contains the schedule of cron entries to be run and at specified times. Crontab Restrictions You can execute crontab if your name appears in the file /usr/lib/cron/cron.allow. If that file does not exist, you can use crontab if your name does not Read Full Article (Click here)...

Categories : Scripts Unix Tags : , , ,

A-Z Index of the Bash command line for Linux

Posted by Jiltin     Tags: , 26 May, 2009    1,834 views    (1) Comment

Bash is a free software Unix shell written for the GNU Project. Its name is an acronym which stands for Bourne-again shell.Bash is the default shell on most systems built on top of the Linux kernel. Here are A-Z Index of the Bash command line for Linux. alias Create an alias apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian) aspell Spell Checker awk Find and Replace text, database sort/validate/index b Read Full Article (Click here)...

Categories : Scripts Unix Tags : ,

Linux / Unix / Bash Functions: How do I set the BASH functions in .bashrc and use it after login?

Posted by Jiltin     Tags: , 8 May, 2009    951 views    (0) Comment

When you repeatedly use some kind of function calls in bash, it is better to set it in .bashrc and use it like bash commands. I have edited the .bashrc and added the following functions which I use often. You can copy and make your own functions. This is just a find plug-ins command. I have kept many plug-ins in this directory /home/useradmin/work/plugins/ and would like to get the complete path (from anywhere I am) in Linux. fpl () { ll /home/useradmin/work/plugins/ ‘ Read Full Article (Click here)...

Categories : Scripts Unix Tags : ,