Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Applications > cannot execute Binary

Forgot Password?
 Linux Applications   I cant get "X" app to work... also discussion about linux programs.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-02-2005   #1 (permalink)
Just Joined!
 
Join Date: Apr 2005
Location: Sweden
Posts: 10
Send a message via MSN to n00b1337
cannot execute Binary

When i write "dir" to see what's in a folder the terminal says: Bash: /bin/dir cannot execute binary file. What can i do? i Find this pretty anoying and need help. thx in forward.
n00b1337 is offline  



Reply With Quote
Old 05-02-2005   #2 (permalink)
Linux Engineer
 
Join Date: Apr 2005
Location: Buenos Aires, Argentina
Posts: 908
dir doesn't exist in Linux, the command that's used in UNIX-like systems is ls.
__________________
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
serz is offline   Reply With Quote
Old 05-02-2005   #3 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
Re: cannot execute Binary

Quote:
Originally Posted by n00b1337
What can i do? i Find this pretty anoying and need help.
Yeah, well Linux finds it annoying when users ask it to do Windows commands....

In the Tutorials section of the forums is this one on basic bash commands:
http://www.linuxforums.org/tutorials...rial-1154.html

For more information, O'Reilly & Associates has an excellent small book called Linux Pocket Guide

A useful command (sometimes) when you want to do something, but you don't know what command will work, use the command 'apropos' with a keyword of what you are looking for. To see commands related to listing the contents of a directory, I would try:
Code:
apropos list
...or...
apropos directory
Finally, if you know a command, but you are not sure what it does or how to use it, use the 'man' command to see the "manual" pages:
Code:
man commandname
Press 'q' to quit from 'man'.

For man pages online, along with a handy list of most commands, go on-line to http://linuxreviews.org/man/
__________________
/IMHO
//got nothin'
///this use to look better
drakebasher is offline   Reply With Quote
Old 05-02-2005   #4 (permalink)
scm
Linux Engineer
 
Join Date: Feb 2005
Posts: 1,004
You can set aliases in the shell if you feel more comfortable with DOS commands (I must admit that DOS's md command is the only one with a better name than the UNIX one ):
Code:
alias dir="ls -l"
alias copy=cp
alias rename=mv
Put them in one of your bash profile files to make them "permanent".

Steve
scm is offline   Reply With Quote
Old 05-02-2005   #5 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Quote:
Originally Posted by serz
dir doesn't exist in Linux, the command that's used in UNIX-like systems is ls.
Unfortunately, you are mistaken. dir does exist in GNU/Linux, and is part of the fileutils package. I find it annoying whenever I try to convert somebody to linux they never warm up to ls, even though it is much more powerful.
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 05-03-2005   #6 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
Re: cannot execute Binary

Quote:
Originally Posted by I
Code:
apropos list
...or...
apropos directory
...but when you do that, you'll get 200 lines of output from the first command and 61 lines from the second. So even better would be:
Code:
apropos list | grep directory
...which will result in only 4 commands, including both 'dir' and 'ls'. Let's see what dos can do to match that!

Resource: Linux Pocket Guide
__________________
/IMHO
//got nothin'
///this use to look better
drakebasher is offline   Reply With Quote
Old 05-03-2005   #7 (permalink)
Linux Engineer
 
Join Date: Apr 2005
Location: Buenos Aires, Argentina
Posts: 908
Yes, you're right lakerdonald, my mistake
__________________
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
serz is offline   Reply With Quote
Old 05-03-2005   #8 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
I wish I was wrong though. haha
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 05-03-2005   #9 (permalink)
Linux Engineer
 
Join Date: Apr 2005
Location: Buenos Aires, Argentina
Posts: 908
Quote:
Originally Posted by lakerdonald
I wish I was wrong though. haha
Yes! hehe.

:P
__________________
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
serz is offline   Reply With Quote
Old 05-03-2005   #10 (permalink)
Just Joined!
 
Join Date: Apr 2005
Location: Sweden
Posts: 10
Send a message via MSN to n00b1337
thx guys
n00b1337 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:00 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1