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 10: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 06:20 AM
Create an alias mozark High Level Programming 1 10-08-2002 07:17 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-15-2008
Registered User
 

Join Date: Feb 2008
Posts: 2
Stumble this Post!
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 (permalink)  
Old 04-15-2008
Registered User
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 155
Stumble this Post!
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 (permalink)  
Old 04-16-2008
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 105
Stumble this Post!
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 (permalink)  
Old 05-01-2008
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 486
Stumble this Post!
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
Display Modes




All times are GMT -7. The time now is 11:07 PM.


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

Content Relevant URLs by vBSEO 3.2.0