Home | Community | Message Board

Kratom Eye
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: 5 months, 3 days
Linux Question
    #2744723 - 05/29/04 05:40 PM (14 years, 22 days 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: 25 days, 1 hour
Re: Linux Question [Re: Kremlin]
    #2752435 - 06/01/04 10:25 AM (14 years, 20 days 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: 4 years, 4 months
Re: Linux Question [Re: Seuss]
    #2752871 - 06/01/04 01:44 PM (14 years, 20 days 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, 8 months
Re: Linux Question [Re: Kremlin]
    #2754822 - 06/01/04 11:22 PM (14 years, 19 days 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
* folding@home linux question (or other console versions) MarioNett 594 1 02/21/04 11:41 PM
by FiddleMyDiddle
* windows/linux user can ya help me? DF2K 1,022 5 06/10/03 10:42 AM
by T0aD
* linux file system troubles monoamine 822 7 05/22/04 03:55 AM
by AhronZombi
* How to rename windows directory ? T0aD 1,225 9 11/25/03 02:56 PM
by funkymonk
* misc. Linux questions monoamine 837 10 07/07/04 03:41 PM
* copyright question joshlaxin 1,386 12 12/07/03 01:29 AM
by Le_Canard
* linux monoamine 1,579 14 10/19/02 10:55 AM
by BuzzDoctor
* Mandrake 7.2 question DazedSol 1,134 11 02/14/04 10:37 PM
by manuscript

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

Copyright 1997-2018 Mind Media. Some rights reserved.

Generated in 0.027 seconds spending 0.007 seconds on 19 queries.