Hey everyone,
I am fairly new to programming and Unix but i have a problem that is buggin me a bit. When I open up the terminal (I actually use iTerm, but I don't think there is much difference) I cd into the directory I will be working in. When I compile the executable gets put into the current directory (good) but when I run, my output data file gets put in my home directory (bad). This is very annoying and I can't figure out why it is doing this.
Also, can I make aliases to get me to my frequently used directories. All those cd <directory> commands are annoying. Thanks a lot everyone.
I am fairly new to programming and Unix but i have a problem that is buggin me a bit. When I open up the terminal (I actually use iTerm, but I don't think there is much difference) I cd into the directory I will be working in. When I compile the executable gets put into the current directory (good) but when I run, my output data file gets put in my home directory (bad). This is very annoying and I can't figure out why it is doing this.
Also, can I make aliases to get me to my frequently used directories. All those cd <directory> commands are annoying. Thanks a lot everyone.