• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Making Your Life Easier with alias

Making Your Life Easier with alias

You might find that you want to use the -i option every time you delete anything, just in case. It's a lot easier to type Y in confirmation than it is to go looking through your backups. The problem is that you are adding keystrokes, and everyone knows that system administrators are notoriously lazy people. Then there's that whole issue of the first principle. That's why we shortened “list” to simply ls, after all. Don't despair, though—Linux has a way. It is the alias command:

alias rm='rm –i'


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint