[Lancaster] A useful replacement for /bin/dir under Debian and Mandriva

Richard Robinson llug_6a at beulah.qualmograph.org.uk
Tue Nov 11 20:24:10 UTC 2008


On Tue, Nov 11, 2008 at 02:55:18PM +0000, Ken Hough wrote:
> I'm getting to like Debian 5, but am missing a useful command that is provided 
> under SUSE.
> 
> Under Debian and Mandriva the commands 'ls' and 'dir' do exactly the same 
> thing. In fact in the /bin directory, these two appear to be copies of the 
> same file, but with different names.
> 
> Under SUSE, 'dir' provides a detailed listing of files with useful colors 
> applied, similar to 'ls -l --color'.
> 
> I've therefore written a very simple replacement for 'dir' which calls 'ls' 
> with the additional parameters, plus any other parameters/instructions that 
> might be needed. The 'C' source code is attached.



More information about the Lancaster mailing list