Reputation
1,420
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 10
Newest
 Yearling
Impact
~48k people reached

Jun
9
comment How can I tell which process is IO bound?
iotop will tell you physical I/O rates
Jun
8
comment Is posix_fadvice / POSIX_FADV_DONTNEED functional in Linux?
I'd do this by opening the file O_DIRECT.
Jun
4
comment Find largest files from each date in a directory
size is the fifth field, date's the sixth, +%s is seconds since 1 Jan 1970 00:00 UTC, that /86400 is days since, so the first sort is by day and descending size and the second is "stable" -- give up speed to keep things in input order when you can, "unique" -- select only the first record for each key. First one it sees in input order for each day will be the largest.
Jun
3
answered Find largest files from each date in a directory
May
23
comment How to run a command before download with apt-get?
From comments, you're asking how to replace a system command in a way that can't be bypassed and can't be removed even by the system's installer. You're asking how to rootkit the system.
May
20
comment How to run a command before download with apt-get?
What exactly does "The script must run after calling apt-get but before apt-get accesses any online resource" mean? What part of the producion apt-get needs to be running before your hook can execute properly?
May
15
comment lshw shows a different amount of RAM than the 'free' command. Missing RAM?
Try cat /proc/cmdline to see if there's a mem limit? (edit: yep, it's mem=)
May
15
comment Bind C-i and TAB keys to different commands in terminal applications via .inputrc
@Gilles there are terminal emulators that send keydown/keyups and/or keycodes?
May
15
answered Uninstalling programs on Linux
May
14
awarded  Yearling
Apr
1
comment Turn list into single line with delimiter
A million IP's is <16M, you'd need an awfully big list to blow limits here. Using search for eof detection is more problematic, as is this'll run O(N^2) on the input file size. sed 'H;1h;$!d;x;s/\n/ | /g' is linear.
Feb
26
comment Is there any way to keep track of all the processes exec'd by bash
-b execve stops following on exec. Try it.
Feb
25
answered How can I make sudo forget the password automatically after one command?
Feb
25
answered Is there any way to keep track of all the processes exec'd by bash
Feb
25
comment bash $(printf “%s\n”) does not create multiline
It's not echo doing it, the shell does wordsplitting after parameter expansion for command arguments.
Feb
24
revised Run command automatically when files are copied into a directory
added 24 characters in body
Feb
24
answered Run command automatically when files are copied into a directory
Feb
24
comment how to use awk/cut to get column data which has space
@Costas that's by far the best method if there's no tabs, why not make it an answer?
Feb
24
comment How to weave the words of a string into a block of strings in vim?
>5min see :help put-Visual-mode, the per-command docs don't mention it but reading all of the copy-move section gets you there. I think I picked this up for a *.SO post somewhere.
Feb
24
comment How to weave the words of a string into a block of strings in vim?
@LievenKeersmaekers Well, here's a guy from 2011 complaining it's a bug :-) ... The only place I ever recall seeing this was in a *.SO post somewhere I can't find atm. :help p sure doesn't turn up anything.