4,494 reputation
11222
bio website keith-s-thompson.github.com
location San Diego, CA
age 54
visits member for 2 years, 11 months
seen yesterday

I'm a programmer and all-around nerd living in San Diego, California and working at JetHead Development Inc.

E-mail: Keith.S.Thompson@gmail.com


Jun
24
revised Is there any harm in using variables that aren't set?
Formatting
Jun
23
comment What does the period indicate when an environmental variable is set like “VARIABLE_NAME=.”
@godlygeek: The root directory does have a .. entry. Another way to look at it is that every directory has a .. entry pointing to its parent -- and the root directory / is its own parent.
Jun
20
comment How to tell “cat” command to not hang on when there is no path provided?
cat "" doesn't hang, but it does print an error message: cat: : No such file or directory (referring to the empty string). It's better to test whether $1 exists, probably by checking the value of $#.
Jun
20
comment Fedora 20. Authentication requires a different password from su
su requires the password for the target account, root by default. Have you tried using sudo, which requires your password?
Jun
16
comment bash equivalent of this use of tcsh “sched” command?
I think I have a better solution that doesn't require using crontab. I'll update this answer (and delete this comment) once I've verified that it actually works.
Jun
11
revised Making zsh default shell without root access
added 193 characters in body
Jun
11
answered Making zsh default shell without root access
Jun
11
answered bash equivalent of this use of tcsh “sched” command?
Apr
29
comment How to set up a cron entry that runs at 00 and 30 after the hour?
The line in your question already does exactly what you want to do.
Apr
15
comment Does `sl` ever show the current directory?
You could always create the intermediate directories -- but then it wouldn't be showing (just) the contents of the current directory.
Apr
14
comment wget - corrupted directories
The command name is wget, and Unix command names are case-sensitive. I've seen documentation refer to it as Wget, but I've never seen it referred to as wGet.
Apr
14
comment wget - corrupted directories
Is there some significance to the spelling wGet rather than wget?
Apr
7
comment Does cron know that the instance to be scheduled is already running?
@Ouki: You should post that as an answer.
Mar
25
answered Symbol that will show up first in output of `ls`?
Mar
18
comment How to recover from recursive 'chmod -x' on my home folder
At least you didn't chmod -x the directories!
Mar
18
comment How to test what shell I am using in a terminal?
If you're running tcsh, $tcsh and $version will be set. These are shell variables, not environment variables. If you're running a non-tcsh version of csh, I don't think there are any distinctive variables. And of course the syntax used to check variables differs between csh/tcsh on the one hand, and sh/ksh/bash/zsh on the other.
Mar
18
comment How to test what shell I am using in a terminal?
ps | grep $$ can still give false positives if, for example, your current process is 1234 and there's a process 12345.
Mar
12
comment can not chown a file from my $user to another $user
POSIX: "[EPERM] The effective user ID does not match the owner of the file, or the calling process does not have appropriate privileges and POSIX_CHOWN_RESTRICTED indicates that such privilege is required."
Mar
12
comment can not chown a file from my $user to another $user
I've seen it on a UNIX system some years ago; I don't remember the exact details off the top of my head, but I think it was an Alpha OSF1 system. See man pathconf; calling it with _PC_CHOWN_RESTRICTED tells you whether chown is restricted to root for the given path. (I don't think Linux lets you remove that restriction.)
Mar
12
comment Is this redirecting to /dev/null?
@Tonny: How is it overkill?