Relative Content

Tag Archive for unix

Need some advice on CLI design, I need to provide simple but powerful command line options

I am writing a utility that runs on RHEL5 command line. I need my command line options to be simple but powerful. I looked at the various UNIX utilities to get an idea of how simple command line utilities have to be. Do you guys suggest any documents/links that talk about command line etiquette? I am modelling my utility on top of LVM (that’s all the info I can give for now). I know it’s a software engineering question, but I thought it would be appropriate to post here. Please advise….

What are the options for setting up a UNIX environment to learn C using Kernighan and Richie’s The C Programming Language?

I’m a novice programmer and have been experimenting with Javascript, jQuery and PHP but felt I wasn’t getting a real depth of understanding of what I was doing. So, after reading Joel Spolsky’s response to a question on this site (which I can’t find now!), I took it back to basics and read Charles Petzold’s ‘Code’ and am about to move onto Kernighan and Richie’s The C Programming Language. I want to learn this in a UNIX environment but only have access to a Windows system. I have Ubuntu 12.04 running on a virtualised machine via VMWare Player, and done some coding in the terminal.

Is Ken Thompson’s compiler hack still a threat?

Ken Thompson Hack (1984) Ken Thompson outlined a method for corrupting a compiler binary (and other compiled software, like a login script on a *nix system) in 1984. I was curious to know if modern compilation has addressed this security flaw or not. Short description: Re-write compiler code to contain 2 flaws: When compiling its […]

Lowercase in Linux file names

As I find that UpperCase are really readable for first letter word separation in long complex names, I tend to give some of my Linux files names with some UpperCase. Mostly executables, some directories too.