Archive for the ‘Unix/Linux’ Category

Linux- Recursively change permissions on files or directories only

Thursday, March 25, 2010 22:33 No Comments

If you wondered how to change permissions recursively on files or folders only, here is the how to using the find command. Change permissions recursively to directories only: find /path/to/folder    -type d    -exec  chmod 0755   {}   \; Change permissions recursively to files only: find /path/to/folder    -type f    -exec  chmod [...]

This was posted under category: Unix/Linux Tags: , , , , , , ,

Apache .htaccess – Allow / Deny access from certain IPs

Tuesday, March 2, 2010 0:02 No Comments

If  your website is under contruction and you want to allow access just to certain IP numbers, placing the following code in the .htaccess  file, in the website root directory, you can block access to everyone except the IP numbers you specify. order deny,allow deny from all allow from 76.33.193.98 allow from 84.23.122.204 allow from 93.34.133.203 [...]

This was posted under category: Unix/Linux, Web Tags: , , , , , ,

WGET – FTP Download a directory recursively

Monday, October 26, 2009 0:09 No Comments

We often need to download a directory from a ftp server to a local computer. You can do this using wget and its -r parameter.  The command would be: wget -l 30 -r ftp://user:pass@host/some_directory/ -l  sets the level depth. default value is 5 layers. i put 30 to be sure wget gets the whole tree

This was posted under category: Unix/Linux Tags: , , , ,

Linux/Unix File & Folder Permissions

Tuesday, December 2, 2008 18:04 No Comments

File and Folder permissions on *unix like systems.

This was posted under category: Unix/Linux Tags: , , , , , , , , , , , , , , ,

Vi editor – Commands

Sunday, November 23, 2008 8:15 No Comments

Vi is a Unix/Linux terminal based text editor. Despite its overhelming features it is still popular among Unix administrators. I’ll mention some of the most used commands.

This was posted under category: Unix/Linux Tags: , , , , , , , , , , , ,