Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-16-2005, 01:21 PM   #1
LQ Newbie
Registered: Apr 2005
Posts: 8

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


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.

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

Rep: Reputation: 66
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, 05:46 PM   #3
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"
9 "man foo"

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

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

if you want to view "foo":

6 "less foo"
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 05:49 PM.


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

All times are GMT -5. The time now is 09:58 AM.

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