Use this tag for asking about programs you have written to perform system-administration tasks. Non-programming questions about system administration are off-topic for Stack Overflow and should not be asked here.
Questions tagged [system-administration]
983 questions
18
votes
11 answers
How much of Linux should I learn in order to deploy web sites using LAMP?
Being a Windows developer I'm currently working on my own project using LAMP. I understand what I need to know of PHP and MySQL, but Linux looks huge and it's not clear where to start and what is enough given my goals.
And my goals are to grasp…

z-boss
- 17,111
- 12
- 49
- 81
18
votes
2 answers
Is there any performance hit involved in choosing gzip over deflate for http compression?
We recently switched some of our sites from deflate to gzip and noticed a significant increase in cpu load on our servers.

kitsune
- 11,516
- 13
- 57
- 78
18
votes
11 answers
Best way to sandbox Apache on Linux
I have Apache running on a public-facing Debian server, and am a bit worried about the security of the installation. This is a machine that hosts several free-time hobby projects, so none of us who use the machine really have the time to constantly…
Please delete this account
17
votes
5 answers
PowerShell Script to Get a Directory Total Size
I need to get the size of a directory, recursively. I have to do this every month so I want to make a PowerShell script to do it.
How can I do it?

Jedi Master Spooky
- 5,629
- 13
- 57
- 86
17
votes
2 answers
What are the limits to JShell?
I found this question, and this other, so intriguing that it begs several questions, at least for me:
Rather open-ended question, but where is jshell confined to? Obviously, GUI apps aren't in the domain for jshell solutions, or IDE…

Thufir
- 8,216
- 28
- 125
- 273
16
votes
2 answers
How to create Apps in android which can't be uninstalled? Can we make System apps?
We are providing one default app for our customers with android phone. Which user can not be uninstall. I have used Device Admin feature from this example But user can delete app by deactivate from settings.
Another possible way I have found to…

Hardik Joshi
- 9,477
- 12
- 61
- 113
15
votes
6 answers
What is the most secure way to retrieve the system Drive
I know that the following should work:
Environment.GetEnvironmentVariable("windir", EnvironmentVariableTarget.Machine)
My problem with this call is that if for some reason someone decided to remove the "windir" Env Var , this won't work.
Is there…

user88637
- 11,790
- 9
- 37
- 36
15
votes
2 answers
Dig +trace does not do a trace
dig +trace google.com
; <<>> DiG 9.10.6 <<>> +trace google.com
;; global options: +cmd
;; Received 12 bytes from 100.98.0.0#53(100.98.0.0) in 388 ms
dig google.com +trace
; <<>> DiG 9.10.6 <<>> google.com +trace
;; global options: +cmd
;; Received…

Calicoder
- 1,322
- 1
- 19
- 37
15
votes
19 answers
As a programmer how much are you expected to know outside of programming?
I'm wondering what you do as a programmer that's not programming but necessary for your task (eg: local setup, server setup, deployment, etc). I'm curious to know how many non-programming related tasks people are performing.
For example, when on…

Zero Cool
- 1,866
- 4
- 19
- 28
15
votes
5 answers
BASH get major/minor version from string
I am quite new BASH scripting and I am trying to create my own script to download/build from source a package. However I would like to add some interaction to my script to make it future ready for newer versions.
My script asks the user for the…

CrispyDuck
- 391
- 1
- 2
- 8
14
votes
5 answers
Renaming lots of files in Linux according to a pattern
I'm trying to do three things with the mv command, but not sure it's possible? Probably need a script. not sure how to write it. All files are in same folder.
1) Files ending with v9.zip should just be .zip (the v9 removed)
2) Files containing _…

Josh Bond
- 1,719
- 4
- 17
- 26
14
votes
3 answers
When to develop using Powershell vs C#?
I'm just getting started in PowerShell and one of my sysadmins told me that Powershell can do as much as C# can for systems management, if not more.
Please forgive the ignorance of this question, but when would I use Powershell over C#?

makerofthings7
- 60,103
- 53
- 215
- 448
14
votes
7 answers
What are the quintessential tools and resources for hosting Rails applications on Amazon's EC2?
I'm looking for:
documentation
blogs
books
ready-to-use pre-configured slice images
services
wrappers
libraries
tutorials
...anything that would make it easier to start using EC2 to host a Rails application.

Teflon Ted
- 8,696
- 19
- 64
- 78
13
votes
8 answers
Which Linux distribution should I use as a Xen host?
I ordered a server for the home office and I would like to partition it with Xen. I think this will keep things clean and easier to maintain. I will be running things like MySQL, PostgreSQL, Tomcat, and my own code.
What freely available Linux…

Stefan Arentz
- 34,311
- 8
- 67
- 88
13
votes
2 answers
Kubernetes 1.11 could not find heapster for metrics
I'm using Kubernetes 1.11 on Digital Ocean, when I try to use kubectl top node I get this error:
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
but as stated in the doc, heapster is…

FakeAccount
- 242
- 1
- 3
- 19