Slashdot Mirror


How To Adopt 10 'Good' Unix Habits

An anonymous reader writes to mention an article at the IBM site from earlier this week, which purports to offer good Unix 'habits' to learn. The ten simple suggestions may be common sense to the seasoned admin, but users with less experience may find some helpful hints here. From the article: "Quote variables with caution - Always be careful with shell expansion and variable names. It is generally a good idea to enclose variable calls in double quotation marks, unless you have a good reason not to. Similarly, if you are directly following a variable name with alphanumeric text, be sure also to enclose the variable name in square brackets ([]) to distinguish it from the surrounding text. Otherwise, the shell interprets the trailing text as part of your variable name -- and most likely returns a null value."

1 of 360 comments (clear)

  1. Re:Don't use shell by myowntrueself · · Score: 0, Flamebait

    such as Python

    Don't make me laugh, I am eating my breakfast.

    Among other things, a language which can have *syntax* errors on a file with mixed tabs and spaces would be worthy of an apt-get --purge remove if it wasn't required by xen...

    --
    In the free world the media isn't government run; the government is media run.