have a PHP application developed and running on LAMP. I have APC installed on the server. APC is a free, open, and robust framework for caching and optimizing PHP intermediate code. The APC based caching is good for my web site, but my cron jobs and php cli scripts fail to
fetch correct data due to caching. How do I disable APC module at the command line (php-cli) under Linux or Unix like operating systems for all my cron jobs?
I‘m using Debian Linux as my development workstation. I would like to search a directory called ~/projects/ recursively for “foo” word only for *.txt files. How do I search all text files in ~/projects/ for “foo” word using grep command?
I would like to search and find all files which contain a word called “main()” for all directories located in $HOME/project/school. How do I use the grep command to find text including all subdirs under Unix or Linux operating systems?
I got over 100s of HTML files in the following format:
my data 1
my data 2
my data 3
my data 10000
my data N times
How do I extract text between two words (<PRE> and </PRE>) in unix or linux using grep command?
How do I find out out details about my FreeBSD based Laptop battery status and other information from command prompt? Howto do I check battery charge status at shell prompt?
How do I see a list of all exported variables and functions under Unix bash shell?