Home | Community | Message Board

Out-Grow.com - Mushroom Growing Kits & Supplies
Please support our sponsors.

General Interest >> Science and Technology

Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Jump to first unread post. Pages: 1
life in E minor
Male User Gallery

Registered: 06/07/01
Posts: 1,860
Loc: /export/home/Kremlin
Last seen: 3 months, 8 days
Linux Question
    #2744723 - 05/29/04 05:40 PM (12 years, 10 months ago)


im working with a shell on a website project, and i want to set an alias for ls to be 'ls --all --color'

The problem is, im not sure where to put that for it to auto-execute

the shell is sh, and i dont know the name of the file (ie .bashrc for bash)

Any help would be greatly appreciated :smile:


"Human suffering has been caused because all too many of us cannot grasp that words are only tools for our use, and that the mere presence of a word in the dictionary does not mean it necessarily refers to something definitive in the real world"
--Richard Dawkins, "The Selfish Gene"

"It is the mind which creates the world about us, and even though we stand side by side in the same meadow, my eyes will never see what is beheld by yours."
-George Gissing

"Without a firm idea of himself and the purpose of his life, man cannot live, and would sooner destroy himself than remain on earth, even if he was surrounded by bread."
--Fyodor Dostoevsky

Post Extras: Print Post  Remind Me! Notify Moderator
Error: divide byzero

Folding@home Statistics
Registered: 04/27/01
Posts: 23,480
Loc: Caribbean
Last seen: 3 months, 22 days
Re: Linux Question [Re: Kremlin]
    #2752435 - 06/01/04 10:25 AM (12 years, 10 months ago)

I'm not a bash person, but in one of the dot files you would add something like:

alias ls='/bin/ls --all --color'

Just another spore in the wind.

Post Extras: Print Post  Remind Me! Notify Moderator
I'm Dead
Registered: 12/26/03
Posts: 225
Last seen: 3 years, 2 months
Re: Linux Question [Re: Seuss]
    #2752871 - 06/01/04 01:44 PM (12 years, 10 months ago)

add a .bashrc in your home directory and add

alias ls="ls color=auto"
then do:

source ~/.bashrc

or logout and back in and you should be good. I don't like to inclue the --all switch sometimes I don't want all the file to show up.

Post Extras: Print Post  Remind Me! Notify Moderator
umask 077(nonefor you)

Registered: 09/07/02
Posts: 3,095
Loc: Jacksonville,FL
Last seen: 11 years, 6 months
Re: Linux Question [Re: Kremlin]
    #2754822 - 06/01/04 11:22 PM (12 years, 10 months ago)

You should be able to do it directly from the terminal emulator if you're running X.

People think that if you just say the word "hallucinations" it explains everything you want it to explain and eventually whatever it is you can't explain will just go away.It's just a word,it doesn't explain anything...
Douglas Adams

Post Extras: Print Post  Remind Me! Notify Moderator
Jump to top. Pages: 1

General Interest >> Science and Technology

Similar ThreadsPosterViewsRepliesLast post
* Downloading linux - question DreaMaTrix 918 17 11/30/04 01:29 AM
by Vvellum
* Linux question WBecklund 616 5 12/12/05 04:08 PM
by ThePredator
* misc. Linux questions monoamine 742 10 07/07/04 03:41 PM
* My last Windows hurdle (Linux question) Boom 748 5 02/09/07 04:44 PM
by TheCow
* Who here knows lots about Linux? YthanA 716 13 01/02/06 05:21 PM
by Vvellum
* quick linux question... KDE Anonymous 410 3 08/21/04 01:40 PM
by tomu
* folding@home linux question (or other console versions) MarioNett 566 1 02/21/04 11:41 PM
by FiddleMyDiddle
* Linux - Plot a txt file from the Bash DieCommie 2,869 18 11/03/08 06:46 AM
by Seuss

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Lana, trendal, Diploid, automan
548 topic views. 0 members, 3 guests and 0 web crawlers are browsing this forum.
[ Toggle Favorite | Print Topic | Stats ]
Search this thread:
Kratom Eye
Please support our sponsors.

Copyright 1997-2017 Mind Media. Some rights reserved.

Generated in 0.017 seconds spending 0.003 seconds on 14 queries.