Reputation
1,237
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 9
Newest
 Caucus
Impact
~71k people reached

  • 0 posts edited
  • 0 helpful flags
  • 77 votes cast
Feb
5
comment What is fastest way to copy a sparse file? What method results in the smallest file?
The only other one I'd try, given your commendable efforts, is rsync with the --sparse option. It's also possible that different block size in dd would improve its speed or bloat.
Jan
4
comment Delete the contents of a huge directory in CentOS 6.6
ls -f | xargs rm will be faster than find. The -f option disables the sort (shell globbing always sorts; ls usually does)
Dec
22
comment How can I remove “Red Hat Network Code” from the RedHat?
The Red Hat Network Code is all the code you got from Red Hat. If you want to run legally, without a support subscription to Red Hat, use CentOS or Fedora.
Dec
22
comment Is it at all commonplace to make service available via the same host as its redundancy, just different ports?
Configuring "redundant" services on the same host is a bad production practice that may be convenient in development. Don't prohibit it (send a warning, if you must).
Nov
26
awarded  Caucus
Aug
11
awarded  Yearling
May
15
comment send files to dozens of servers quickly
This was an operational problem for me. I implemented a distribution tree for an enterprise NIS space that had over 200 slave servers being pushed from one master. The hourly update was taking over two hours... I added a servers NIS map (key=server name, value = update_responsible_server). With a fanout of about 8, we had update time under two minutes. By making small mods to the existing NIS distribution scripts, design, test, and implementation took less than a day.
May
4
comment How to hide a password passed as command line argument?
@tonny All Unix-like systems, and Windows, too, and all other OSes that I know of have ways to pass information to running processes besides the command line. It isn't the OS, its the way that daemon was written
May
2
comment How to hide a password passed as command line argument?
@Tonny - it's not the Operating System; there are ways to solve this in every OS I know of. It's the particular daemon OP is running
May
1
answered Is it possible to produce an unfair ethernet NIC?
Apr
23
awarded  Informed
Apr
22
comment Cannot remove or list directory (ls or rm) Linux - Debian
If you use ls -f it should report the directory entries as they are found, without trying to sort. Used for precisely this kind of situation.
Mar
25
comment I accidently gave all my project files a .gz format, how to revert it?
I'd use basename $file .gz instead of sed, but the same approach
Feb
14
awarded  Critic
Feb
14
comment Does /etc/fstab need to be world readable?
The second paragraph, in particular, shows a lack of experience with this kind of on-line help forum. Many people (including myself) have thought of a poor solution to a given issue and gotten stuck on step 5 - actually explaining the overall issue allows people to point out better solutions that may bypass the initial specific question.
Jan
22
comment Root can only change a file
What are the containing directory path permissions? If the new user can delete and recreate the file, the existing file permissions are useless. The 600 permissions will prevent non-root users from viewing (assuming you've done the chown as well).
Oct
29
comment Long string insertion with sed
Well, ex is like vi for the command line. ed is a predecessor
Oct
28
comment “short” when testing an ethernet cable which is not connected to anything
@xirtyllo but is there a crimp or cut?
Oct
11
comment cannot delete file with rm -rf
You can use clri and then run fsck
Oct
11
comment How can I block this traffic I see in wireshark?
TCP is never "one-way communication". If you want to accept incoming data and not provide any ACK or outgoing packets, you'll have to use some other protocol, probably UDP.