LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-20-2004, 08:41 PM   #1
bgfay
LQ Newbie
 
Registered: Apr 2004
Distribution: Knoppix/Debian
Posts: 12

Rep: Reputation: 0
Change default ls behavior


I know that this is simple because I think I did it years ago when I first tried Linux. What I want to do is to get the command ls to display in the style of ls -l (that's L) by default. I thought that it had something to do with .bashrc, but I really don't want to mess up my system by doing things willy-nilly.

I figure this is an easy one, so feel free to call me stupid. I should know this.

Thanks.
--
bgfay
 
Old 06-20-2004, 08:45 PM   #2
pointyman
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Hi.

In .bashrc, put in the line:
alias ls='ls -l'

Dave
 
Old 06-21-2004, 06:14 AM   #3
bgfay
LQ Newbie
 
Registered: Apr 2004
Distribution: Knoppix/Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you. I knew that it was something obvious. I've made the change and all is well.
--
bgfay
 
Old 06-21-2004, 06:28 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
If you are using RedHat / Fedora, you can use

#ll

which is essentially an alias for ls -l
 
Old 06-21-2004, 06:48 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
don't you want --color too
 
Old 06-21-2004, 09:04 PM   #6
bgfay
LQ Newbie
 
Registered: Apr 2004
Distribution: Knoppix/Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Sure, I'll give that a shot too. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Gnome. Change mouse wheel behavior. mooreted Mandriva 1 02-27-2005 06:12 PM
Change in VNC behavior griffinmt Fedora 0 09-23-2004 06:05 PM
How to change default wm nacha Debian 1 06-10-2004 08:26 AM
konqueror and shift+ mouse wheel change behavior stumbles Mandriva 1 11-02-2003 09:02 AM
Sudden change in volume control behavior ugge Linux - Software 8 01-16-2003 08:48 AM


All times are GMT -5. The time now is 11:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration