Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

 






Current Newswire:

An Easy Step-by-Step to Installing and Running Roundcube Webmail on Ubuntu/Linux

Tech Comics: "Groundhog Day"

Want a Job? Learn Linux

PC-BSD 9 review – to FreeBSD what Ubuntu is to Debian

Time to dispel open source myths, says Liam Maxwell

SECURITY: Nmap Inside and Out

Eight features Windows 8 'borrowed' from Linux

Malware devs embrace open-source

A tale of two distros: Ubuntu and Linux Mint

Raspberry Pi benchmarked against Beagleboard, low price is long term



Applications Management Engineer Sr (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
:10 steps to UNIX nirvana
10 steps to UNIX nirvana
Mar 4, 2009, 04 :33 UTC (0 Talkback[s]) (5737 reads)

(Other stories by Arpan Sen)

[ Thanks to An Anonymous Reader for this link. ]

"Keep the data safe
Using rm -rf * or its variants at the shell prompt is probably the most common source of several lost work hours for a UNIX developer. There are several ways to help in this cause—alias rm, alias cp, or alias mv to their interactive variants in $HOME/.aliases, then source this file during system startup. Depending on the login shell, this could mean putting source $HOME/.aliases inside .cshrc (for C/tcsh shells) or in .profile or .bash_profile (for the Bourne shell), as shown in Listing 1.

"Listing 1. Setting aliases for rm, cp, and mv
alias rm 'rm –i'
alias cp 'cp –i'
alias mv 'mv –i'"

Complete Story

Related Stories:
An Explanation of .bashrc and .bash_profile (Jan 25, 2009)
Tip of the Trade: ssh-xfer for Transferring Files(Oct 23, 2008)
Assigning Multiple Addresses to a Network Interface(Oct 11, 2008)
Save Time at the Command Line With Shell Aliases and Functions(Sep 16, 2008)
Tcsh Shell Variable Manipulation(Sep 10, 2008)
Aliases and Variables Keep Things Short and Simple(Sep 03, 2008)
Back To Basics: Avoiding Recursive Alias Disasters On Linux And Unix(Aug 14, 2008)
IBM Developerworks: Get the most out of Z shell(Dec 29, 2006)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!

..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP