|
|
Can't do mv, cp, rm because of alias..how to delete?
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2003
Location: Union Springs, Alabama
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Mar 2003
Location: Union Springs, Alabama
Status:
Offline
|
|
Thx so much..that did the trick. Just trying to make my way through the tutorial :-)
|
|
|
|
|
|
|
|
|
Registered User
Join Date: Jan 2003
Location: California
Status:
Offline
|
|
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 Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|
|