Home | Community | Message Board

Shroom Supply
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: 6 days, 3 hours
Linux Question
    #2744723 - 05/29/04 05:40 PM (13 years, 7 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: 9 days, 5 hours
Re: Linux Question [Re: Kremlin]
    #2752435 - 06/01/04 10:25 AM (13 years, 7 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, 11 months
Re: Linux Question [Re: Seuss]
    #2752871 - 06/01/04 01:44 PM (13 years, 7 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: 12 years, 3 months
Re: Linux Question [Re: Kremlin]
    #2754822 - 06/01/04 11:22 PM (13 years, 7 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 940 17 11/30/04 01:29 AM
by Vvellum
* Linux question WBecklund 620 5 12/12/05 04:08 PM
by ThePredator
* misc. Linux questions monoamine 805 10 07/07/04 03:41 PM
* My last Windows hurdle (Linux question) Boom 758 5 02/09/07 04:44 PM
by TheCow
* Who here knows lots about Linux? YthanA 732 13 01/02/06 05:21 PM
by Vvellum
* quick linux question... KDE Anonymous 432 3 08/21/04 01:40 PM
by tomu
* folding@home linux question (or other console versions) MarioNett 586 1 02/21/04 11:41 PM
by FiddleMyDiddle
* Linux - Plot a txt file from the Bash DieCommie 3,018 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, automan
582 topic views. 0 members, 2 guests and 2 web crawlers are browsing this forum.
[ Toggle Favorite | Print Topic | Stats ]
Search this thread:
Kraken Kratom
Please support our sponsors.

Copyright 1997-2018 Mind Media. Some rights reserved.

Generated in 0.033 seconds spending 0.008 seconds on 19 queries.