884 reputation
39
bio website
location United States
age
visits member for 3 years, 2 months
seen Oct 17 at 19:11

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


Jul
10
comment Backup a programming directory
If you are just trying to rename some files, how is the script you posted relevant? I don't see any mention of program.out in the script anyways.
May
14
comment tmux chain keyboard shortcuts, or equivalent for screen's `bind -c` + `command -c`
I've edited the question.
May
14
comment tmux chain keyboard shortcuts, or equivalent for screen's `bind -c` + `command -c`
I described one use case in my question, which is to have a separate prefix key for application launchers, essentially giving the application launchers their own "name-"/"key-"space instead of hunting for unused, hard-to-remember keys among the default set.
Nov
10
comment tmux vs. screen
a paid nerd's comment is a very important qualification of your last point. And the second point as stated is not really a difference as it applies to screen as well unless you can be more specific.
Sep
14
comment What shell allows recalling commands with certain beginning?
Which is why I prefer Ctrl-r because you can interactively edit before hitting enter. For a 2 step approach you can do !rm:p to just print the expansion without running it.
Sep
14
comment What shell allows recalling commands with certain beginning?
Not suggesting a different shell, hence the comment instead of answer. Have you tried the Ctrl-r reverse incremental search feature? Alternatively, !foo will run the last command you entered beginning with foo.
Aug
12
comment How do I join 2 variables in a bash script?
Ok that's what you meant -- since the original question had a . after DATE I left that out since the focus was on the db_ part.
Aug
12
comment How do I join 2 variables in a bash script?
What issues do you mean?
Aug
10
comment Execute command inside first directory of each matched result
Hmm, hopefully 3rd time's the charm.
Aug
10
comment Execute command inside first directory of each matched result
Try the edited version and see if that works.
Aug
6
comment Escaping exclamation mark in shell (negation for if/then construct)?
I put $? in my PS1 so the prompt always shows the exit status of the last foreground command. This makes testing conditions as easy as running [ -d mydir ] and looking at my current prompt. Another way to test with less typing and w/o using the prompt is [ -d mydir ] && echo yes.
Aug
6
comment Mutt deletes Gmail's Sent mail?
offlineimap should not delete sent mail by default. perhaps it would help if you posted the relevant parts of your .offlineimaprc
Aug
5
comment Aliases in subshell / child process
Just to be clear, what I meant was in bash, alias foo='echo foobar', enter, (foo) outputs foobar.
Aug
5
comment Aliases in subshell / child process
bashrc is read for all interactive non-login shells which is why this should work since most shells you start up are interactive non-login shells, and aliases do work in subshells with ()
Aug
5
comment What are the techniques for securely erasing data in Linux?
Even encryption may not be enough to protect against legal measures - it's not legal in all countries and even where it is there may be ways to compel you to give up the decrypted data (see e.g. this article about the UK). Perhaps the only way to be truly safe is using encryption with data-hiding to achieve plausible deniability (i.e. so no one can prove any data ever existed).
Aug
4
comment Root authentication with another root user
With sudo you are supposed to use myNormalUser's password.
Aug
4
comment .bash_profile statements get executed twice
Do you have any other rc files like bashrc that source bash_profile? I don't think it would do anything but try removing the -i from your target.
Aug
4
comment How to cd to a newly created dir?
You left out the all important quotes around the regex when you put it in. Put the double quotes back in like they are in mine and see if it works that way.
Aug
4
comment Why do companies block 'ping'?
I can ping google just fine - maybe ping is blocked somewhere closer to your local network?
Aug
4
comment In linux how do I to get ' quote ` back-tic through the shell into sed.
@nelaar I've updated my answer to explain the escaping.