Reputation
19,830
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 24 67
Impact
~1.5m people reached

1d
comment What is `/tmp/.X11-unix/`?
@goldilocks - an interesting assertion.
1d
comment When I cd through a symlink, why does pwd show the symlink instead of the real path?
ls -l /proc/$$/cwd takes advantage of the kernel's /proc filesystem interface.
Apr
14
comment How to monitor the “raw” port of the bonded network in RedHat 4/5?
Can you check the eth? devices that have the same HWaddr as bond0 using ethool or mii-tool? Both of those programs say something about "like detected" or "link ok" when the cable is connected on both ends.
Apr
13
comment How to get scapy to sniff on the correct interface?
How about adding the output of ifconfig -a to your question, so we can see what interface names exist, and their settings.
Apr
11
comment Is there classification of Linux Server and Desktop?
@Anthon - you shouldn't really have to reconfigure the kernel, as the distinction between "desktop" and "server" is artificial, created by coporate entities to (1) make more money by selling "server editions" at a higher price and (2) discourage people from thinking correctly about communication, protocols, and their own place in the world.
Apr
7
comment KSH - if/then/else vs. double amps (&&) and double pipes (||)
Your first example is a fairly unusual style. Can't say that I've ever seen anyone use that consistently. I can't think of anything to say to not use it, however.
Apr
2
comment Get Any Interface's Router Address
@LingyuanHe - You could do: ip route | grep enp3s0 | awk '{print $9}'
Mar
29
comment Opening a TCP port in Linux
Your example server code works better with Python 2.7 than it does with Python 3. You should probably say what version of Python you use.
Mar
27
comment Does the inode change when renaming or moving a file?
How about a comment about why you downvoted it? Is the above counter-factual, or irrelevant, or are you just a big fan of NTFS and VFAT?
Mar
25
comment Solaris 10 system - used disc space keeps on increasing even after deleting the directory
@lugiegu has remembered something I forgot. fuser is a Solaris program that does different stuff than lsof. Give it a try.
Mar
24
comment What is the reason for having numbers within the brackets of a function ?
I agree with Al Hazred here. The question is, in fact, different, due only to the variant interpretations of exec(2).
Mar
24
comment How to toggle between vim buffer and command shell screen in vim?
@Adrian - I don't understand what you mean by "Console" in that case. You'll have to use more standard terminology, as what you asked just plain doesn't make sense. "Console" has a somewhat specific meaning in the context of X11 interfaces, but as far as I know, "Console" doesn't mean anything specific with respect to vim.
Mar
18
comment How to protect against data leak?
@Gilles - I'm afraid that in the USA, which is what roaima asked about, "intellectual property" is not a legal term. Lawyers may informally conflate patents, trade marks, patents and trade secrets into "intellectual property", but it doesn't mean much legally. Lawyers may claim that copying an idea is theft, too, but that doesn't make it theft. There are specific court cases in US law that say otherwise: en.wikipedia.org/wiki/Dowling_v._United_States_%281985%29
Mar
18
comment How to protect against data leak?
@roaima - No, I do not. There's copyright infringement, patent infringement and something related to trade secrets. None of these are theft, in a legal or ethical sense. And the phrase "Intellectual Property" is itself misleading, as none of copyright, patent, trade secret, trade mark or trade dress are "property" in any sense of the word "property" except the most sloppy and childish usage.
Mar
18
comment How to protect against data leak?
You are aware that this situation really isn't "theft"? Since you and your boss aren't deprived of the use of the copied file, nothing has been "stolen". So, this reduces to the unwanted copying problem that the RIAA and MPAA have been trying to solve for years, unsuccessfully.
Mar
17
comment Quick boot for desktop Linux?
I have no experience with Linux Mint, but the start-stuff-at-boot system makes a difference. I went from Slackware 12 to Arch linux (pre-systemd), and saw a huge speedup in boot on my laptop. Slackware uses an old school BSD scripted startup, don't remember what Arch used to use. When Arch moved to systemd, my laptop got another speedup in boot time. So: check to see what Linux Mint uses to start things up at boot time. It can make a difference.
Mar
16
comment Do I have a dead NIC?
@unkle_junky - I'd say you might have a dead NIC. If it's a PCI or PCIe card, re-seat it after cleaning contacts. Try a different cable - they go bad randomly. Try a different port on the router. If all that fails, you've got a dead NIC.
Mar
15
comment Do I have a dead NIC?
Consider running mii-tool and ethtool on the interfaces to see what they say. Don't ignore anything that they say that doesn't make sense: see if you can reconcile the apparent nonsense with reality.
Mar
14
comment What is an inode?
@DBS - interesting thought, dragging Russel's Paradox into Unix filesystems. Alas, "everything is a file" only went so far, rather like sets in NBG set theory giving way to classes at some point, and then, only in user land. In the kernel, not everything is a file.
Mar
13
comment What is an inode?
@DBS - If you're clever and careful, you could probably open the "raw device", /dev/sda1 or whatever, find the on-disk data, and modify it without touching the file's actual data. Other than that, the chmod command changes inode without accessing file data.