On Sun, March 20, 2005 10:13 pm, Roger Searle said:
> What's wrong with this command?
>
> SuSEbox:/windows # rm /windows/g
> rm: cannot remove `/windows/g': Is a directory

ahh yes, small slip there, the command to delete a dir is rmdir not rm




>
> ...yet I could then delete it from within File Manager (Super User Mode).
>
> Roger
>
>
>
> Nick Rout wrote:
>
>>On Sun, March 20, 2005 8:42 pm, Roger Searle said:
>>
>>
>>>I have some partitions newly mounted in /windows - /windows/G and
>>>/windows/H - folders I created myself.  I am browsing the partitions
>>>mounted there as I would expect to be able to.
>>>
>>>I notice that all the previously created folders in /windows have a
>>>"clone folder" with the lowercase letter - /windows/C has /windows/c
>>>etc.   So I used mkdir to create /windows/G and /windows/H, then tried
>>>to create the links but realise I don't really know what I'm doing.
>>>
>>>SuSEbox:/windows # dir
>>>total 96
>>>drwxr-xr-x  10 root root   4096 2005-03-20 19:46 .
>>>drwxr-xr-x  24 root root   4096 2005-03-20 19:44 ..
>>>lrwxrwxrwx   1 root root      1 2004-08-31 07:52 c -> C
>>>dr-xr-xr-x   1 root users  4096 2005-03-20 08:02 C
>>>lrwxrwxrwx   1 root root      1 2004-08-31 07:52 d -> D
>>>drwxrwxr-x  28 root users 16384 1970-01-01 12:00 D
>>>lrwxrwxrwx   1 root root      1 2004-08-31 07:52 e -> E
>>>dr-xr-xr-x   1 root users 12288 2005-03-20 08:02 E
>>>lrwxrwxrwx   1 root root      1 2004-08-31 07:52 f -> F
>>>drwxrwxr-x   6 root users 16384 1970-01-01 12:00 F
>>>drwxr-xr-x   2 root root   4096 2005-03-20 19:49 g
>>>drwxrwxr-x  13 root users 16384 1970-01-01 12:00 G
>>>drwxr-xr-x   2 root root   4096 2005-03-20 19:50 h
>>>drwxrwxr-x   5 root users 16384 1970-01-01 12:00 H
>>>
>>>
>>>Colour coding for the link info is green for the lowercase directory,
>>>blue for the others.   I partially understand what this is showing me.
>>>The folders I created are directories (drwxrwxr-x) rather than links
>>>(lrwxr-xr-x).  The permissions on the folders I created are wrong -
>>>following the example above I need to end up with rwxrwxr-x.  I
>>>understand this terminology and that this is the same as 775.
>>>
>>>The links I created aren't right.  For the ones already there (c -> C, d
>>>-> D etc) clicking c in Konqueror shows the contents of C.  But if I
>>>click g I don't see the contents of G, I see G itself.  The command I
>>>had used was ln -s /windows/G /windows/g
>>>
>>>So my questions...
>>>
>>>Do I even need these lowercase folder links?
>>>
>>>
>>
>>only if you want to. I wouldn't bother, its up to you.
>>
>>
>>
>>> How do I delete these
>>>links given I have not created them correctly
>>>
>>>
>>
>>
>>rm /windows/g
>>
>>
>>
>>>- is simply deleting the
>>>link folder the way to do it?  How do I create these linked folders
>>>correctly (if I need them at all)?
>>>
>>>
>>
>>ln -sf /windows/G /windows/g
>>
>>
>>
>>>How do I assign the correct
>>>permissions once they have been created?
>>>
>>>
>>
>>you don't need to, its the ownerships and permissions of the real folder
>>that matter.
>>
>>
>>
>>> The man page for chmod says
>>>symbolic link permissions is not changed by chmod.
>>>
>>>Roger
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
>


Reply via email to