Find Files By Modification Date

Quite often, I find myself in a situation where I need to figure out which files on my Web server were modified recently. For instance, when I make updates to the development version of my Web site and decide I’m ready to copy those changes over to the production site, I need to find out for sure which files I modified.

This is actually a very simple process when using a *nix-based Web server, assuming you have secure shell (SSH) access. Obviously, these instructions apply to any *nix-based operating system (I’m assuming they also work on Mac, but have not tested), not just Web servers.

To do so, we’ll use the “find” shell command. Find is a pretty powerful and universal search command for Linux/Unix.

Batch Rename Files in *nix

Every once in a while, you may find yourself in a situation where you need to rename a whole batch of files on your Web server. In my case, I find this especially useful when someone provides me with a folder full of friendly-named files (files that contain spaces, special characters, etc.) and I want to make them a little more Web-friendly. On Linux and Unix-based computers, it’s really simple to do this from the command line. To do so, simply use a command similar to the following:

Managing User Permissions on Unix

I am basically posting this here as a reference for myself, but I’m sure the information will be helpful to other people out there, as well.

Occasionally, when working on my Web server, I need to create a new user on the server and grant one or more other users permission to view and edit files within the new user’s home directory. This task, in itself, does not seem all that difficult on the surface. However, because most Unix servers are set up (and rightfully so, for security purposes) not to allow most users to navigate outside of their own home directories, it becomes a problem.

Let’s say, for example, that you have two users on your Web server that you want to allow permissions to view and edit each other’s home directories, but you don’t want them to have access to any other files and folders on the Web server.