Unix Intro: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 11: Line 11:
=== The root directory ===
=== 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. The format in Unix is a little different to Windows, for example, on a Windows/DOS machine, an example would be:


  c:\projects\essay\essay.txt
  c:\projects\essay\essay.txt


while on a unix machine like Redbrick this could be:
while on a Unix system like Redbrick this could be:


  /home/member/bubble/project/essay/essay.txt
  /home/member/bubble/project/essay/essay.txt


The difference here is that you don't actually specify drive letters. Everything begins at the root folder, which is denoted by a forwardslash (/). Everything then goes from that, with each subfolder being seperated by another /, but don't get confused by the two. One last thing on this topic, you can change to the root folder by typing:
The difference here is that you don't actually specify drive letters. Everything begins at the root folder, which is denoted by a forwardslash (/). Everything then goes from that, with each subfolder being separated by another /, but don't get confused by the two. One last thing on this topic, you can change to the root folder by typing:


  cd /
  cd /
496

edits

Navigation menu