Although many alternatives exist, I like using vi for all my command line editing needs. To save changes, I usually use SHIFT + Z + Z, exiting vi under most circumstances. But sometimes, this trick...
Learn MoreShell Scripts (BASH Scripts) can access command line parameters using the the variables $1, $2, $2 and so forth, up to $9. In fact, more parameters can be accessed by using curly brackets, like ${10}, ${187}...
Learn MoreWe can access parameters passed via the command line in our PHP shell scripts. Those are stored as an array in the variable $argv. Consider this: #!/usr/bin/php <?php echo var_dump($argv); echo...
Learn MoreIf you’ve ever tried to decompress a file that ends in tar.bz2 using the tar command, you’ll have noticed that it doesn’t work. That’s because the tar command does not understand the...
Learn Morecreate a shortcut for your app somewhere right-click on the shortcut and head over to the Shortcut tab under Target, add your argument(s) after the closing quote hit OK, then double-click the shortcut...
Learn MoreI’m working on a handful of servers that all have the same problem: when running yum, an error message appears that tells me a package called ntpupdate needs to be upgraded, but somehow this...
Learn More