The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Create Alias on Desktop yodomino6 UNIX for Dummies Questions & Answers 0 02-19-2008 11:36 AM
How to create a alias with an argument ting123 UNIX for Dummies Questions & Answers 1 07-11-2007 04:43 PM
unable to create flar rjay.com SUN Solaris 0 05-09-2007 03:35 AM
I want to create a command alias cstovall UNIX for Dummies Questions & Answers 2 12-03-2002 07:20 AM
Create an alias mozark High Level Programming 1 10-08-2002 07:17 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-15-2008
Registered User
 

Join Date: Feb 2008
Posts: 2
Unable to create alias

I am using Solaris 9 machine. I am unable to create any aliases.

I gave the following command:

alias ls='ls -ltr'

It did nt give any errors. But next time, I use ls, it is working simply as ls but not like ls -ltr.

I am not having admin permissions. Is it the reason.
Reply With Quote
Forum Sponsor
  #2  
Old 04-15-2008
Registered User
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 160
Are you invoking another shell before executing next ls command?

You can put this alias command in your .profile. It should work everytime.
Reply With Quote
  #3  
Old 04-16-2008
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 105
Code:
set filec
alias ls ls -ltr
this should work for you. mind you i work in csh shell
to remove unalias ls
Reply With Quote
  #4  
Old 05-01-2008
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 490
Curious to know guys.
Am using HP-UX 11.23. Where would I put global user aliases ??
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0