Most Popular

1500 questions
132
votes
8 answers

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in a TIME_WAIT state. Is there a program you can…
Rehan
  • 1,423
  • 2
  • 10
  • 5
132
votes
4 answers

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
user962449
  • 1,447
  • 2
  • 12
  • 6
132
votes
20 answers

How do you install Node.JS on CentOS?

I've found numerous installation instructions for Node.js but they all seem so complicated -- I'm not a super sys admin but I can get around. I have yum on the system, but I didn't find any node.js packages, and I'm not sure how to compile code on…
qodeninja
  • 2,753
  • 10
  • 32
  • 33
132
votes
12 answers

Can I hide all server / os info?

I don't want anyone to be able to detect that I'm using NGINX or even Ubuntu from the internet. There are tools out there (such as BuiltWith) which scan servers to detect what tools they're using. Also, some cracking tools might help with deteting.…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
131
votes
7 answers

In a PowerShell script, how can I check if I'm running with administrator privileges?

In a PowerShell script, how can I check if I'm running with administrator privileges?
Michael Kelley
  • 1,425
  • 2
  • 11
  • 9
131
votes
44 answers

Cheat Sheets for System Administrators?

I'd like to start a collection of good, free cheat sheet resources for system administrators. Please add your favorite ones. From the Wikipedia "cheat sheet" article: In more general usage, a "cheat sheet" is any short (one or two page) …
splattne
  • 28,508
  • 20
  • 98
  • 148
130
votes
4 answers

Why do we use a OS Base Image with Docker if containers have no Guest OS?

I've just started to study Docker and there's something that's being quite confusing for me. As I've read on Docker's website a container is different from a virtual machine. As I understood a container is just a sandbox inside of which an entire…
user1620696
  • 1,413
  • 2
  • 11
  • 9
130
votes
4 answers

What type of DNS record is needed to make a subdomain?

I'm making a website, and I need a sub-domain. I need to add the new part to my website, but I don't know which type of DNS record to add in the DNS console to point to this new site. Is it A or CNAME?
Keavon
  • 1,401
  • 2
  • 8
  • 7
130
votes
9 answers

How to copy file preserving directory path in Linux?

I have Eclipse projects and ".project" file in them, the directory structure looks like 'myProject/.project'. I want to copy these '.project' files to another directory, but I want the enclosing directory name to be preserved. Let's say I have…
dhblah
  • 1,403
  • 2
  • 10
  • 7
129
votes
11 answers

FreeBSD: Directory called ^C (really!) - how to remove?

I made a typo: $ history 169 9:34 la /usr/local/etc/ 170 9:35 sudo mkdir ^C 171 9:36 sudo mkdir /usr/local/etc/dnsmasq.d Now I have a file that is called ^C (ctrl+C)!! When I use ls I just see a questionmark (probably due to the locale?) %…
Mausy5043
  • 1,347
  • 3
  • 9
  • 14
129
votes
9 answers

How do I get the history of "apt-get install" on Ubuntu?

I am about do move a server from one Ubuntu box to another. I'm not cloning the old box to the new; I'm creating a new system and will move data as needed. I want to install all the software that I have on the old box on the new one. Is there a…
Paul Hoffman
  • 2,214
  • 5
  • 19
  • 23
128
votes
9 answers

How can I monitor hard disk load on Linux?

Is there a good command line utility to monitor hard disk load on linux? Something like top but then monitoring disk activity i.s.o. cpu usage. More specifically, I suspect that for some (heavy load) servers after several optimizations on various…
Pieter
  • 1,409
  • 3
  • 12
  • 9
128
votes
4 answers

All servers flooded by salt water, is it possible to recover data from multi-platter drives?

All of my servers are currently flooded by salt water. Is it possible for each platter in a multi-platter drive to be separated, cleaned, imaged, and merged into a new virtual drive for data recovery?
michael
128
votes
14 answers

How do I force sync the time on Windows Workstation or Server?

What is the command to sync a Windows workstation or server to its configured time source?
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
128
votes
14 answers

Why is RAID not a backup?

When someone mentions RAID in a conversation about backups, invariably someone declares that "RAID is not a backup." Sure, for striping, that's true. But what's the difference between redundancy and a backup?
jldugger
  • 14,342
  • 20
  • 77
  • 129