Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Can't do mv, cp, rm because of alias..how to delete?

Can't do mv, cp, rm because of alias..how to delete?
Thread Tools
tyrelle
Fresh-Faced Recruit
Join Date: Mar 2003
Location: Union Springs, Alabama
Status: Offline
Reply With Quote
Mar 30, 2003, 01:40 PM
 
New to unix and mac and I printed out one of the guides and I wan to undo some aliases that i created.

alias rm 'rm -1'
alias mv 'mv -1'
alias cp 'cp -1'

How can i undo t
     
Rainy Day
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Mar 30, 2003, 01:54 PM
 
Depends on the shell you're using. Looks like you're using tcsh, so you'll want to use unalias rm, etc., or simply do it all at once with unalias rm mv cp

Also, aliases go away when your session ends, so closing the Terminal window and opening a new one would do the trick too.
     
tyrelle  (op)
Fresh-Faced Recruit
Join Date: Mar 2003
Location: Union Springs, Alabama
Status: Offline
Reply With Quote
Mar 30, 2003, 01:59 PM
 
Thx so much..that did the trick. Just trying to make my way through the tutorial :-)
     
iohead
Registered User
Join Date: Jan 2003
Location: California
Status: Offline
Reply With Quote
Apr 1, 2003, 04:45 AM
 
Originally posted by tyrelle:
New to unix and mac and I printed out one of the guides and I wan to undo some aliases that i created.

alias rm 'rm -1'
alias mv 'mv -1'
alias cp 'cp -1'

How can i undo t
I believe you must have meant "rm -i", "mv -i" and "cp -i", respectively (and not "-1").

"-i", interactive, is the usually recommended argument for end users (because the utility will ask for confirmation before deleting/overwriting files), therefore books suggest these.

You could have aliases in place and still execute the original (unaliased) version of the command by either using the full pathname (such as /bin/rm instead of rm), or prefixing a backslash (\rm).

-A
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 05:10 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,