[Ilugc] how to run a software from terminal

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Thu Mar 25 21:54:56 2010

I had a doubt about how to run a software from terminal itself.

You can run any program from the (Console/GUI) terminal. If that
program needs X then you should run it from GUI terminal.

When a program name entered @ prompt, then shell search for that
program in the pre-defined PATH (echo $PATH) and run it. If it is
not in the PATH, then shell show "command not found" message.

To run a program, which is not in the PATH, go the program folder
(cd /usr/local/mydir) and run (./prgName) or give the full path
/usr/local/mydir/prgName.

To run it like any other commands, add this folder to the PATH
(export PATH=$PATH:/usr/local/mydir). To know more about PATH, read
man bash.

Bye :)
-- 
Bharathi S

Other related posts: