Re: alias(rm as mv)

2003-10-06 Thread Jeff Kinz
On Mon, Oct 06, 2003 at 06:00:42PM -0300, Herculano de Lima Einloft Neto wrote: > On Mon, 2003-10-06 at 16:43, Jeff Kinz wrote: > > Quick solution: > > here=`pwd` > > for i in $*; do > > absolutename="/${i}" > > I take it you mean > > absolutename="${here}/${i}" ? Yes, that was what I

Re: alias(rm as mv)

2003-10-06 Thread Herculano de Lima Einloft Neto
On Mon, 2003-10-06 at 16:43, Jeff Kinz wrote: > Quick solution: > here=`pwd` > for i in $*; do >absolutename="/${i}" I take it you mean absolutename="${here}/${i}" ? This still has one problem: we have to treat deletions with absolute pathnames.. there should be a command or someth

Re: alias(rm as mv)

2003-10-06 Thread Jeff Kinz
On Mon, Oct 06, 2003 at 04:22:36PM -0300, Herculano de Lima Einloft Neto wrote: > I'm not sure this is what you want, but you could use: > > del() { mv -i $* ~/.Trash; } > > You can put it in ~/.bashrc > You should find a lot about this searching around.. you shouldn't use > rm as the new c

Re: alias(rm as mv)

2003-10-06 Thread Herculano de Lima Einloft Neto
Himanshu Arora wrote: > Hi All! > i want rm command to be converted into > > mv (whatever is there after rm command) Trash/ > > where Trash/ is the final destination. > But the alias command doesn't have any support for the above mentioned > purpose. Could you suggest me a way to convert rm into

Re: alias(rm as mv)

2003-10-06 Thread Ed Wilts
On Mon, Oct 06, 2003 at 11:44:34PM +0530, Himanshu Arora wrote: > i want rm command to be converted into > > mv (whatever is there after rm command) Trash/ > > where Trash/ is the final destination. > But the alias command doesn't have any support for the above mentioned > purpose. Could you sug

RE: alias

2003-02-05 Thread Larry Brown
]]On Behalf Of Tibbetts, Ric Sent: Wednesday, February 05, 2003 8:13 AM To: [EMAIL PROTECTED] Subject: Re: alias Go the easy route. Just create a second user with the same UID & GID as Fred, and using Freds home directory. The /etc/passwd would look something like: foo:x:500:500:Foo User:/

Re: alias

2003-02-05 Thread Tibbetts, Ric
Go the easy route. Just create a second user with the same UID & GID as Fred, and using Freds home directory. The /etc/passwd would look something like: foo:x:500:500:Foo User:/home/foo:/bin/bash bar:x:500:500:Fred User:/home/foo:/bin/bash Then set the password to be the same as foo Then when

RE: alias

2003-02-03 Thread Joshua Schmidlkofer
Ahhh.. Always important to include details. Many ways to handle this, first of all, you can override unix permissions with a samba share, and only set the valid users list to any arbitrary samba user. You can also use the username map. You can also add another user with a UID and GID of '0', and

RE: alias

2003-02-03 Thread Bret Hughes
On Mon, 2003-02-03 at 22:11, Larry Brown wrote: > What prompted this line of questioning was the idea that in a closed and > safe environment one could use this method to set up an alias for root as > say...administrator. Then one 9x machine could log on as administrator and > access all of the wi

RE: alias

2003-02-03 Thread Larry Brown
) 723-8388 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bret Hughes Sent: Monday, February 03, 2003 10:35 PM To: [EMAIL PROTECTED] Subject: Re: alias On Mon, 2003-02-03 at 19:04, Ze Ji Li wrote: > How about just give him the same uid and gid? w

Re: alias

2003-02-03 Thread Bret Hughes
On Mon, 2003-02-03 at 19:04, Ze Ji Li wrote: > How about just give him the same uid and gid? will that work? > I fred just need to rights to do anything as coo take a look at sudo this is exactly what it was designed for. Extremely configurable with fine grained control or open it up. What eve

Re: alias

2003-02-03 Thread Ze Ji Li
How about just give him the same uid and gid? will that work? Ze - Original Message - From: "Larry Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 2:20 PM Subject: RE: alias > Problem with just having him in the same grou

RE: alias

2003-02-03 Thread Larry Brown
)? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Canary Sent: Monday, February 03, 2003 6:57 PM To: [EMAIL PROTECTED] Subject: Re: alias You would create a second user named coo with the same

Re: alias

2003-02-03 Thread Robert Canary
You would create a second user named coo with the same password as fred, and assign coo to the fred group. Larry Brown wrote: > > Is it possible to create an alias for a user for login etc. Example would > be a user named fred in the Linux system. I want to create an alias named > coo for Fred.

Re: Alias Substitution

2000-06-20 Thread Todd A. Jacobs
On Mon, 19 Jun 2000, SoloCDM wrote: > > > Is it possible to make an alias substitute an item into its command as > > > in the following: No. -- Todd A. Jacobs Senior Network Consultant -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.

Re: Alias Substitution

2000-06-20 Thread Steven W. Orr
This question has already been properly answered by explaining the use of functions in bash which are used to replace csh style parameterized aliases. But the particular question begs for one more comment: You can say CDPATH='.:~' in your .bashrc, or you can just say export CDPATH='.:~' in yo

