Chapter 4. TWEAKING UNIX
The outsider view of Unix suggests a nice, uniform command-line experience, helped along by the existence of and compliance with the POSIX standards for Unix. But anyone who's ever touched more than one computer knows how much they can vary within these broad parameters.
You'd be hard-pressed to find a Unix or Linux box that doesn't have ls as a standard command, for example, but does your version support the --color flag? Does your system use the older inetd package for launching daemons, or does it use xinetd? Does your version of the Bourne shell support variable slicing (e.g., ${var:0:2})?
Perhaps one of the most valuable uses of shell scripts is to fix your particular flavor of Unix and make it more like other flavors, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access