Archive for the ‘Unix’ Category

I learned something new

Friday, May 28th, 2010

I’ve recently encountered a disk space issue in FreeBSD and thought it’s a normal disk space problem. But then again, I’m wrong.

Even if the file has been moved to another location, whenever I checked for utilization, I’d get the same percentage.

The thing is, the file I moved is active and is used by one of the services. Anyway, to avoid having the same issue of not decreasing disk space, service running must be stopped to unlock the partition and refresh its contents. Then do the ‘move’ of files.

MySQL default directory for FreeBSD and Linux

Tuesday, May 18th, 2010

Just learned something interesting.

That the default directory for MySQL installed in FreeBSD is /var/db/mysql and for Linux it’s in /var/lib/mysql.

Understanding ‘chmod’ more

Monday, July 6th, 2009

There are 3 attributes that are also called modes. Read, Write and eXecute.

To better understand where on earth does chmod 777 come from, I’m writing this simple post.

The 3 digits, 777 came from rwx, rwx, rwx which stands for the privileges of owner, group and others respectively.

Now, how come rwx is equivalent to 7?

It’s because r=4, w=2, x=1 (I suppose that’s the simplest way to put it).

So, if we are to do chmod 755, this means, rwxr-xr-x

and chmod 765 means rwxrw-r-x