You are not logged in.

#1 2013-05-15 06:54:22

mcool4151
Member
Registered: 2013-05-09
Posts: 37

[SOLVED]Execution problem

first I wrote a C program that prints hello on screen, I compiled it and named it as hello

when I type hello, It says invalid command hello

here's the command which I typed

>ls
Arch-Linux-2013.jpg.png                  hello    lightning.png
archlinux-logo-dark-1200dpi.b42bd35d5916.png  hello.c
> hello
hello: Command not found.
>

M using tcsh and I tried the same commands in bash...

please help me.... M nooob and linux and I need a beginners guide that shows how to use Linux and its commands.....
please.....

Last edited by mcool4151 (2013-05-15 07:08:46)

Offline

#2 2013-05-15 07:00:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]Execution problem

typing a command like that runs things that are in your $PATH. To run something in the current dir, you need to do ./<command>

Offline

#3 2013-05-15 07:08:23

mcool4151
Member
Registered: 2013-05-09
Posts: 37

Re: [SOLVED]Execution problem

Thank you very much....
But can you recommend me some Linux guides from beginners to experts...????

Offline

#4 2013-05-15 07:27:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]Execution problem

There is a lot of general information here: http://www.tldp.org/guides.html. Be aware, though, that a lot of information on that page is out of date, but the basics never change. A lot of information specific to certain software can be found in the Arch Wiki, which is probably the best on the net.

Offline

Board footer

Powered by FluxBB