496
edits
No edit summary |
|||
Line 9: | Line 9: | ||
== Directory Structure in Unix == | == Directory Structure in Unix == | ||
=== The root directory === | |||
Every file on Redbrick has what's known as a path. Basically, it's the location of the file on the system. It's sort of like a Windows/DOS machine... for example, on a Windows/DOS machine, an example would be | Every file on Redbrick has what's known as a path. Basically, it's the location of the file on the system. It's sort of like a Windows/DOS machine... for example, on a Windows/DOS machine, an example would be | ||
Line 23: | Line 23: | ||
cd / | cd / | ||
=== Your home directory === | |||
Your home directory is where you store all your files. On Redbrick, your home directory is | Your home directory is where you store all your files. On Redbrick, your home directory is | ||
Line 41: | Line 41: | ||
cd ~ | cd ~ | ||
=== Your current/parent directory === | |||
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. |
edits