Most Popular
1500 questions
283
votes
13 answers
Can I nohup/screen an already-started process?
I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in screen.
Is there any way to "retroactively" nohup a…

ojrac
- 2,933
- 3
- 18
- 5
280
votes
160 answers
Useful Command-line Commands on Windows
The aim for this Wiki is to promote using a command to open up commonly used applications without having to go through many mouse clicks - thus saving time on monitoring and troubleshooting Windows machines.
Answer entries need to…

dance2die
- 2,011
- 7
- 32
- 41
280
votes
15 answers
Finding out what user Apache is running as?
I want to secure a file upload directory on my server as described beautifully here, but I have one problem before I can follow these instructions. I don't know what user Apache is running as.
I've found a suggestion that you can look in httpd.conf…
Anna
278
votes
45 answers
What are the obstacles to providing reliable Internet access and Wi-Fi at large tech conferences?
Every tech conference I've ever been to, and I've been to a lot, has had absolutely abysmal Wi-Fi and Internet access.
Sometimes it's the DHCP server running out of addresses. Sometimes the backhaul is clearly inadequate. Sometimes there's one…

Joel Spolsky
- 3,686
- 4
- 22
- 19
278
votes
7 answers
command for checking Apache configuration
I'm looking for a command that checks the validity of the config files in Apache server on both Debian and RHEL distros. I need to do this prior to restart, so there will be no downtime.

Sigtran
- 2,883
- 2
- 15
- 5
274
votes
6 answers
How to assign permissions to ApplicationPoolIdentity account
In IIS 7 on Windows Server 2008, application pools can be run as the "ApplicationPoolIdentity" account instead of the NetworkService account.
How do I assign permissions to this "ApplicationPoolIdentity" account. It does not appear as a local user…

Triynko
- 3,418
- 6
- 31
- 30
272
votes
3 answers
Moving an already-running process to Screen
My office job routinely sees me connected to a Linux box via VNC.
Sometimes I start a remote job on the console, and realize later that it runs much longer than expected. (Should have started that one under Screen in the first place...)
I don't want…

DevSolar
- 2,896
- 3
- 16
- 11
271
votes
6 answers
how to download the ssl certificate from a website?
I want to download the ssl certificate from, say https://www.google.com, using wget or any other commands. Any unix command line? wget or openssl?

RainDoctor
- 4,422
- 3
- 23
- 25
269
votes
4 answers
How to remove an image tag in Docker without removing the image itself?
Let's say I want to tag a Docker image, and make a typo. How do I remove the tag without removing the image itself? Neither the manpages nor the Docker documentation mention removing tags.
docker tag 0e5574283393 my-imaj
docker tag 0e5574283393…

Mihai
- 3,076
- 3
- 14
- 12
269
votes
2 answers
Why is "chmod -R 777 /" destructive?
This is a Canonical Question about File Permission and Why 777 is "destructive".
I'm not asking how to fix this problem, as there are a ton of references of that already on Server Fault (reinstall OS). Why does it do anything destructive at…

samwise
- 2,393
- 2
- 14
- 9
268
votes
15 answers
I've inherited a rat's nest of cabling. What now?
You know, you see pictures like below and sort of chuckle until you actually have to deal with it.
I have just inherited something that looks like the picture below. The culture of the organization does not tolerate down time very well, yet I have…

Chad Harrison
- 6,990
- 10
- 29
- 41
266
votes
5 answers
Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?
This may be a bit of a noobish question, but I was taking a look at /etc/hosts on my new Xubuntu install and saw this:
127.0.0.1 localhost
127.0.1.1 myhostname
On most 'nixes I've used, the second line is omitted, and if I want to add my hostname…

Tom
- 3,213
- 2
- 20
- 19
265
votes
2 answers
Do systemd unit files have to be reloaded when modified?
Let's say I write a mine.service file. Then I use systemctl enable mine.service.
If I later decide to edit mine.service, do I have to tell systemd that mine.service was changed? If so, how do I do that?

425nesp
- 2,892
- 2
- 12
- 8
265
votes
2 answers
Linux command to inspect TXT records of a domain
Is there a linux shell command that I can use to inspect the TXT records of a domain?

John
- 7,343
- 23
- 63
- 87
263
votes
3 answers
What is archive mode in rsync?
I know you can use -a or --archive to activate archive mode when using rsync. Unfortunately, I have no idea what archive mode is supposed to do, and the man page is not at all explicit about what this is:
equals -rlptgoD (no -H,-A,-X)
Can you…

allyourcode
- 2,777
- 2
- 16
- 6