LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2006, 06:41 PM   #1
jagster936
LQ Newbie
 
Registered: May 2006
Posts: 21

Rep: Reputation: 15
Running File in Its Own Command Window


I know this is a really dumb question hehe but how do you open a program in linux in its own command window...like you can navigate around and still use it in different directories. I don't know how to do this. I.E. i can only execute aircrack-ng like say in the /usr/bin or wherever it puts it. If you open a program from start menu then you can go to any directory and execute and it will put its output files there,etc.

I know its the same with windows programs that open in a cmd window but you can go to any directory to run them..not sure what this is called but how do you do this in linux?

Any ideas? Thanks
 
Old 05-18-2006, 07:33 PM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
lots of applications in Linux work this way. If you naviget to say your ~/documents/ directory and launch kwrite from a terminal to create a new file it will save in that directory.

This is true with most applications that don't have a saved document path in the prefs...

KC
 
Old 05-18-2006, 07:38 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
I had a monster reply typed but stupid "alpha quality" Firefox decided to poop out on me. Anyway, short version the way I understood the question. There may be multiple interpretations thanks to the wording or lack of.

Run the program in the same terminal and have it still useable:
Code:
/usr/bin/aircrack-ng &
Sameas above but dump all that annoying output to a file rather than have it in your terminal:
Code:
/usr/bin/aircrack-ng &>~/aircrack-output.txt &
and truly in a new window:
Code:
xterm -e /usr/bin/aircrack-ng
 
Old 05-19-2006, 09:12 AM   #4
jagster936
LQ Newbie
 
Registered: May 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Awesome, well turns out it was put in system folder (as in windows) type thing and it runs from anywhere :P. But i guess that works for making it into a specific one. Is there any way to install to a specified folder like in windows? some sort of switch in make or something?
 
Old 05-19-2006, 08:00 PM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Yes there is but why? Linux works fine the way everything currently is, why try and change it?
Code:
./configure --prefix=/home/`id -un`/usr
make
make install
 
Old 05-20-2006, 01:27 AM   #6
jagster936
LQ Newbie
 
Registered: May 2006
Posts: 21

Original Poster
Rep: Reputation: 15
haha i don't know i don't understand it enough even to interpret anything from that but thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lack of file name after running 'ls - l' command jim656 Linux - Networking 1 02-15-2006 09:20 AM
Reading a file and running a command for each line. mijohnst Linux - General 11 08-22-2005 07:18 PM
Running X-WINDOW remotely consistgd Linux - Software 8 11-12-2004 05:45 AM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 12:16 PM
Running another X window manager mhl Linux - Newbie 4 09-08-2003 05:31 PM


All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration