Most Popular
1500 questions
135
votes
3 answers
What does Apache's "Require all granted" really do?
I've just update my Apache server to Apache/2.4.6 which is running under Ubuntu 13.04. I used to have a vhost file that had the following:
AllowOverride All
But when I ran that I…
John Crawford
- 2,055
135
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,477
135
votes
4 answers
Postgresql: what does GRANT ALL PRIVILEGES ON DATABASE do?
I'm trying to grant all privileges on all tables of a given database to a new postgres user (not the owner). It seems that GRANT ALL PRIVILEGES ON DATABASE my_db TO new_user; does not do that. After running said command successfully (as the…
rz.
- 1,453
- 2
- 10
- 7
135
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,274
134
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,443
- 2
- 10
- 7
133
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,443
133
votes
4 answers
FreeBSD performance tuning: Sysctl parameter, loader.conf, kernel
I wanted to share knowledge of tuning FreeBSD via sysctl.conf / loader.conf
/ KENCONF / etc. It was initially based on Igor Sysoev's (author of nginx)
presentation about FreeBSD tuning up to 100,000-200,000 active connections.
Newer versions of…
SaveTheRbtz
- 5,751
133
votes
4 answers
How to test a HTTPS URL with a given IP address
Let's say a website is load-balanced between several servers. I want to run a command to test whether it's working, such as curl DOMAIN.TLD. So, to isolate each IP address, I specify the IP manually. But many websites may be hosted on the server, so…
Martin
- 3,805
133
votes
7 answers
Does Windows have a built-in ZIP command for the command line?
Since Windows Explorer (since at least Windows XP) has some basic support for ZIP files, it seems like there should be a command-line equivalent, but I can't seem to find any sign of one.
Does Windows (XP, Vista, 7, 8, 2003, 2008, 2013) ship with a…
Electrons_Ahoy
- 1,831
132
votes
4 answers
Nginx: How do I forward an HTTP request to another port?
What I want to do is: When someone visits http://localhost/route/abc the server responds exactly the same as http://localhost:9000/abc
Now I configure my Nginx server like this:
location /route {
proxy_pass http://127.0.0.1:9000;
}
The HTTP…
WoooHaaaa
- 1,685
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
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,783
132
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
- 84,369
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,636
- 20
- 98
- 150
131
votes
13 answers
How to tell if a Linux system is big endian or little endian?
I know that certain processors are Big Endian and others are Little Endian. But is there a command, bash script, python script or series of commands that can be used at the command line to determine if a system is Big Endian or Little Endian?…
Jake Wilson
- 8,924