Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2000 02:09:17 +0300
From:      Stefan KORONKA <KoronkaS@interscope.ro>
To:        "'jmdupx@yahoo.com'" <jmdupx@yahoo.com>
Cc:        freebsd-newbies@FreeBSD.ORG
Subject:   RE: content / list of manpages
Message-ID:  <D08F9E2FE307D411857300104B34F1A202D882@URANUS>

next in thread | raw e-mail | index | archive | help
> is there a file extension in freebsd (like in DOS where you have 
> *.com or *.exe) which tells you for example that a file is executable 
> or will run or whatever if you enter it at a command prompt, as 
> opposed to just containing information ?
> 
> this would be a useful way for me to slowly feel my way around the 
> system using the resources at hand.

hmm .. a sugestion: use the "bash" shell. If you are using other shell,
just type "bash". If you haven't installed it, install from
/stand/sysinstall. 

Now, in bash, if you press "Tab" once, you'll hear a beep. If you press
twice, a message like "There are xxx possibililies.. Do you want.. (y/n)"
Press "y" (or just press "Tab" one more time); now a list with all available
commands will appear on your screen.
(Note: I might be wrong with the numbers of "Tab", but you'll get a clue)

Similar, if you type "a<TAB><TAB>", you'll get all the commands begining 
with "a". And so on ..

I hope this helps.

Btw: no, there isn't a "file extension" for executable files in unix.
And no, the system will not run whatever if you enter at a command prompt.
Executable files usually have an "x" flag (try "ls -l" to see this).
And, usually, most of the available programs are in /bin, /usr/bin and
/usr/local/bin.


Stefan


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D08F9E2FE307D411857300104B34F1A202D882>