LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   linux sign (https://www.linuxquestions.org/questions/linux-software-2/linux-sign-61492/)

eye 05-24-2003 12:46 AM

linux sign
 
of out "rm -rf ~/.mozilla" ..........
what do" ~/."sign stand for???

MasterC 05-24-2003 12:58 AM

~/ = The current user's home directory, for example if you are user "jed" then it's likely:
/home/jed
If you are user root, it's likely:
/root

And . means a hidden file/directory

Cool

slakmagik 05-24-2003 03:07 AM

Just to add to that, the shell expands '~' to /home/user and '/' indicates a directory when it isn't just the 'root' of the file system. And '.' means the file is 'hidden' even if you can see it - most file managers and such seem to default to showing the files so it might not make much sense to call them 'hidden' when you can see them all over the place, but they are.

Which is pretty much what MasterC said, except that you can type 'cd ~' to cd to home without the '/' - those are separable components. (You can type 'cd', too, but y'know...)

So anyway:
Code:

/home/user  path separator  hidden  file
~            /                .        mozilla


allo 05-24-2003 09:20 AM

home
 
quote :
Just to add to that, the shell expands '~' to /home/use
end quote

Not necessary : "~" means your home directory root ($HOME env. variable )

Regards


All times are GMT -5. The time now is 04:15 PM.