Reputation
Top tag
Next privilege 1,000 Rep.
See vote count; VIP usercard
Badges
5 21
Newest
 Enthusiast
Impact
~24k people reached

Mar
19
comment Harddisk serial number from terminal?
Well, but you need to be superuser to use the -I option in hdparm. I would not want that either and prefer a way how to read out the ser # without root permissions. This is why I've upvoted don_crissti's solution only. – syntaxerror 57 secs ago
Mar
10
comment How do I set mouse double click speed in Lubuntu
Thanks a lot - just what I needed. Unfortunately, XinHua's solution is outdated and does no longer apply to latest Lubuntu versions.
Feb
12
revised How to figure out primary/secondary IDE channel via sysfs (if possible)
edited tags
Feb
12
comment How to figure out primary/secondary IDE channel via sysfs (if possible)
OK, thanks, but what if it is a PATA controller, with all but the primary slave channel connected to a device? Won't link just be numbered link1, link2, link3 anyway? I would not think that there will be a gap (as ..1, ..3, ..4).
Feb
12
asked How to figure out primary/secondary IDE channel via sysfs (if possible)
Feb
12
comment Bash: handling “[[ statement ]] || echo problem found ; exit 1” logic
Thanks! More notes for beginners: 1) You must leave one whitespace after both the opening and closing brace. 2) Don't forget the semicolon after the last statement! If you do, you will get a very pointless (and misleading) error message: ''unexpected end of file'' (?!?)
Feb
8
comment “history” stops working when run inside bash script
Thanks too to the dude who recently downvoted me just because he can. (Probably a bash v3 user, out of mere frustration, haha). At least for Martin my solution was of great help, that's (at least) a comfort.
Feb
7
comment What if 'kill -9' does not work?
Umm, I always dislike this kind of "hard" field names with ps. Who can be sure that the required field will always be the 8th, with all implementations of ps in all Unices?
Feb
7
comment How to handle spaces in path names when variable contains multiple paths
Well, duplicate or not: I think that in this case, nobody can accuse me of not having searched properly! Plus, I think that users will rather stumble on my question due to it's more descriptive title. On the question linked above, one is rather forced to delve through some remotely related stuff and imagine the rest...*What* you may think is duplicate here, is the section "How do I process a list of file names?". However, I was asking about path names, not file names, that's why chances were high that I wouldn't necessarily stumble on question #131766.
Feb
7
comment How do I deal with directories that have spaces in their names from `find`?
Maybe it would be a good idea to issue a warning about -delete! Like deltree on DOS prompt in Windows, this seemingly inconspicuous option can cause huge file trees to get purged in no time!! So use -delete with extreme caution.
Feb
6
revised How to handle spaces in path names when variable contains multiple paths
added 234 characters in body
Feb
6
comment How to handle spaces in path names when variable contains multiple paths
Very sneaky! Thank you.
Feb
6
revised How to handle spaces in path names when variable contains multiple paths
added 234 characters in body
Feb
6
asked How to handle spaces in path names when variable contains multiple paths
Jan
7
revised extract line from same string
even more complex (unfortunately, but it needs to be logical and false positives must be safely excluded)
Jan
7
comment extract line from same string
@IlarioFerrocino The more complex solution (2nd line) does take tabulators into account.
Jan
7
revised extract line from same string
even more complex (unfortunately, but it needs to be logical and false positives must be safely excluded)
Jan
7
answered extract line from same string
Jan
6
comment Linux cut command with -f1
... but defining fields separated by a certain character. To give another example, -d\! would look for ! per line and from each ! starting, cut would define a new field. Also note the important - which can be used for field names: -f2- will mean "from field #2 to end of line", which can be invaluable when amount of fields per line is expected to vary.
Jan
6
comment What is the meaning of the directory specified by '//'?
cd / should do the trick as well. No need to double the slash.