Reputation
1,417
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 16
Newest
 Yearling
Impact
~40k people reached

  • 0 posts edited
  • 0 helpful flags
  • 19 votes cast
Jun
26
awarded  Yearling
Apr
21
comment Download a file to a server?
The semicoon can mean anything the receiving side wants it to mean, but in this case, it does look like it's a parameter separator.
Apr
21
comment Download a file to a server?
@hildred Good suggestion, I changed the answer to use single quotes.
Apr
21
revised Download a file to a server?
edited body
Apr
21
answered Download a file to a server?
Apr
13
answered Auto Delete Inactive files after x
Apr
8
comment How to 'drop' characters from in front of a string?
For just a few characters, I'd use ... instead of .\{3\} since (to me) it's easier to read: sed -e 's/^...//' -e 's/....$//' or in a single expression with alternation: sed -r 's/^...|....$//g'. If it were more than a few characters to delete, then I'd use the /.\{17}\/ expression instead of /.............../.
Mar
12
comment monitor linux file systems using df
I believe that for some older kernels unless the filesystem is mounted with the "intr" flag, then all NFS operations are uninterruptible. I'm not sure what "timeout" does in this case, but I suspect that it abandons the "df" command so you may end up with a bunch of zombie df's in the background.
Mar
9
awarded  Enlightened
Mar
9
awarded  Nice Answer
Mar
2
comment How do I grep recursively through .gz files?
That's only looking at a single file, it's not recursive.
Mar
2
awarded  Popular Question
Feb
24
awarded  Enlightened
Feb
24
awarded  Nice Answer
Feb
14
comment Cloning a drive larger than your own
How about using operating system utilities (resize2fs on linux) to resize the partition, then use p2v to virtualize it?
Feb
14
comment Cloning a drive larger than your own
That doesn't really address his problem since 2TB is larger than his entire filesystem... and if he's unhappy about taking 6+ hours to clone, he's not going to be happy at the overhead of bzip2. I'd use "gzip --fast".
Jan
30
comment How do I list files ending in txt only on Unix?
@don_crissti - Even knowing that his problem set is limited to the given set of files would be useful, but few real-world problems are so well defined that the entire input space is known and can be enumerated in a few items. Questions here are supposed to be based on real problems, not open-ended questions that could spawn dozens of answers. There are 4 answers below that work with the file set above, but without further information, it's not clear if any of them meet his needs.
Jan
30
comment How do I list files ending in txt only on Unix?
@don_crissti - I think the unclear part is why he doesn't want to use the period in *.txt, which is the obvious way to get the list of files he's looking for -- if he can state what problem he's trying to solve, then maybe someone can give him the answer. There are lots of ways to list only the files ending in .txt without using a '.' in the glob match, but some may not meet his needs in other ways.
Jan
29
comment Any disk encryption that locks itself for some time after a number of failed attempts?
@AaronLS - The xkcd comic assumes 11 bits of entropy per word, which is equivalent to a 2048 word vocabulary. The average 5 year old has an expressive vocabulary of 2150 words (by high school it's around 10,000 - 17,000 words), so as long as you have the vocabulary of at least a 5 year old, and don't just pull the passphrase from a few common words, the XKCD model holds true. The most important thing is to pick random words, not well known phrases.
Jan
29
comment Any disk encryption that locks itself for some time after a number of failed attempts?
Of course, a determined hacker can divide your iter-time by the number of computer's he's willing to expend on hacking you - if you have iter-time set to 60000, and he has 1000 computers to spend on hacking you, that's the same as if you set iter-time to 60, so don't assume you can use a 4 character alphanumeric password in the belief it would take him years to crack it.