Most Popular
1500 questions
74
votes
8 answers
Quickest way to transfer 55GB of images to new server
I currently have two CentOS servers. I need to know how and what the quickest way would be to "tar" up the images directory and SCP it over?
Is that the quickest way that I just suggested, because tarring is taking forever... I ran the command:
tar…
Andrew Fashion
- 1,715
74
votes
5 answers
How to send the output from a cronjob to multiple e-mail addresses?
In the beginning of a crontab file you could use the MAILTO instruction to indicate you want the output to be sent as an e-mail to an e-mail address. I would like to send the output to multiple addresses. Is it possible (and how) to specify multiple…
Boaz
- 2,319
74
votes
6 answers
Newline-separated xargs
Is it possible to make xargs use only newline as separator? (in bash on Linux and OS X if that matters)
I know -0 can be used, but it's PITA as not every command supports NUL-delimited output.
Kornel
- 1,195
74
votes
1 answer
NMAP: Check if port 80 and 8080 is open
In our company, I want to check if users are running web servers on port 80 and 8080.
I downloaded nmap and ran this command:
nmap -p 80,8080 192.168.1.0-255
I got a list of IPs and tried to access them in my browser (EG: 192.168.1.1:8080) but…
Ian
- 951
74
votes
12 answers
Do you have any useful awk and grep scripts for parsing apache logs?
I can use log analyzers, but often I need to parse recent web logs to see what's happening at the moment.
I sometimes do things like to figure out top 10 ips that request a certain file
cat foo.log | grep request_to_file_foo | awk '{print $1}' | …
deadprogrammer
- 1,701
73
votes
10 answers
Apache Default/Catch-All Virtual Host?
If I have 3 domains, domain1.com, domain2.com, and domain3.com, is it possible to set up a default virtual host to domains not listed? For example, if I would have:
DocumentRoot /www/docs/domain1
ServerName…
SJaguar13
- 947
73
votes
5 answers
Docker: failed to add the pair interfaces (operation not supported)
After installing Docker, I am getting an error when I try to run the Hello World example:
Error response from daemon: Cannot start container 4145d0fccd96b904e4ab4413735f1129b8765429bad5be71dc8d5f4c0760666d:
failed to create endpoint high_saha on…
piero-la-lune
- 833
73
votes
5 answers
The right way to keep docker container started when it used for periodic tasks
I have docker container with installed and configured software.
There is no any programm supposed to be started/runned all the time.
What I want - its ability to start some command depending on external events. like:
docker exec mysupercont…
Korjavin Ivan
- 2,270
73
votes
8 answers
Set gitlab external web port number
How do I change gitlab's default port 80 to a custom port number?
There are two approaches I've tried:
Set the port in /etc/gitlab/gitlab.rb
external_port "8888"
Then run reconfigure:
gitlab-ctl reconfigure
Set port in…
Jason Sturges
- 853
73
votes
5 answers
What is the difference between a public and private subnet in a Amazon VPC?
When I launch a server with a security group that allows all traffic into my private subnet, it displays a warning that it may be open to the world.
If it is a private subnet, how can that be?
Developr
- 1,002
73
votes
4 answers
How to read memory usage in htop?
Here is my htop output:
For example, I'm confused by this ruby script:
How much physical memory is it using? 3+1+8+51+51? 51? 51+51?
Lai Yu-Hsuan
- 883
73
votes
4 answers
best way to debug nginx rewrite rules in config file?
I have a bunch of rewrite rules that I have to port from apache to nginx.
It's a rather painful process because I'm not able to see if my rewrite rules and "if" conditions are working as I want them to.
Apache did have debugging for its rewrite…
Jiho Kang
- 1,137
73
votes
10 answers
xvda1 is 100% full, What is it? how to fix?
I'm running a Linux instance on EC2 (I have MongoDB and node.js installed) and I'm getting this error:
Cannot write: No space left on device
I think I've tracked it down to this file, here is the df output
Filesystem 1K-blocks Used…
Chris Biscardi
- 831
73
votes
7 answers
DNS A vs NS record
I'm trying to understand DNS a bit better, but I still don't get A and NS records completely.
As far as I understood, the A record tells which IP-address belongs to a (sub) domain, so far it was still clear to me. But as I understood, the NS record…
Tiddo
- 1,059
- 1
- 10
- 16
73
votes
4 answers
Check OpenSSH version and update instructions on FreeBSD system
On a FreeBSD system (8.1), I am looking for instructions on how to check the running version of OpenSSH and also instructions on the best way to download install an update of OpenSSH
ICTdesk.net
- 1,243
- 4
- 13
- 18