Most Popular
1500 questions
117
votes
13 answers
Using wget to recursively download whole FTP directories
I want to copy all of the files and folders from one host to another.
The files on the old host sit at /var/www/html and I only have FTP access to that server, and I can't TAR all the files.
Regular connection to the old host through FTP brings me…
user9406
117
votes
11 answers
Should I use tap or tun for openvpn?
What are the differences between using dev tap and dev tun for openvpn? I know the different modes cannot inter-operate. What is the technical differences, other then just layer 2 vs 3 operation. Are there different performance characteristics, or…
Thomaschaaf
- 3,092
- 5
- 30
- 24
116
votes
10 answers
How to extend an ext4 partition and filesystem?
I have a 400GB disk with a 320GB ext4 partition.
I would like to grow the ext4 partition to use the left space (80GB of free space).
+--------------------------------+--------+
| ext4 | Free …
mimipc
- 1,947
- 3
- 19
- 27
116
votes
5 answers
What's the difference betwen the single dash and double dash flags on shell commands?
I'm new to working in the shell and the usage of these commands seems arbitrary. Is there a reason one flag has a single dash and another might have a double dash?
kylex
- 1,421
- 5
- 14
- 18
116
votes
9 answers
Can you mount a network switch upside down?
We just took delivery of a new Avaya 2500 48-port switch, that has 24 PoE ports. The problem is that all the PoE ports are on the left-hand size of the switch, and our PoE device cables can only reach the right-hand side of the switch (we're…
Mark Henderson
- 68,823
- 31
- 180
- 259
116
votes
5 answers
Postgres equivalent to MySQL's \G?
Does anyone know if Postgres has a way to display query results "prettily", like how MySQL does when ending a query with \G on the command line? For instance, "select * from sometable\G" as opposed to "select * from sometable;"
Many thanks!
law
- 1,490
- 3
- 11
- 11
116
votes
2 answers
How does try_files work?
I looked at the nginx documentation and it still confuses me utterly.
How does try_files work? Here is what the documentation says:
From NginxHttpCoreModule
try_files
syntax: try_files path1 [path2] uri
default: none
context: server,…
user274
116
votes
6 answers
Why does x86 represent 32bit when x64 represents 64bit?
My question is why is the shorthand for 32-bit x86 when the shorthand for 64-bit is x64?
I'm guessing it has something to do with the days of 386s and 486s, when the 32-bit processors all ended in 86, but surely there were processors that didn't end…
Simon Foster
- 2,622
- 6
- 38
- 55
115
votes
8 answers
Is it possible to rerun kubernetes job?
I have the following Kubernetes Job configuration:
---
apiVersion: batch/v1
kind: Job
metadata:
name: dbload
creationTimestamp:
spec:
template:
metadata:
name: dbload
spec:
containers:
- name: dbload
image:…
Bostone
- 1,283
- 2
- 9
- 8
115
votes
7 answers
How to set default Ansible username/password for SSH connection?
I am using Ansible and I have this configuration in my inventory/all:
[master]
192.168.1.10 ansible_connection=ssh ansible_ssh_user=vagrant ansible_ssh_pass=vagrant
[slave]
192.168.1.11 ansible_connection=ssh ansible_ssh_user=vagrant…
Robert
- 1,302
- 2
- 10
- 10
115
votes
7 answers
How do I list loaded Linux module parameter values?
Is there a standard way to list the parameter values of a loaded Linux module? I'm essentially probing for another answer to this Linux kernel module parameters question, because the module I'm interested in doesn't have a…
cdleary
- 1,735
- 5
- 17
- 11
115
votes
4 answers
Where does email sent to *@example.com go?
So I've wondered this for a long time.
Where does email sent to *@example.com go? If I accidentally sent sensitive information to *@example.com would some evil person (potentially at the IANA) be able to retrieve it someday?
bryan kennedy
- 1,721
- 3
- 16
- 31
114
votes
6 answers
Where can I find data stored by a Windows Service running as "Local System Account"?
I'm using a service which stores data on disk.
The service is running as "local system account".
Where is the stored data for that system user?
I'm thinking about C:\Documents and Settings\Default User but I'm not sure about that.
Can someone…
paulgreg
- 4,154
- 6
- 33
- 32
114
votes
15 answers
How to show all banned IP with fail2ban?
When I run this command fail2ban-client status sshd I got this:
Status for the jail: sshd
|- Filter
| |- Currently failed: 1
| |- Total failed: 81
| `- File list: /var/log/auth.log
`- Actions
|- Currently banned: 2
|- Total…
Dark Cyber
- 1,249
- 2
- 9
- 6
114
votes
8 answers
How to run command as user who has /usr/sbin/nologin as Shell?
All I need to do is to run a specific script as a particular user who does have the nologin/false shell indicated in /etc/passwd.
I would run the script as root and this should run as another user.
Running:
~# su -c "/bin/touch /tmp/test"…
Tommaso
- 1,161
- 2
- 8
- 4