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

Jul
18
comment `ip addr` in one-line per interface
Try it, play around with the substitution to see what it's getting and how it breaks things down. You could try /eth0/p for instance to show the eth0 block.`
Jul
15
answered `ip addr` in one-line per interface
Jul
4
comment locate alias with find
Really, if you need locate, why not just install it?. The mlocate implementation is in the findutils package on savannah.gnu.org, git://git.savannah.gnu.org/findutils.git
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