25,471 reputation
24585
bio website
location Virginia
age 32
visits member for 4 years, 4 months
seen 2 hours ago

2h
comment Why is userspace slower than the kernel?
It's not the userspace is slower than kernel space, it's that switching between the two is time-consuming, I'll let someone else write up a full answer though.
1d
comment Script for “battery level reminder”
Take a look in /sys/class/power_supply/BAT0/. Or if you're running upower, then upower -i /org/freedesktop/UPower/devices/battery_BAT0
2d
comment Custom Kernel to Disable SATA and USB Devices
Hot glue will probably do wonders to the SATA ports (and any onboard USB ports). Easy alternative to desoldering.
Dec
16
comment Does one need access to the console to notice bash history was cleared?
@Dominique Please edit your question to make it clearer, then. A good start would be to put your real question in the title.
Dec
16
comment Does one need access to the console to notice bash history was cleared?
Would suggest asking them for a disk image. Or out of band console access.
Dec
15
comment GCC not compiling , even earlier successfully compiled codes
(a) Is this the GCC that came with Fedora, or did you grab a different one somewhere; (b) Does this happen even with a trivial program (e.g., int main() { return 0; }) fed to gcc -o test test.c with no additional command-line options?
Dec
12
comment If statement to compare files
FYI: Unix is, in general, case sensitive. The command can't be If, it must be if. Similarly, its cmp, not Cmp.
Dec
10
comment How to find which images belong to which /dev/loop?
@bos do you have it mapped under /dev/mapper? That probably counts as in use. Clear the device-mapper mappings. (if kpartx doesn't have a way to do that, you can use dmsetup)
Dec
9
comment Is possible for a manufacturer to fake the RAM limit in the DMI table?
Your question appears to be more about PC hardware than Linux (the dmidecode command is just displaying data from the BIOS/firmware). You might find the broader community on Super User more knowledgeable about PC hardware questions; if you'd like your question moved there, please use the "flag" link below the tags to flag it for moderator attention, reason other, and ask for a move. [You may also want to search Super User first to see if your question is already answered there.]
Dec
9
comment what the best approach in order to compress directory with Hundreds of sub directories
possible duplicate of Which file compression software for linux offers the highest size reduction?
Dec
8
comment When is a symbolic link not acceptable?
Are you looking for examples where a program does it for no good reason, or are programs doing it for good reasons (not on your list) OK?
Dec
5
comment Send emails with a custom From: field
@forsberg Yeah, From header typically comes from the MUA, but then the address part can be changed with rewriting.
Dec
4
comment Why does my named pipe keep getting modified?
I hate to edit code examples in questions... but I presume you actually have the required double-quotes (") in your C program? And the mode?
Dec
4
comment Quickly check whether many network hosts are up-and-running
arp just shows the kernel ARP cache. So it'll only show a machine if your machine has communicated with it recently.
Dec
4
comment SSH command with file redirect not working
Quoting it should work, but you need to quote it correctly...
Dec
4
comment Send emails with a custom From: field
Added an answer of how to do it... The easiest is probably to add a user to send the mail from (other than root), then set the user's full name to "Contact me". Then add otheruser: contact@url.com to /etc/email-addresses
Dec
4
comment Send emails with a custom From: field
Did you also edit the other config files? Also, what command are you using to send the email? Normally that's what generates the name (as opposed to email address, that rewriting changes).
Dec
4
comment Send emails with a custom From: field
Address rewriting is covered in chapter 31 of the Exim spec ... but it sounds like you're either writing a config completely from scratch, or you are ignoring all the help your distro has put in place. E.g., on Debian, dpkg-reconfigure exim4-config is about all you need to get email working and then editing /etc/email-addresses is how you easily configure rewriting. Could clarify what your setup is?
Dec
3
comment Why am I getting so many hits searching for “git” in the apt cache?
Suggest mentioning using \b to search for whole words (apt-cache search '\bgit\b'. Or apt-cache search '\<git\>' if \b hasn't always worked.)
Dec
3
comment Why am I getting so many hits searching for “git” in the apt cache?
grep '\bgit\b' would be a good solution to filter out digital, etc.