Unix questions - Please tell me what this command mean on chmod?

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > October 2004 > Please tell me what this command mean on chmod?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Please tell me what this command mean on chmod?
michael.mondala@ihomeowner.com

2004-10-28, 5:51 pm

I am new to this. I am following instructions on setting up a program
on unix. Can you please tell me what this mean:
> chmod 777 .


What is the period? Thank you.

Juha Laiho

2004-10-28, 5:51 pm

michael.mondala@ihomeowner.com said:
>I am new to this. I am following instructions on setting up a program
>on unix. Can you please tell me what this mean:
>
>What is the period? Thank you.


The current working directory.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Ed Morton

2004-10-28, 5:51 pm



michael.mondala@ihomeowner.com wrote:

> I am new to this. I am following instructions on setting up a program
> on unix. Can you please tell me what this mean:
>
>
>
> What is the period? Thank you.


All UNIX commands have manual pages. Use "man chmod" on your UNIX system
to see them, or take a look at this web page:
http://www.rt.com/man/chmod.1.html

Ed.
John Gordon

2004-10-28, 5:51 pm

In <1098979217.011284.46880@f14g2000cwb.googlegroups.com> michael.mondala@ihomeowner.com writes:

> I am new to this. I am following instructions on setting up a program
> on unix. Can you please tell me what this mean:
[vbcol=seagreen]
> What is the period? Thank you.


The current directory. And the parent directory is two periods (..)

--
John Gordon "Between BST melee, their spells, their warders' melee,
gordon@panix.com and their warders' procs, they put out enough damage
to make monks cry." -- Dark Tyger


michael.mondala@ihomeowner.com

2004-10-28, 5:51 pm

So does the ( . ) changes the permissions on the files and directories
in the directory its in? Or does it only change the directory?

jpd

2004-10-28, 5:51 pm

On 2004-10-28, michael.mondala@ihomeowner.com
<michael.mondala@ihomeowner.com> wrote:
> So does the ( . ) changes the permissions on the files and directories
> in the directory its in? Or does it only change the directory?


Does

chmod 777 directory

changes the permissions on the files and directories in the directory
its in? Or does it only change the directory?


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
Steve Graegert

2004-10-29, 2:48 am

michael.mondala@ihomeowner.com wrote:

> So does the ( . ) changes the permissions on the files and directories
> in the directory its in? Or does it only change the directory?


Yes it will change the permissions of the directory you are currently
in. The dot will always reference the _current_ directory as with the cd
command, the chmod command or all the other commands.

\Steve
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com