Results 1 to 10 of 16
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-02-2005 #1Just Joined!
- Join Date
- Apr 2005
- Location
- Sweden
- Posts
- 10
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.
- 05-02-2005 #2Linux 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"
- 05-02-2005 #3Linux Guru
- Join Date
- May 2004
- Location
- forums.gentoo.org
- Posts
- 1,814
Re: cannot execute Binary
Yeah, well Linux finds it annoying when users ask it to do Windows commands....
Originally Posted by n00b1337
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: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:apropos list ...or... apropos directory
Press 'q' to quit from 'man'.Code:man commandname
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
- 05-02-2005 #4Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
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
):
Put them in one of your bash profile files to make them "permanent".Code:alias dir="ls -l" alias copy=cp alias rename=mv
Steve
- 05-02-2005 #5Unfortunately, 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.
Originally Posted by serz
- 05-03-2005 #6Linux Guru
- Join Date
- May 2004
- Location
- forums.gentoo.org
- Posts
- 1,814
Re: cannot execute Binary
...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:
Originally Posted by I ...which will result in only 4 commands, including both 'dir' and 'ls'. Let's see what dos can do to match that!Code:apropos list | grep directory
Resource: Linux Pocket Guide/IMHO
//got nothin'
///this use to look better
- 05-03-2005 #7Linux 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"
- 05-03-2005 #8
I wish I was wrong though. haha
- 05-03-2005 #9Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
Yes! hehe.
Originally Posted by lakerdonald
:Pserzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
- 05-03-2005 #10Just Joined!
- Join Date
- Apr 2005
- Location
- Sweden
- Posts
- 10
thx guys


Reply With Quote
