shell variable

Q. How do I create a temporary file securely under UNIX Bash shell? A. There are many ways: [a] mktemp command – make temporary unique filename [b] $RANDOM – Use $RANDOM variable mktemp command From the man page: The mktemp utility takes the given filename template and overwrites a portion of it to create a […]

{ 2 comments }

Q. There is a way to cd a particular directory even if you spelled incorrectly on the command line. The command was added to my shell startup file. After formatting my hard disk, I lost my original file. Can you tell me the shell option or command that will automatically correct errors in the spelling […]

{ 2 comments }

How do I change the color of my shell prompt under Linux or Unix operating systems?

{ 54 comments }