Re: Alias Substitution

2000-06-20 Thread Carey F. Cox
On Mon, 19 Jun 2000, SoloCDM wrote: > "Carey F. Cox" wrote: > > > > For bash scripts you will need to use a function as follows... > > > > $ function cdl { cd ~/$@ } > > Thanks, but I'm referring to the command-line -- not a script. > A script is no more than a bunch of command line

Re: Alias Substitution

2000-06-19 Thread SoloCDM
"Carey F. Cox" wrote: > > On Mon, 19 Jun 2000, SoloCDM wrote: > > > Is it possible to make an alias substitute an item into its command as > > in the following: > > > > $ alias cdl='cd ~/$@' > > $ cdl nsmail/Administrator.sbd > > For bash scripts you will need to use a function as f

Re: Alias Substitution

2000-06-19 Thread Carey F. Cox
On Mon, 19 Jun 2000, SoloCDM wrote: > Is it possible to make an alias substitute an item into its command as > in the following: > > $ alias cdl='cd ~/$@' > $ cdl nsmail/Administrator.sbd For bash scripts you will need to use a function as follows... $ function cdl { cd ~/$

Re: alias color in ls

1998-03-24 Thread Brandt Kurowski
Craig Kattner wrote: > H. Well, I had alias dir="ls -F --color=yes" in my /etc/bashrc and > for example piping things to less printed the color codes but not to > more. So, I just tried it out with --color and with --color=tty and > got the same results. Probably more a less issue then a ls th

Re: alias color in ls

1998-03-24 Thread Craig Kattner
> > > >edit .bashrc in your home directory and add > > > > > > > >alias ls='ls --color=yes' > > > > > > Better to use "--color=tty". > > > > "--color" works equally good. > > No, it doesn't always. > > For instance: > > % /bin/ls -a --color > foo > % cat -v foo > ^[[01;34m.^[[0m > ^[[01;34m..

Re: alias color in ls

1998-03-24 Thread Kent R. Frazier
I added the following line to my .bashrc file under #User specific aliases and functions alias ls='ls --color al' This gives me both color and a detailed listing, which being a newbie really helps :) I have version 4.2 Joey Officer wrote: > I've tried adding the alias command to my .bashrc .

Re: alias color in ls

1998-03-24 Thread Stelios Bounanos
Henrik Edlund <[EMAIL PROTECTED]> wrote: > On Tue, 24 Mar 1998, Steve "Stevers!" Coile wrote: > > > On Mon, 23 Mar 1998, Dan Cyr wrote: > > >edit .bashrc in your home directory and add > > > > > >alias ls='ls --color=yes' > > > > Better to use "--color=tty". > > "--color" works equally good.

RE: alias color in ls

1998-03-24 Thread Tempel, Philippe
> I've tried adding the alias command to my .bashrc ... but it still no > worky... > [PT] Did you use the correct syntax? For example, I use the following to alias "dir" to "ls -al": alias dir="ls -al" Also, you can try putting the alias at the end of y

Re: alias color in ls

1998-03-24 Thread Joey Officer
I've tried adding the alias command to my .bashrc ... but it still no worky... Do I have to have a new version of redhat possibly? I dunno joey -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES! http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-

Re: alias color in ls

1998-03-24 Thread Dan Cyr
edit .bashrc in your home directory and add alias ls='ls --color=yes' or to make it global for all users add it to /etc/bashrc Dan At 05:27 PM 3/23/98 -0600, Joey Officer wrote: >I tried to setup color to be added when I do an > >ls -l -color > >but it says >ls: unrecognized option `--colo

RE: alias color in ls

1998-03-24 Thread Peter J Spalding
ne Subject: Re: alias color in ls edit .bashrc in your home directory and add alias ls='ls --color=yes' or to make it global for all users add it to /etc/bashrc Dan At 05:27 PM 3/23/98 -0600, Joey Officer wrote: >I tried to setup color to be added when I do an > >ls

Re: alias color in ls

1998-03-24 Thread Henrik Edlund
On Tue, 24 Mar 1998, Steve "Stevers!" Coile wrote: > On Mon, 23 Mar 1998, Dan Cyr wrote: > >edit .bashrc in your home directory and add > > > >alias ls='ls --color=yes' > > Better to use "--color=tty". "--color" works equally good. -- Henrik Edlund <[EMAIL PROTECTED]> PGP Public Key available

Re: alias color in ls

1998-03-24 Thread Steve \"Stevers!\" Coile
On Mon, 23 Mar 1998, Dan Cyr wrote: >edit .bashrc in your home directory and add > >alias ls='ls --color=yes' Better to use "--color=tty". -- Steve Coile [EMAIL PROTECTED] -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES! http://www.redhat.com/RedHat-FAQ /Red

Re: alias color in ls

1998-03-23 Thread Blair Craft
ls --color=tty On Mon, 23 Mar 1998, Joey Officer wrote: > I tried to setup color to be added when I do an > > ls -l -color > > but it says > ls: unrecognized option `--color' > > how do I setup the ls so that I can add color? > > Joey > > Linux 3.0.3 Picasso > > > -- > PLEASE read th