Middlebury

Difference between revisions of "Unix Conventions"

Line 1: Line 1:
[[Category:Helpdesk]]
+
<br>
[[Category:Applications and OS]]
 
[[Category:NIX]]
 
[[Category:Command Line]]
 
  
 +
<br> This applies to Macs, Linux and Unix.
 +
<pre>~/Desktop
 +
</pre>
 +
Q: So what does ~/Desktop mean!?
  
 +
A: The tilde "~" is a short way of saying "the user's home folder". Hence, ~/Desktop means the user's OWN desktop. Similarly, ~/Library would mean the user's OWN Library.
  
This applies to Macs, Linux and Unix.
+
Q: So what is this "Library" you talk about?
  
<pre>
+
A: Well, at least on Macs, the library is the place where all of the user's settings are stored. It's kind of like the registry in Windows, but better (long story).
~/Desktop
 
</pre>
 
Q: So what does ~/Desktop mean!?
 
  
A: The tilde "~" is a short way of saying "the user's home folder". Hence, ~/Desktop means the user's OWN desktop. Similarly, ~/Library would mean the user's OWN Library.
+
Q: What do all the slashes mean, "/" and "\"&nbsp;?
  
Q: So what is this "Library" you talk about?
+
A: On Unix/Linux/Mac the forward slash "/" designates a folder (a directory). On Windows, the backslash "\" designates a folder. So, in Windows, to write down where a folder is, you would use this notation:
 +
<pre>C:\Documents and Settings\username\My Documents\My Folder</pre>
 +
On Unix/Linux/Mac (I'll call them NIX from now, so when I write NIX, I mean Unix/Linux/Mac), you can write down where a folder is using this notation:
 +
<pre>/Users/username/Documents/My Folder</pre>
 +
As you may have noticed, the "main" drive in Windows tends to be C:\ -- in NIX, the main drive is just "/" -- So you're thinking "Well, doesn't the forward slash designate a folder". Yup, it does, and when it's in the beginning (like in the example above), or when it's written on its own, it refers to the MAIN folder (also called ROOT folder). The equivalent of the "main" or "root" folder in Windows is C:\
  
A: Well, at least on Macs, the library is the place where all of the user's settings are stored. It's kind of like the registry in Windows, but better (long story).
+
Q: So when you say the ROOT of the drive, what do you mean?
  
Q: What do all the slashes mean, "/" and "\" ?
+
A: I'm referring to the main disk/drive itself. In windows, the root drive is C:\, in NIX we just call it "/"  
  
A: On Unix/Linux/Mac the forward slash "/" designates a folder (a directory). On Windows, the backslash "\" designates a folder. So, in Windows, to write down where a folder is, you would use this notation:
+
[[Category:Helpdesk]] [[Category:Applications_and_OS]] [[Category:UNIX]] [[Category:Command_Line]]
<pre>C:\Documents and Settings\username\My Documents\My Folder</pre>
 
 
 
On Unix/Linux/Mac (I'll call them NIX from now, so when I write NIX, I mean Unix/Linux/Mac), you can write down where a folder is using this notation:
 
<pre>/Users/username/Documents/My Folder</pre>
 
 
 
As you may have noticed, the "main" drive in Windows tends to be C:\ -- in NIX, the main drive is just "/" -- So you're thinking "Well, doesn't the forward slash designate a folder". Yup, it does, and when it's in the beginning (like in the example above), or when it's written on its own, it refers to the MAIN folder (also called ROOT folder). The equivalent of the "main" or "root" folder in Windows is C:\
 
 
 
Q: So when you say the ROOT of the drive, what do you mean?
 
 
 
A: I'm referring to the main disk/drive itself. In windows, the root drive is C:\, in NIX we just call it "/"
 

Revision as of 22:52, 27 February 2009



This applies to Macs, Linux and Unix.

~/Desktop

Q: So what does ~/Desktop mean!?

A: The tilde "~" is a short way of saying "the user's home folder". Hence, ~/Desktop means the user's OWN desktop. Similarly, ~/Library would mean the user's OWN Library.

Q: So what is this "Library" you talk about?

A: Well, at least on Macs, the library is the place where all of the user's settings are stored. It's kind of like the registry in Windows, but better (long story).

Q: What do all the slashes mean, "/" and "\" ?

A: On Unix/Linux/Mac the forward slash "/" designates a folder (a directory). On Windows, the backslash "\" designates a folder. So, in Windows, to write down where a folder is, you would use this notation:

C:\Documents and Settings\username\My Documents\My Folder

On Unix/Linux/Mac (I'll call them NIX from now, so when I write NIX, I mean Unix/Linux/Mac), you can write down where a folder is using this notation:

/Users/username/Documents/My Folder

As you may have noticed, the "main" drive in Windows tends to be C:\ -- in NIX, the main drive is just "/" -- So you're thinking "Well, doesn't the forward slash designate a folder". Yup, it does, and when it's in the beginning (like in the example above), or when it's written on its own, it refers to the MAIN folder (also called ROOT folder). The equivalent of the "main" or "root" folder in Windows is C:\

Q: So when you say the ROOT of the drive, what do you mean?

A: I'm referring to the main disk/drive itself. In windows, the root drive is C:\, in NIX we just call it "/"