bash: dir: command not found

adamk

Daemon

Reaction score: 266
Messages: 1,622

There is no 'dir' command :) 'dir' is a DOS command. You should read the man page for 'ls' since that is the common command on unix systems to show directory listings.

Adam
 

hydra

Well-Known Member

Reaction score: 27
Messages: 272

Welcome to the wonderful world of UNIX. Be sure to pick some literature, read, experience and enjoy ! Good luck.
 

fonz

Son of Beastie

Reaction score: 370
Messages: 2,560

megabytemb said:
where is the fir command?

can i download it somewhere
On a more serious note (ahem...) I'm actually quite surprised that there apparently isn't some package called "fir" :e

Alphons
 

vivek

Aspiring Daemon

Reaction score: 196
Messages: 805

On Linux system ls and dir installed. I never understood why those distro included dir command. May be OP has some Linux background.
 

tangram

Aspiring Daemon

Reaction score: 75
Messages: 523

If you are used to dir create an alias.

For csh edit your .cshrc file and add:
Code:
alias dir 'ls -FG'
For zsh edit your .zshrc file and add:
Code:
alias dir='ls -FG'
For bash edit you .bashrc file and add:
Code:
alias dir='ls -FG'
-G colorizes the output and -F adds a trailing sign such as /, *, @ and so on according to file type.

For more info take a look at:
Code:
% man ls
 
Top