remove files unix

24
Aug
0

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

Filed under: Uncategorized

Disable mysql 5.0 “data Integrity” strict tables

3
May
0

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”

Tagged as:

.htaccess redirect all http://www.domain to http://domain

30
Apr
0

RewriteEngine On
rewritecond %{http_host} www.missoulacountryclub.com [nc]
rewriterule ^(.*)$ http://missoulacountryclub.com/$1 [r=301,nc]

Filed under: Uncategorized

.htacess modwest

30
Apr
0

how to make .html run like .php
AddHandler cgi-script .html

Filed under: Uncategorized

mysql data directory on windows

3
Mar
0

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/”

Filed under: Uncategorized

how to forward an aliased domain

23
Feb
0

RewriteEngine on
Options +FollowSymlinks

RewriteCond %{HTTP_HOST} cindyjimmerson.com$
RewriteRule ^(.*)$ http://leanhealthcarewest.com/$1 [R=301,L]

Filed under: Uncategorized

stop start restart apache plesk fedora core 8

23
Feb
0

go to /etc/httpd

httpd -k start

httpd -k restart

httpd -k stop

Filed under: Uncategorized

How to find a file in unix / linux

23
Feb
0

this will search the entire file structure for the file httpd.include
find / -name “httpd.include” -print

Filed under: Uncategorized

find out if you have a 64 or 32 bit processor on linux / unix

18
Feb
0

uname -i

Filed under: Uncategorized

unix / linux list top 50 biggest directories in /var

17
Feb
0

du -a /var | sort -n -r | head -n 50

Filed under: Uncategorized