689 reputation
817
bio website
location
age
visits member for 3 years, 5 months
seen Aug 16 at 0:38

Mar
18
accepted Find absolute path from a script
Mar
18
asked Find absolute path from a script
Mar
16
accepted Why does this exclude pattern for rsync give different results when the source directory has a trailing slash?
Mar
16
asked Why does this exclude pattern for rsync give different results when the source directory has a trailing slash?
Mar
11
comment Rolling back a file
@Roland Consider using git, after some learning it's so easy to use and so fast, so you'll never think about not versioning anything (and you'll not understand how you ever could use svn). I need less than one minute to create a repo for a new project, to commit, and to clone to a server. Just my opinion, not gonna start a flame war.
Mar
11
comment Why isn't a straightforward 1/5/15 minute moving average used in Linux load calculation?
@user5528 The times 1min/5min/15min do have sense. They determine the time after which the influence of the current load drops by some fixed factor (probably e=2.71.. or maybe 2). Just try it out.
Mar
10
asked How to raid-mirror existing root partition?
Mar
10
awarded  Commentator
Mar
10
comment Need help with re-partitioning
You can probably do something very simple instead. Your root directory surely contains something what not really belongs there. Either reconfigure the program working with it or move the whole directory to another partition and create a symlink pointing there instead.
Mar
10
comment Give a warning when something is about to be deleted (by root)
I see... but (from your other comment) it looks like you don't need the data themselves, you only need the directory to exist. I start all scripts by creating their destination directories (if applicable), since while testing I often remove them. I like my scripts to be as self-contained as possible.
Mar
10
asked Enable kill X.org with an own key combination
Mar
7
comment What customizations have you done on your shell profile to increase productivity?
I defined my mtd() { mcd $TMP/`date +%y%m%d-%H%M%S-%N`; }. It probably lacks a portability, but it's good enough for me.
Mar
7
comment What customizations have you done on your shell profile to increase productivity?
+1 I've been using my version of mcd for many years and am going to add something like mtd soon.
Mar
7
comment What customizations have you done on your shell profile to increase productivity?
My calculator is alias py='PYTHONSTARTUP=~/.pythonstartup python' with from math import *; in that file. The integer-division problem remains unsolved, but it's way more usable for more complex operations.
Mar
4
comment Which is the safest way to get root privileges: sudo, su or login?
Did you tried it? I did: bash: alias: `/usr/bin/sudo': invalid alias name
Mar
2
answered use 'find' to search for directories !containing certain filetype foo
Mar
1
comment How to remove all empty directories in a subtree?
It was not the removal but the process start up overhead, what took nearly all the time. I had overlooked the -depth argument, which makes rmdir -p useless. I've changed my comment already. The 90 s was my original attempt; there's nothing surprising here.
Mar
1
awarded  Scholar
Mar
1
accepted How to remove all empty directories in a subtree?
Mar
1
comment How to remove all empty directories in a subtree?
That's it. Instead of 90 seconds it takes 0.90 s.