using the shell

Post Reply
nethic
Newby Cowboy
Posts: 32
Joined: Wed Sep 22, 2004 8:22 pm
Location: in your room
Contact:

using the shell

Post by nethic » Wed Sep 22, 2004 10:49 pm

well i finaly got it . but i need help on the shell commands like how to run things and basicaly compile stuff like i know gcc and tar but i don't know how to use a exe or a program threw shell it's deffinatly not like dos and i need some help guys so if ya can please post back ty :)

stealth
Junior Cowboy
Posts: 59
Joined: Tue Sep 21, 2004 12:05 am

Post by stealth » Wed Sep 22, 2004 11:04 pm

To execute a file you have 2 options depend on what directory you are in.

1. If you are currently in the same directory as the executable simply do "./game" without the "".

eg. user@host$ ./game

where 'game' is the file you want to run. The ./ simply means "current directory". So if you wanted to run a file in the parent directory to the dir you are currently in use "../game"

2. To run a file in a dir that you aren't in use the following format.

eg user@host$ /usr/whatever/game

Where /usr/whatever/game is that path to where the executable file is.

Hope that helps. Also check out the chmod man page to see how to set/unset files as executable.
^c exit

Post Reply