Sponsored Content
Full Discussion: Creating Alias for FILE
Operating Systems Solaris Creating Alias for FILE Post 302376696 by newpromo on Wednesday 2nd of December 2009 04:59:45 AM
Old 12-02-2009
Thanks,

I'm still having one question plz :

Does it exist this notion of alias for files like for commands ? In other words, can we create alias for file like for we used to do for command with the famous command :

alias command=cmd ? But for file instead of command ?


Thx,
 

10 More Discussions You Might Find Interesting

1. IP Networking

ifconfig: difference between creating logical or alias network interface

Hi guys, I have set up multiple virtual FTP servers on a server through one physical NIC. I believe there are to ways; setting logical or alias ip's. I would like to know what is the difference between setting up a logical ip or setting up an alias ip to a physical network interface? Some links to... (5 Replies)
Discussion started by: zaff
5 Replies

2. UNIX for Dummies Questions & Answers

Creating alias for directory path

I am trying to create an alias for a frequently used directory path by using alias xyz="/proj/dir_name" and then trying to reach a sub-directoy by using cd xyz/abc but I get an error saying " No such file or directory " plz tell me wats wrong with this ... (3 Replies)
Discussion started by: jasjot31
3 Replies

3. Shell Programming and Scripting

alias defining problem in .cshrc file

Hi folks, I'm trying to define the following command as alias in .cshrc file: ls -ltr | grep ^d | awk '{print $9}' | xargs du -hs I defined it as the following: alias nirdirs '`ls -ltr | grep "^d" | awk "{print \\$9}" | xargs du -hs`' I've got the following error when I've run the alias:... (7 Replies)
Discussion started by: nir_s
7 Replies

4. OS X (Apple)

Where should I install an alias file under UNIX bash ?

I have a file named 'aliases' which contains a list of aliases like: alias loc='locate' alias h='history' alias .='pwd' alias ..='cd ..' alias cd..='cd .. ; pwd' .............................. Where should I put this file (alias) so when Terminal launches .bash and thus a shell at... (1 Reply)
Discussion started by: shub22
1 Replies

5. UNIX for Dummies Questions & Answers

Create alias files (not alias commands)

If one: $ find -name 'some expression' -type f > newfile and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory. I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies

6. Shell Programming and Scripting

Changing file extension in csh alias

I want to type only the filename of a gcc source that has ".syn" as an extension and copy it, changing the extension to ".c" so it can be compiled. I do it as follows: if (-e $1.syn) then /bin/cp $1.syn $1.c endif This works fine, but if I want to repeat the compilation by... (1 Reply)
Discussion started by: ygmwayne
1 Replies

7. Shell Programming and Scripting

Creating .../ alias in bash

I want to create an alias as follows but is not working alias ../='cd ../' (3 Replies)
Discussion started by: kristinu
3 Replies

8. UNIX for Dummies Questions & Answers

Help on creating and saving an alias

Hello, I want to create an alias for this command: grep -i "<keyword_to_search>" <path_to_search> Here's the alias I intended to make: alias k 'set ARGS1 =(\!1); set ARGS2 =(\!2); grep -i "$ARGS1" ARGS2' So that next time, for example, if I want to search the keyword "Help" in the path... (5 Replies)
Discussion started by: mar85
5 Replies

9. Homework & Coursework Questions

Creating a .profile, displaying system variables, and creating an alias

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Here is what I am supposed to do, word for word from my assignment page: 1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies

10. OS X (Apple)

Having trouble creating an alias for grep

Hi, I'm using Mac 10.9.1. I would like to create an alias for grep so that it won't print out messages like "grep: /Users/davea/workspace/myproject/subdir/: Is a directory" all the time. So in my terminal, I opened ~/.profile and entered alias grep='grep -s' However, when I close and... (5 Replies)
Discussion started by: laredotornado
5 Replies
ali(1mh)																  ali(1mh)

Name
       ali - list mail aliases

Syntax
       ali [ -alias aliasfile ] [ -help ] [ -[no]list ] [ -[no]normalize ] [ -user useraddr ] [ -nouser ] [ aliases ...  ]

Description
       The  command  searches the specified mail alias files for each of the given aliases.  It creates a list of addresses for those aliases, and
       displays that list on the screen.

Options
       -alias aliasfile
		 Specifies the alias file to be consulted by You can specify more than one alias file, but each  aliasfile  must  be  preceded	by
		 -alias.  In addition to any alias files that you specify, consults the system alias file

		 You  can  set up an entry in your so that automatically consults an alias file.  To do this, add the Aliasfile entry to your pro-
		 file.	See for more information.

       -help	 Prints a list of the valid options to this command.

       -list
       -nolist	 Prints the addresses on separate lines.  If you do not specify the -list option,  the	addresses  are	separated  by  commas  and
		 printed on as few lines as possible.

       -normalize
       -nonormalize
		 Instructs  to try to track down the official hostname of the address.	This can be suppressed by using -nonormalize.  The default
		 is -nonormalize.

       -user useraddr
       -nouser	 Displays all the aliases that contain a specific name.  Instead of listing the addresses that each given alias expands to,  lists
		 the  aliases that expand to include each given address.  You must specify the complete user name that you have used in your alias
		 file.

       The defaults for this command are:

	      -alias /usr/lib/mh/MailAliases
	      -nolist
	      -nonormalize
	      -nouser

Examples
       The following example shows how the -user option can be used to list all the aliases containing the address Parker@Venus:
       % ali -user Parker@Venus
       Parker@Venus: Group, Reviewers, Badminton

Profile Components
       Path:	    Location of your Mail directory.
       Aliasfile:   Location of your personal alias file.

Files
       The user profile.

       The system alias file.

       The system password file.

       The system group file.

See Also
       mh-alias(5mh)

																	  ali(1mh)
All times are GMT -4. The time now is 07:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy