NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Some Linux questions
New Posts  All Forums:Forum Nav:

Some Linux questions

post #1 of 2
Thread Starter 
Ok I have been using Linux now just about 80% of time. I been playing Alien Arena quite a bit and have been having fun with it. I got some questions that I am sure you all will be able to answer;

1) To run AlienArena 2007, I go into the console and get into the directory where AlienArena is at and I type the following "./AlienArena2007". What exactly is "./" mean in linux? In the old dos days I will do a dir *.exe look at the exe files and pick one and type it and away it goes.

2) I know how to change directories within the drive I am in for example, I type cd /etc to take me to the etc directory and so forth. If I want to go to a different hard drive or another partition within the same hard drive, whats the best way of doing it within the terminal? Right now I just use the GUI and click my way through.

Thanks for all of the help guys and you all have been making my transition from Windows to Linux much easier. I do appreciate all the great help you all give. Thanks
post #2 of 2
Quote:
Originally Posted by martinje
Ok I have been using Linux now just about 80% of time. I been playing Alien Arena quite a bit and have been having fun with it. I got some questions that I am sure you all will be able to answer;

1) To run AlienArena 2007, I go into the console and get into the directory where AlienArena is at and I type the following "./AlienArena2007". What exactly is "./" mean in linux? In the old dos days I will do a dir *.exe look at the exe files and pick one and type it and away it goes.

. is the current directory. .. is one directory up. Directories are separated by forward slashes. So ./foo means "foo in the current directory".

Quote:
Originally Posted by martinje
2) I know how to change directories within the drive I am in for example, I type cd /etc to take me to the etc directory and so forth. If I want to go to a different hard drive or another partition within the same hard drive, whats the best way of doing it within the terminal? Right now I just use the GUI and click my way through.

Unlike DOS and Windows, which have one filesystem per partition, Unix (and thus Linux) have everything in one filesystem, starting at /

Other partitions are mounted at some place under /

For example, in my case the fourth partition on my laptop internal drive, which Linux calls /dev/sda4, is mounted as / (root). /dev/sda6 is mounted as /swap. /dev/sda2 is mounted as /Windows and /dev/sda1 is mounted as /media/delldiag

You can find out how this is set up on your machine - type

Code:
mount -l

If you are using Ubuntu then you will have an item on your taskbar that takes you to various places like your home directory. One of those places should be 'media' which takes you to the other partitions. Clicking though is a fine way to navigate. its useful to know how to do it from the command line too.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux & Other OS's
NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Some Linux questions