21,545 reputation
34879
bio website
location United States
age
visits member for 3 years, 8 months
seen 6 hours ago

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


Mar
27
comment How do I add network or user source connection data to history entries?
Sounds like process accounting may be useful. The shell history was never designed for logging, and if you do want to use it you have to trust all of your users. See related question on monitoring activity and a related answer.
Mar
27
comment Why did adding the Debian testing repository create so many package dependencies?
Is the version in backports still too old for your purposes?
Mar
26
revised Why can't I create a directory by full relative path argument?
added 8 characters in body
Mar
26
revised Why can't I create a directory by full relative path argument?
added 372 characters in body
Mar
26
answered Why can't I create a directory by full relative path argument?
Mar
23
comment Trying to set JAVA_HOME in ~/.bashrc
Getting the obvious question out of the way: have you restarted bash / reloaded the rc file since making the change?
Mar
23
answered How to link a folder to create a shortcut
Mar
23
comment Is it possible to reference the most recently modified file in a command line argument?
Even though file names ending in newlines are uncommon, it should be noted that command substitution strips trailing newlines, even when quoted.
Mar
23
comment permission reporting on sudoers
Do you mean sudo -l?
Mar
23
comment Correct textual name for <<
POSIX 2008 > Shell Command Language > Redirection > Here-Document
Mar
23
comment Grep_color on mac
Isn't GREP_COLOR deprecated? Anyways grep --color should highlight matches in the default color, without any need for environment variables.
Mar
22
revised Is it possible to reference the most recently modified file in a command line argument?
added 1 characters in body
Mar
22
comment Is it possible to reference the most recently modified file in a command line argument?
@user112553 Yes that is a good point. However, it would be trivial to convert the script into a function if the user so desired.
Mar
22
comment Adding a TeX macro to the beginning of a file using sed (why doesn't my method work?)
@ChrisDown Just saw this again. You are indeed correct about -i removing symlinks, although GNU sed provides the --follow-symlinks option for that case. Of course all of this is rendered moot by the more important point that sed -i is non-portable and should be avoided anyways.
Mar
22
revised Is it possible to reference the most recently modified file in a command line argument?
added 202 characters in body
Mar
22
answered Is it possible to reference the most recently modified file in a command line argument?
Mar
22
comment Is it possible to reference the most recently modified file in a command line argument?
There is no way to do this with bash that is both simple and foolproof. I believe zsh can do this with the *(om[1]) glob.
Mar
22
comment What is the difference between : and true?
Related question about the purpose of the colon builtin.
Mar
20
comment How to rename multiple files by removing the extension?
Safer faster version: for i in ./*.tif; do mv -i "$i" "${i%.tif}"; done
Mar
20
comment Utility for sending HTML mail with attachments to a long list of emails?
@MichaelMrozek Indeed, the mutt wiki seems almost ashamed to admit it. Apparently it was a frequently requested feature though.