Most Popular
1500 questions
108
votes
7 answers
list all packages from a repository in ubuntu / debian
is there a command to see what packages are available from a certain ppa repository?
opensas
- 1,211
108
votes
14 answers
Supervisor not loading new configuration files
I have a problem deploying Django app using Gunicorn and Supervisor. While I can make Gunicorn serving my app (by setting proper PYTHONPATH and running apropriate command, the one from supervisord config) I can't make supervisor to run it. It just…
grucha
- 1,193
107
votes
11 answers
How to disable everything in crontab -l?
I just want to pause everything. Don't execute anything listed on crontab -l.
Alex
- 8,839
107
votes
14 answers
Is Ping a reliable way to check if a server is available?
In my application I am pinging a server and waiting for a response. I am using this to determine whether the server is available and responsive or not.
Is this a reliable way of determining availability? I assume a firewall could be filtering icmp…
Peter Kelly
- 1,102
106
votes
11 answers
How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?
How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?
C. Ross
- 3,125
106
votes
5 answers
Best way to gracefully restart CentOS?
I always used the command:
shutdown -r now
However, sometimes that causes MySQL issues.
What's the most graceful way to restart CentOS?
I've seen:
reboot
and
halt
How can I gently reboot the machine?
User
- 1,425
106
votes
6 answers
How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off
This is more of a curiosity then a real problem, I am just to lazy to reboot or log off my laptop.
I have connected to a network share on a Windows server with domain credentials from a non-domain Windows 7 machine, I didn't mark the option to…
ralz
- 2,861
- 3
- 19
- 23
106
votes
3 answers
Add comment to existing SSH public key
I have an existing SSH key (public and private), that was created with ssh-keygen. How can I add a comment to this existing key?
Martin
- 1,343
106
votes
8 answers
What limits the maximum number of connections on a Linux server?
What kernel parameter or other settings control the maximum number of TCP sockets that can be open on a Linux server? What are the tradeoffs of allowing more connections?
I noticed while load testing an Apache server with ab that it's pretty easy to…
Ben Williams
- 2,426
105
votes
5 answers
Configuring Docker to not use the 172.17.0.0 range
Due to problems with captive portals and the default Docker IP range I am trying to make Docker use the 198.18.0.0 range, instead of 172.17.0.0, which clashes with the captive portals used on the trains where I live.
Following the docs, I created…
jrtapsell
- 1,386
105
votes
6 answers
How to get a .pem file from ssh key pair?
I created a key pair using ssh-keygen and get the two clasic id_rsa and id_rsa.pub.
I imported the public key into my AWS EC2 account.
Now I created a windows instance and to decrypt that instance password, AWS console is asking me for a .pem file.…
user120858
105
votes
6 answers
Why can't MX records point to an IP address?
I understand you should not point a MX record at an IP address directly, but should instead point it to an A record, which, in turns, points to the IP address of your mail server.
But, in principle, why is this required?
dayuloli
- 1,303
105
votes
4 answers
How does ServerName and ServerAlias work?
It's the following part of a virtual host config that I need further clarification on:
# Admin email, Server Name (domain name), and any aliases
ServerAdmin example@example.com
ServerName 141.29.495.999
ServerAlias…
njp
- 1,152
105
votes
8 answers
Show all users and their groups/vice versa
I know I have existing groups and users but I'm not sure about their association. Is there an shell command I can use to list all users or all groups and a command to list all groups/users for a specified user/group?
So something like showusers…
Steve Robbins
- 2,032
105
votes
2 answers
scp without known_hosts check
Is there any chance to skip the known_hosts check without clearing known_hosts or disable it in ssh.conf? I neither have access to known_hosts nor ssh.conf yet.
Don't find any suitable in man.
burnersk
- 2,186