SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 22nd, 2004, 05:45 PM
woldemariam woldemariam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 16 woldemariam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 4 sec
Reputation Power: 0
Question file you would put ls = "ls -F"

there is a file you put the line
ls "ls -F"
so that when you type ls, it will automatically do ls -F

i forget what the filename was. does anyone know it?

Reply With Quote
  #2  
Old October 23rd, 2004, 06:21 PM
ShizukaWashi ShizukaWashi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Central Florida, U.S.A.
Posts: 77 ShizukaWashi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 55 sec
Reputation Power: 4
Send a message via AIM to ShizukaWashi Send a message via Yahoo to ShizukaWashi
Quote:
Originally Posted by woldemariam
there is a file you put the line
ls "ls -F"
so that when you type ls, it will automatically do ls -F

i forget what the filename was. does anyone know it?


I think you're probably thinking of .bashrc if you're using the BASH shell, that is. If you're using a different shell then the filename would be different.

.bashrc is the file used by the bash shell to store any user aliases and some user preferences that I can't think of currently. Normally if you wanted the ls -F command to be executed everytime you typed "ls" you would write

alias ls='ls -F' either at the command line itself or as a line in .bashrc in your home directory.

To see a list of all of your current alias's just type "alias" at the command line.

Reply With Quote
  #3  
Old October 23rd, 2004, 09:07 PM
woldemariam woldemariam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 16 woldemariam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 4 sec
Reputation Power: 0
thank a lot. it worked.

Reply With Quote
  #4  
Old October 24th, 2004, 04:35 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
stop this stupidities, let ls be ls
i mean, don't change native cmds, if you need your
own ls, write alias mls='ls -what-you-want'
an example:
cd /usr/xxx; tar cf - . |(cd /tmp; tar xfp -)
you will spend days to figure out, why it core dump !!
solution: cd is an alias
cd or ls does not matter, a lot of sys-shells use them
what when (after login) you starts /etc/qqq/abc that
use 'ls' AND expects a precise output ?

Last edited by guggach : October 24th, 2004 at 04:40 AM. Reason: typo

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > file you would put ls = "ls -F"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway