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

  • 0 posts edited
  • 0 helpful flags
  • 20 votes cast
Jan
31
comment Sudoers for one day per week?
@SamWatkins - sometimes the right answer to a question is "You can't do what you want even if you can do something that looks like it does".
Dec
24
comment Mounted dir disappears after restart
@DonSimon Man pages are great if you know what you're looking for, but they aren't great how-to guide for neophyte users. I already know an answer to his question, but it's not at all obvious from mount's man page that it is the right answer, this is far from clear: The file /etc/fstab (see fstab(5)), may contain lines describing what devices are usually mounted where, using which options. Even the fstab man page doesn't make it clear that it describes filesystems mounted upon boot. For a cdrom drive he might also be better served by some sort of automounter.
Dec
7
comment How do I pipe ls to grep, and delete the files filtered by grep?
No need to pipe to xargs if you use -exec option: find . -name '*chrome*' -exec rm -i {} +
Nov
17
comment Host name changed remotely by wifi?
If he translated the city name to TU Vienna, then it would be a lot less clear why he got a tuwien.ac.at domain name for those that don't know the translation. I don't see how such a translation would add anything useful to the question.
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