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 02:36 PM
How to create a alias with an argument ting123 UNIX for Dummies Questions & Answers 1 07-11-2007 08:43 PM
unable to create flar rjay.com SUN Solaris 0 05-09-2007 07:35 AM
I want to create a command alias cstovall UNIX for Dummies Questions & Answers 2 12-03-2002 10:20 AM
Create an alias mozark High Level Programming 1 10-08-2002 11:17 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-15-2008
mumashankar mumashankar is offline
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.
  #2 (permalink)  
Old 04-15-2008
krishmaths krishmaths is offline
Registered User
  
 

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

You can put this alias command in your .profile. It should work everytime.
  #3 (permalink)  
Old 04-16-2008
deaconf19 deaconf19 is offline
Registered User
  
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 152
Code:
set filec
alias ls ls -ltr
this should work for you. mind you i work in csh shell
to remove unalias ls
  #4 (permalink)  
Old 05-01-2008
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
Curious to know guys.
Am using HP-UX 11.23. Where would I put global user aliases ??
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0