34,161 reputation
44892
bio website blog.denniswilliamson.us
location United States
age
visits member for 5 years, 8 months
seen 3 hours ago

                I am the first user
            to earn at least 30,000
            reputation points each

                 
                    on all three of
                  Stack Overflow,
                 Server Fault and
                     Super User.


         I was also the first user to
surpass 10,000 and 20,000 points each
          on all three of those sites.


Are you a Stackathlete?

Check the standings on


Profile:
I'm a Unix/Linux sysadmin/programmer

Devotion to Duty
Devotion to Duty
Try my unofficial Printifier for xkcd.


Dec
19
awarded  Nice Answer
Dec
18
comment SSH MOTD per user
I get "stty: standard input: Inappropriate ioctl for device".
Dec
18
awarded  Enlightened
Dec
18
awarded  Nice Answer
Dec
18
comment useradd not encrypting passwords in /etc/shadow
@MichaelKjörling: The file can have 600 permission which will make it readable only to the owner of the file. And when you're finished, rm the file. This is much more secure than have the password show up in the output of ps.
Dec
18
comment useradd not encrypting passwords in /etc/shadow
@MichaelKjörling: A very good point. Please see my edited answer.
Dec
18
revised useradd not encrypting passwords in /etc/shadow
added a better option
Dec
18
revised useradd not encrypting passwords in /etc/shadow
changed methods
Dec
17
answered useradd not encrypting passwords in /etc/shadow
Nov
24
awarded  Guru
Nov
24
comment How to determine if a bash variable is empty?
@AlastairIrvine: I mention portability in the first sentence of my answer, the question title and body contain the word "Bash" and the question is tagged bash, and the double bracket structure provides clear advantages in many ways. And I don't recommend mixing bracket styles for reasons of consistency and maintainability. If you need maximum, lowest common denominator portability, use sh instead of Bash. If you need the increased capabilities that it provides, use Bash and use it fully.
Nov
17
awarded  Caucus
Oct
12
awarded  Nice Answer
Sep
30
awarded  Explainer
Sep
22
comment Bash: Execute command from variable without eval
Please see BashFAQ/050.
Sep
22
revised use bash to open a file and output the last line
Clarification
Sep
22
comment use bash to open a file and output the last line
/dev/stdout works for me, but note that it outputs to the terminal being inspected. If you want it to output to another terminal, perhaps the one running the gdb command, use the specific terminal device instead of /dev/stdout (e.g. /dev/pts/15).
Sep
22
comment use bash to open a file and output the last line
@alexus: I dont think so. It looks like he's asking gdb to tell Bash to write the history, which is contained in memory, of a currently running shell. In fact, I just tested it, and that's what it does. And tail -n 1 ~/.bash_history doesn't show the most recent command from the test session.
Sep
22
comment use bash to open a file and output the last line
@alexus: .bash_history is usually only written when the shell exits so a simple tail probably won't work.
Sep
22
comment Bash and background processes PGID and receiving signals
Why are you putting the process in a subshell?