496
edits
Line 45: | Line 45: | ||
There are lots of special characters in unix. You've seen two already, / for the root directory, and ~ for your home directory. Another one is simply '.'. What a fullstop represents is your current directory. You might not think this is useful, but it is, especially in commands like cp and mv for example, where you are copying or moving stuff into your current directory. It can also be expressed as ./, but they both mean the same thing. | There are lots of special characters in unix. You've seen two already, / for the root directory, and ~ for your home directory. Another one is simply '.'. What a fullstop represents is your current directory. You might not think this is useful, but it is, especially in commands like cp and mv for example, where you are copying or moving stuff into your current directory. It can also be expressed as ./, but they both mean the same thing. | ||
Then there's what's known as your parent directory, the one just before your own. In the example, if you were in the folder | Then there's what's known as your parent directory, the one just before your own. In the example, if you were in the folder: | ||
/usr/local/bin | /usr/local/bin | ||
then your parent folder would be | then your parent folder would be: | ||
/usr/local | /usr/local |
edits