renaming directory's in SSH

uk_joker2003

Verified User
Joined
Jan 3, 2004
Messages
31
Location
UK
Hi,

Could anyone tell me how to rename a directory in ssh?

Thanks in advance
 
And if you want more basic help with shell commands check the server checklist link in my sig.... a section dedicated to shell software, using shell and basic shell commands :)

I am also considering putting up a beginners guide to SSH on the forums for beginners :)

Chris
 
chris and everyone else,

Thanks for your help. I feel very silly asking such stupid questions but it's good to recieve such help...
 
sorry for asking again.

I have looked through the links given but couldnt find any info about deleting directorys.

I have tried

dele
del
delete
rmd

i trying to get me squirrelmail working i have created a few renamed directiores and would like to remove them.

Thanks in advance

Phil
 
to remove anything can be done using the 'rm' command.

rm -rf /directory

flags used in the above:

r - recurrsive
f - force

you can also use:

rm -r /directory

although you will be asked to confirm each file to be deleted manually (press y for each file)

removing files is basically the same without the need for the 'r' flag

rm -f file

will automatically remove a file

rm file

will request you to confirm that the file is being removed.

Chris
 
thanks i had just worked that out.. I really appreicate all the help. It's really nice to feel that people with little experience are helped here.

I have taken over a deciated server and am on a VERY steep learning curve....
 
Back
Top