remove files unix
Aug0
if the delete in your ftp client doesnt work and you appear to have a bunch of empty folders that cant be deleted
rm
This command will remove (destroy) a file. You should enter this command with the -i option, so that you’ll be asked to confirm each file deletion. To remove a file named junk, enter:
rm -i junk
Note: Using rm will remove a file permanently, so be sure you really want to delete a file before you use rm.
To remove a non-empty subdirectory, rm accepts the -r option. On most systems this will prompt you to confirm the removal of each file. This behavior can be prevented by adding the -f option. To remove an entire subdirectory named oldstuff and all of its contents, enter:
rm -rf oldstuff
Note: Using this command will cause rm to descend into each subdirectory within the specified subdirectory and remove all files without prompting you. Use this command with caution, as it is very easy to accidently delete important files. As a precaution, use the ls command to list the files within the subdirectory you wish to remove. To browse through a subdirectory named oldstuff, enter:
ls -R oldstuff | less
Disable mysql 5.0 “data Integrity” strict tables
May0
Myql 5.0 integrates server side “data integrity checks” by default
if your code worked for myql 4 and now your getting messages telling you that ” isnt an integer for a new record auto inc key this may be your problem.
to fix i changed the following in my mysql.ini and restarted and everything worked tip top again
# Set the SQL mode to strict
#sql-mode=”STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”
sql-mode=”NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”
.htaccess redirect all http://www.domain to http://domain
Apr0
RewriteEngine On
rewritecond %{http_host} www.missoulacountryclub.com [nc]
rewriterule ^(.*)$ http://missoulacountryclub.com/$1 [r=301,nc]
mysql data directory on windows
Mar0
for some reason i cant see the programdata folder on windows vista
i have to type the path in the address bar
thanks windows!
datadir=”C:/ProgramData/MySQL/MySQL Server 5.1/Data/”
how to forward an aliased domain
Feb0
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} cindyjimmerson.com$
RewriteRule ^(.*)$ http://leanhealthcarewest.com/$1 [R=301,L]
stop start restart apache plesk fedora core 8
Feb0
go to /etc/httpd
httpd -k start
httpd -k restart
httpd -k stop
How to find a file in unix / linux
Feb0
this will search the entire file structure for the file httpd.include
find / -name “httpd.include” -print