18,045 reputation
13664
bio website
location United States
age
visits member for 2 years, 8 months
seen yesterday

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.


Jul
17
answered rsync exclude directory not working
Jul
17
comment sudo hangs when run on remote host over ssh in a script without tty (-t)
Does running sudo on the remote server require a password?
Jul
17
revised sudo hangs when run on remote host over ssh in a script without tty (-t)
deleted 13 characters in body; edited title
Jul
17
revised prevent trap from altering underscore variable $_
edited tags; edited title
Jul
16
comment Bash operator & not working
Is it because you have no space between the & and the end of your command?
Jul
16
revised Bash operator & not working
added 4 characters in body
Jul
16
awarded  Enlightened
Jul
16
awarded  Nice Answer
Jul
11
comment Multiline shell script comments - how does this work?
The choice of single quote or double quote should hardly be influenced by something as trivial and irrelevant a concern as whether the text of your script is itself a valid single-quoted string. Single quotes are used to prevent expansions, while double quotes allow certain expansions and require extra parsing. This is the real criteria for determining which to use.
Jul
8
awarded  Enlightened
Jul
8
awarded  Nice Answer
Jul
8
awarded  Good Answer
Jul
4
awarded  Enlightened
Jul
4
awarded  Nice Answer
Jul
4
awarded  Generalist
Jul
3
comment Why should I use $[ EXPR ] instead of $(( EXPR ))?
@qdii As a general rule of thumb the application's own man page and official documentation have much more weight / authority / credibility than some external guide. TLDP does not have the best quality documentation for shell scripting unfortunately. If you want to get good solid information on bash scripting I'd check out the Wooledge wiki.
Jul
2
comment What NOT to put on an SSD?
I'd like point out that between a heavily written drive and a paperweight there are read-only media like optical discs. I'd also agree with this answer's recommendation that most normal users don't need to worry about SSD write cycles. Unless you are doing something unusual or running a service that heavily uses the file system, the SSD will probably last more than long enough.
Jun
28
comment I need to turn a series of commands piped together into an alias in .bashrc
Wow, I had no idea this was in moreutils. Thanks! However, nowadays it seems ifconfig is deprecated on most systems in favor of the newer ip command, but I don't know much more about it than that.
Jun
26
comment How can I scp a file that my user can't read but I can sudo?
This approach requires 2 ssh connections: local to remote and remote back to local. In other words both machines need to have ssh servers running and accessible. See my answer for a simpler solution.
Jun
26
answered How can I scp a file that my user can't read but I can sudo?