Most Popular
1500 questions
124
votes
8 answers
How can I kill all stopped jobs?
When I try to exit from my Linux server I get the message:
There are stopped jobs.
: Is there a single command to kill these?
yazz.com
- 7,193
- 15
- 38
- 39
124
votes
7 answers
How to change an EC2 instance's security group
I have created a new EC2 instance. It got assigned the default security group. I want to change that security group. How?
user35042
- 2,681
- 12
- 34
- 60
124
votes
2 answers
How can I show user's privileges in MySQL?
I know that I can set user's privileges in the following simple way:
grant all on [database name].[table name] to [user name]@[host name];
But how can I see existing privileges?
I need to see data similar to those which are used in grant. In other…
Roman
- 2,569
- 10
- 32
- 32
123
votes
8 answers
How can I implement ansible with per-host passwords, securely?
I would like to use ansible to manage a group of existing servers. I have created an ansible_hosts file, and tested successfully (with the -K option) with commands that only target a single host
ansible -i ansible_hosts host1 --sudo -K # + commands…
supervacuo
- 1,433
- 2
- 11
- 10
123
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,585
- 5
- 20
- 16
123
votes
24 answers
rm on a directory with millions of files
Background: physical server, about two years old, 7200-RPM SATA drives connected to a 3Ware RAID card, ext3 FS mounted noatime and data=ordered, not under crazy load, kernel 2.6.18-92.1.22.el5, uptime 545 days. Directory doesn't contain any…
BMDan
- 7,249
- 2
- 23
- 34
122
votes
4 answers
How do I auto-start docker containers at system boot?
What is a good way to automatically start docker containers when the system boots up?
Is there a preferred way to do this on Ubuntu 14.04?
I've used supervisord in the past to auto start web apps. But that doesn't feel like the right thing for…
Stefan Arentz
- 1,330
- 2
- 9
- 8
122
votes
16 answers
How do you increase a KVM guest's disk space?
I setup an Ubuntu guest on a CentOS KVM host with initially 6GB of disk space. How do I go about increasing the Ubuntu guest's disk space from the command line?
EDIT #1: I'm using a disk image file (qemu).
slm
- 7,615
- 16
- 56
- 76
122
votes
13 answers
Engineers are using explosives to remove hard rock outside our office building. What countermeasures should we take?
Our building is located approx. 100 meters from the explosive charges. They happen several times per day, and really shake the entire building a lot. This is going to go on for many days and the blasts are supposed to get stronger.
Our server rooms…
Chris Dale
- 1,553
- 2
- 12
- 22
122
votes
8 answers
How to get pid of just started process
I want to start process (eg. myCommand) and get its pid (to allow to kill it later).
I tried ps and filter by name, but I can not distinguish process by names
myCommand
ps ux | awk '// {print $2}'
Because processes names are not…
rafalmag
- 1,331
- 2
- 9
- 9
122
votes
28 answers
How to copy a large number of files quickly between two servers
I need to transfer a huge amount of mp3s between two serves (Ubuntu).
By huge I mean about a million files which are on average 300K.
I tried with scp but it would have taken about a week. (about 500 KB/s)
If I transfer a single file by HTTP, I get…
nicudotro
- 1,551
- 2
- 13
- 14
121
votes
16 answers
Nginx 1 FastCGI sent in stderr: “Primary script unknown”
My first time using Nginx, but I am more than familiar with Apache and Linux. I am using an existing project and when ever I am trying to see the index.php I get a 404 File not found.
Here is the access.log entry:
2013/06/19 16:23:23 [error] 2216#0:…
We0
- 1,409
- 2
- 11
- 11
121
votes
17 answers
Why does sudo command take long to execute?
I've been picking up Linux (Fedora 10, then 11) over the past few months (and enjoying it immensely-- it's like discovering computers all over again, so many things to learn).
I've added my user to the last line of the /etc/sudoers file as shown…
Cuga
- 101
- 3
- 4
- 11
121
votes
4 answers
What is the difference between unicast, anycast, broadcast and multicast traffic?
I have never had the privilege of working in an environment that required complicated routing or if it did require it, it was handled upstream of me. I've always used very simple static routing configurations and never needed to do any multipath…
user62491
121
votes
7 answers
REJECT vs DROP when using iptables
Is there any reason why I would want to have
iptables -A INPUT -j REJECT
instead of
iptables -A INPUT -j DROP
Mike B
- 11,871
- 42
- 107
- 168