Most Popular
1500 questions
176
votes
7 answers
What does Virtual memory size in top mean?
I am running top to monitor my server performance and 2 of my java processes show virtual memory of up to 800MB-1GB. Is that a bad thing?
What does virtual memory mean?
And oh btw, I have swap of 1GB and it shows 0% used. So I am confused.
Java…
kapso
- 2,103
175
votes
11 answers
Run a .bat file in a scheduled task without a window
I have a scheduled task that starts a batch script that runs robocopy every hour. Every time it runs a window pops up on the desktop with robocopy's output, which I don't really want to see.
I managed to make the window appear minimized by making…
Tom Dunham
- 1,895
- 2
- 14
- 8
174
votes
10 answers
How do I diff two text files in Windows Powershell?
I have two text files and want to find the differences between them using Windows Powershell. Is there something similar to the Unix diff tool available? Or is there another other way I haven't considered?
I've tried compare-object, but got this…
Brian Willis
- 3,839
174
votes
9 answers
Is it possible to generate RSA key without pass phrase?
I'm working with Apache2 and Passenger for a Rails project.
I would like to create a self-signed SSL Certificate for testing purposes.
sudo openssl rsa -des3 -in server.key -out server.key.new
When i enter the above command, it says
writing RSA…
diya
- 1,893
172
votes
5 answers
How to remove the path with an nginx proxy_pass
I have a running web-application at http://example.com/, and want to "mount" another application, on a separate server on http://example.com/en. Upstream servers and proxy_pass seem to work, but for one issue:
upstream luscious {
server…
berkes
- 2,285
171
votes
10 answers
How bad is IPv4 address exhaustion really?
For years the press has been writing about the problem that there are now very few IPv4 addresses available. But on the other hand, I'm using a server hosting company which gladly gives out public IPv4 addresses for a small amount of money. And my…
oz1cz
- 1,605
170
votes
9 answers
Find name of Active Directory domain controller
How can I find out the name/IP address of the AD domain controller on my network?
user18682
- 2,271
170
votes
4 answers
Getting "Cannot ioctl TUNSETIFF tun: Operation not permitted" when trying to connect to OpenVPN
I'm trying to setup an OpenVPN Access Server in AWS using the market place AMI, but I;m struggling to connect to it.
The access server is up and running. I've also added a user with Auto-Login and generated the relevant client config and…
Stephen Melrose
- 5,965
169
votes
5 answers
Force dig to resolve without using cache
I'm wondering if there is a way to query a DNS server and bypass caching (with dig). Often I change a zone on the DNS server and I want to check if it resolves correctly from my workstation. But since the server caches resolved requests, I often get…
Daniel
- 3,137
- 5
- 23
- 28
169
votes
2 answers
tar - Remove leading directory components on extraction
How can you extract only the target dir and not the complete dir tree?
compress
tar cf /var/www_bak/site.tar /var/www/site
extract
tar xf /var/www/site.tar -C /tmp
This will produce:
/tmp/var/www/site
How is it possible to avoid the whole dir…
clarkk
- 2,085
169
votes
5 answers
How to add dependency on a Windows Service AFTER the service is installed
I have a Windows Service that makes use of a SQL Server database. I don't have control over the installation of the service, but would like to add a dependency on the service to ensure that it starts after SQL server has started. (SQL server is…
Rick
- 1,835
168
votes
3 answers
Why can't a CNAME record be used at the apex (aka root) of a domain?
This is a Canonical Question about CNAMEs at the apices (or roots) of zones
It's relatively common knowledge that CNAME records at the apex of a domain are a taboo practice.
Example:
example.com. IN CNAME ithurts.example.net.
In a best case…
Andrew B
- 33,098
168
votes
11 answers
bash: print stderr in red color
Is there a way to make bash display stderr messages in red color?
kolypto
- 11,218
166
votes
14 answers
Running a cron job manually and immediately
(I have already read How can I test a new cron script ?.)
I have a specific problem (cron job doesn't appear to run, or run properly), but the issue is general: I'd like to debug scripts that are cronned. I am aware that I can set up a * * * * *…
Pistos
- 3,153
166
votes
4 answers
Find the location of a systemd unit file service
There are many different places where systemd unit files may be placed. Is there a quick and easy way to ask systemd where it read a service’s declaration from, given just the service name?
Joachim Breitner
- 3,999