Most Popular
1500 questions
88
votes
5 answers
How to get TX/RX bytes without ifconfig?
Since ifconfig is apparently being deprecated in major Linux distributions, I thought I'd learn something about the ip tool that's supposed to be used instead of ifconfig.
And here I ran into a problem: when run on its own, ifconfig shows the…
justinas
- 1,028
88
votes
3 answers
Human readable format for http headers with tcpdump
I would like to view the HTTP headers sent from Apache (listening on port 80) to Tomcat (on port 4080) in a Linux machine.
According to Wikipedia,
Header fields are colon-separated name-value pairs in clear-text string format.
I've tried some…
Adam Matan
- 13,574
88
votes
3 answers
Ubuntu displays "There is 1 zombie process" upon login
This message appears when I login to my machine:
There is 1 zombie process.
What is it telling me?
Is this anything I should worry about?
If yes, then what should I do, and how?
John Mee
- 2,698
88
votes
3 answers
What happens when you plug two sides of a cable to a single networking device?
What is likely to happen when you plug two ends of a network cable to a single switch/router? Will this create problems on the network, or just be ignored?
lisa1987
- 891
88
votes
4 answers
How to keep rsync from chown'ing transferred files?
I have an sshfs connection setup with a remote filesystem on a Linux server. I'm doing an rsync from my local server to the ftpfs-filesystem. Because of the nature of this setup, I can't chown anything on the sshfs filesystem.
When I do the rsync,…
Jake Wilson
- 8,924
88
votes
12 answers
protocol version mismatch -- is your shell clean?
When following the instructions to do rsync backups given here: http://troy.jdmz.net/rsync/index.html
I get the error "protocol version mismatch -- is your shell clean?"
I read somewhere that I needed to silence the prompt (PS1="") and motd…
rfreytag
- 1,235
87
votes
5 answers
How does Ubuntu keep track of the "System restart required" flag in motd?
I have a few Ubuntu servers (8.10, 9.10) that is set to automatically install security updates. Some times these updates requires a restart of the system, and this string is shown in motd:
*** System restart required ***
To get a notice about…
Anders Lindahl
- 1,011
87
votes
86 answers
Best system administrator accident
I'm looking for amusing stories of system administrator accidents you have had. Deleting the CEO's email, formatting the wrong hard drive, etc.
I'll add my own story as an answer.
Alan H
- 2,314
- 4
- 20
- 17
87
votes
9 answers
Making `wget` not save the page
I'm using the wget program, but I want it not to save the html file I'm downloading. I want it to be discarded after it is received. How do I do that?
Ram Rachum
- 5,301
87
votes
6 answers
Software vs hardware RAID performance and cache usage
I've been reading a lot on RAID controllers/setups and one thing that comes up a lot is how hardware controllers without cache offer the same performance as software RAID. Is this really the case?
I always thought that hardware RAID cards would…
ItsJustMe
- 1,011
87
votes
12 answers
create home directories after create users
I created some users with:
$ useradd john
and I forgot to specify the parameter -m to create the home directory and to have the skeleton files copied to each user. now I want to do that, and I don't want to recreate all users (there must be an…
cd1
- 1,494
87
votes
7 answers
Temporarily ignore my `~/.ssh/known_hosts` file?
Is there a way to temporarily ignore my ~/.ssh/known_hostsfile?
mbp:~ alexus$ ssh 10.52.11.171
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! …
alexus
- 13,374
87
votes
1 answer
SSH Allow Password For One User, Rest Only Allow Public Keys
Is it possible with ssh to allow passwords from a certain user, but deny using passwords for everybody else?
Basically I want to allow password auth for user justin but everybody else must use public keys.
PasswordAuthentication no
Seems to be…
Justin
- 5,438
87
votes
4 answers
How can I find the path to an executable in OSX
Is there a command I can use to easily find the path to an executable? I'm looking for identify on my local machine - something like pwd?
pwd identify
=> /usr/local/bin/identify
Codebeef
- 1,459
- 4
- 19
- 20
86
votes
2 answers
Best way to redirect all HTTP to HTTPS in IIS
We want ALL sites on our webserver (IIS 10) to enforce SSL (ie redirect HTTP to HTTPS).
We are currently 'Requiring SSL' on each site and setting up a 403 error handler to perform a 302 redirect to the https address for that specific site.
This…
userSteve
- 1,613