LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-13-2004, 01:04 PM   #1
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
ls -lsh script with colors not working


red hat 9
i want to be able to type 'v' and have it do 'ls -lsh'
(this is built into slackware)

Not sure if this is the route to take, but i made a script in /usr/bin:
#!/bin/bash
ls -lsh

is gives me the output i want without the colors, such as green for executables, blue for folders etc...

i get the colored output if i just type 'ls -lsh'

how do i get the colors?

thanks
 
Old 08-13-2004, 01:15 PM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
Here's what's in my .bashrc

alias ls='ls -hFs --color'
 
Old 08-13-2004, 01:34 PM   #3
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Original Poster
Rep: Reputation: 47
godlike
thank you
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem changing X terminal colors with script shadowsnipes Slackware 5 10-10-2005 11:15 PM
SH Script not working PEACEYALL Linux - General 3 03-21-2005 08:58 AM
question about lsh shell lucky_dev36 Linux - Newbie 2 01-13-2005 02:30 PM
bash script not working :'( aesahaettr Linux - Software 5 05-12-2004 01:08 AM
Help get this script working please rickenbacherus Linux - General 2 03-24-2004 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration