Today's (7 July 2007) Date

Gerald Thurman nanofoo at gmail.com
Sat Jul 7 11:47:39 MST 2007


Hello...

If we forget about the lessons of Y2K, today's date in the MM/DD/YY
format is 07/07/07.  The date reminded me that 777 (octal) are the
default permissions assigned to newly created Unix directories.
These default permissions worked well in the early days of Unix,
but today they are usually morphed by SysAdmins to be more
restrictive.  Anyfoo... having fun with the bash command-line.

$ mkdir foo
$ ls -l
drwx------    2 gdt      users        4096 Jul  7 11:34 foo

$ chmod $(date '+%1m%1d%1y') foo
$ ls -l
drwxrwxrwx    2 gdt      users        4096 Jul  7 11:35 foo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20070707/68112fbc/attachment.htm 


More information about the PLUG-discuss mailing list