LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-16-2005, 02:21 PM   #1
neuropulse
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
How To Run Program From Command Line?


Greetings,

I am new to using the command line. What do I type to run a program? I have navigated to the program's directory on a CD.

Thanks
 
Old 04-16-2005, 02:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
If the program is in a directory your PATH variable then just type it's name. To launch another program use the full path - ie /path/to/program or cd to the directory and run ./program
 
Old 04-16-2005, 06:46 PM   #3
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Rep: Reputation: 30
Top 10 tips for the Linux command line:
(email this to ten friends!)

If you don't know about "foo", type:

10 "info foo"
or
9 "man foo"

if you can't find "foo", type:

8 "locate -i foo"
or
7 "whereis foo"

if you want to view "foo":

6 "less foo"
or
5 "emacs foo"

4 just about any program, when you type it's name and "-h" or "--help" will print out a usage message.

3 to navigate "down" into a directory named foo, type "cd ./foo"

2 to navigate "up" into any higher directory, type "cd ../"

1 to see what's in the directory that you're in, type "ls"

and bonus rule 0: read everything readable in your system. You practically have a library at your fingertips!

Last edited by Hosiah; 04-16-2005 at 06:49 PM.
 
  


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
how can I run a command on each line of a file eantoranz Programming 6 06-02-2005 03:00 PM
What can/can't run from the command line? redhat beginer Red Hat 4 04-20-2005 11:26 AM
How to run XF86Config from command line Pacemaker Red Hat 2 04-03-2004 05:41 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 09:19 AM
C program code to run a Linux command line Linh Programming 10 06-11-2003 02:59 PM


All times are GMT -5. The time now is 01:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration