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

  • 0 posts edited
  • 0 helpful flags
  • 19 votes cast
Aug
20
comment How to safely turn off swap permanently? (on Debian Jessie)
@SnakeDoc - you won't typically get a kernel panic, the OOM handler will kick in and kill process(es) to free up memory (and it usually does a pretty good job deciding which one(s) to kill, generally giving preference to killing larger and newer processes). I maintain a large number of servers without swap that are set to panic on OOM instead of killing processes because the servers are configured such that they will normally never run out of memory and if they do, I want them to panic and reboot rather than swap and slow down (or let the OOM handler decide what processes to kill)
Jul
27
comment What does the `-C` flag exactly do in `scp`?
@Score_Under - The zip format is also used by Java to package .jar files, so zip is still used extensively on many Linux servers.
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'/delete 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.