Most Popular
1500 questions
102
votes
3 answers
How to get the url of the current svn repo?
I have 2 svn checkouts that someone setup for me. Now I need to check these same files on another computer, but since I didn't check them out initially I don't know the urls to use when running the svn checkout command:
svn co WHAT_GOES_HERE?
Since…
Manny
- 1,023
102
votes
13 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,133
- 2
- 10
- 9
102
votes
8 answers
How to make bash scripts print out every command before it executes?
For example, I have a simple bash file
#!/bin/bash
cd ~/hello
ls
How can I make it display every command before executing it? Just the opposite effect of "@echo off" in windows batch scripting.
Epeius
- 1,031
102
votes
11 answers
How to prevent a user from login in, but allow "su - user" in Linux?
How do you allow a user to log in using "su - user" but prevent the user from login in using SSH?
I tried to set the shell to /bin/false but the when I try to su it doesn't work.
Are there several ways to only allow logins by su?
Is SSH's AllowUser…
NoozNooz42
- 1,185
102
votes
9 answers
mysqldump to a tar.gz
Usually after dumping a MySQL database with mysqldump command I immediately tar/gzip the resultant file. I'm looking for a way to do this in one command:
So from this:
mysqldump dbname -u root -p > dbname.sql
tar czvf dbname.sql.tgz dbname.sql
rm…
pygorex1
- 1,201
- 2
- 10
- 10
101
votes
4 answers
How to filter http traffic in Wireshark?
I suspect my server has a huge load of http requests from its clients.
I want to measure the volume of http traffic.
How can I do it with Wireshark?
Or probably there is an alternative solution using another tool?
This is how a single http…
par
- 1,263
- 3
- 12
- 15
101
votes
10 answers
How to disable everything in crontab -l?
I just want to pause everything. Don't execute anything listed on crontab -l.
Alex
- 8,591
101
votes
4 answers
Is there a directory equivalent of /dev/null in Linux?
When configuring an application, you can often use /dev/null as config file if you want the application to read an empty file. But, if the application reads a list of files from a directory, you cannot use this trick. You would need to give it an…
roelvanmeer
- 1,794
101
votes
4 answers
"413 Request Entity Too Large" in Nginx with "client_max_body_size" set
I am uploading a 26Gb file, but I am getting:
413 Request Entity Too Large
I know, this is related to client_max_body_size, so I have this parameter set to 30000M.
location /supercap {
root /media/ss/synology_office/server_Seq-Cap/;
index…
user2979409
- 1,111
101
votes
13 answers
Ansible: Execute task only when a tag is specified
Ansible tags can be used to run only a subset of tasks/roles. This means that by default all tasks are executed and we can only prevent some tasks to execute.
Can we limit a task to be exectued only when "foo" tag is specified? Can we use current…
Taha Jahangir
- 2,182
101
votes
3 answers
Adding a user to an additional group using ansible
How can I add a user to additional groups with Ansible? For example, I would like to add a user to the sudo group without replacing the user's existing set of groups.
vdboor
- 3,880
101
votes
3 answers
How do high traffic sites service more than 65535 TCP connections?
If there is a limit on the number of ports one machine can have and a socket can only bind to an unused port number, how do servers experiencing extremely high amounts (more than the max port number) of requests handle this? Is it just done by…
alh
- 1,149
101
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,112
- 2
- 8
- 7
101
votes
10 answers
How do I do Multihop SCP transfers between machines?
I want to copy a file from my machine A to server C, but only have access to server C through server B.
Instead of first transferring to server B, log in and then transfer to server C, Is is possible to transfer the file directly with SCP or similar…
sverrejoh
- 1,111
101
votes
11 answers
Windows server last reboot time
How can I find a Windows server's last reboot time, apart from 'net statistics server/workstation'?
Sakthi