Most Popular

1500 questions
183
votes
10 answers

What is "-bash: !": event not found"

Try executing the following under a bash shell echo "Reboot your instance!" On my installation: root@domU-12-31-39-04-11-83:/usr/local/bin# bash --version GNU bash, version 4.1.5(1)-release (i686-pc-linux-gnu) Copyright (C) 2009 Free Software…
Maxim Veksler
  • 2,725
  • 10
  • 28
  • 32
183
votes
18 answers

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
Galen
  • 1,983
  • 2
  • 12
  • 10
182
votes
31 answers

How do I prevent accidental rm -rf /*?

I just ran rm -rf /* accidentally, but I meant rm -rf ./* (notice the star after the slash). alias rm='rm -i' and --preserve-root by default didn't save me, so are there any automatic safeguards for this? I wasn't root and cancelled the command…
Valentin Nemcev
  • 2,015
  • 2
  • 14
  • 12
182
votes
12 answers

What does "Warning: untrusted X11 forwarding setup failed: xauth key data not generated" mean when ssh'ing with -X?

When I use ssh -X on my Mac (running OS X 10.6.7) to connect to my Ubuntu (11.04) box, I get the following warning: Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication…
Daryl Spitzer
  • 2,996
  • 9
  • 33
  • 40
182
votes
12 answers

Top level domain/domain suffix for private network?

At our office, we have a local area network with a purely internal DNS setup, on which clients all named as whatever.lan. I also have a VMware environment, and on the virtual-machine-only network, I name the virtual machines whatever.vm. Currently,…
Otto
  • 2,051
  • 3
  • 17
  • 11
180
votes
8 answers

Sudo as different user and running screen

Found out today that running screen as a different user that I sudo into won't work! i.e. ssh bob@server # ssh into server as bob sudo su "monitor" - screen # fails: Cannot open your terminal '/dev/pts/0' I have a script…
sdot257
  • 3,059
  • 5
  • 30
  • 39
179
votes
2 answers

How do you answer yes for yum install automatically

In centos how do you answer yes automatically for yum install so that it is an unassisted install?
DiverseAndRemote.com
  • 2,091
  • 3
  • 16
  • 16
178
votes
8 answers

Filename length limits on linux?

Are there any filename or path length limits on Linux?
readonly
  • 3,359
  • 4
  • 26
  • 23
178
votes
8 answers

How do I sleep for a millisecond in bash or ksh

sleep is a very popular command and we can start sleep from 1 second: # wait one second please sleep 1 but what the alternative if I need to wait only 0.1 second or between 0.1 to 1 second ? remark: on linux or OS X sleep 0.XXX works fine , but…
yael
  • 2,433
  • 5
  • 31
  • 43
178
votes
4 answers

What is the difference between Load Balancer and Reverse Proxy?

I'm not clear about the difference between Load Balancer and Reverse Proxy. They both seems having same behavior: distributing incoming requests to backend servers.
Morgan Cheng
  • 2,114
  • 2
  • 16
  • 13
176
votes
5 answers

What's the difference between authorized_keys and authorized_keys2?

Just wanted a quick summary of the differences between them and why there are two?
Jon
  • 2,121
  • 2
  • 13
  • 13
175
votes
7 answers

How can I read pcap files in a friendly format?

a simple cat on the pcap file looks terrible: $cat tcp_dump.pcap ?ò????YVJ? JJ ?@@.?E
Tony
  • 4,213
  • 11
  • 35
  • 29
175
votes
9 answers

Is it possible to detach a process from its terminal? (Or, "I should have used screen!")

Possible Duplicate: Can I nohup/screen an already-started process? On Unix (specifically, Linux), I've started a job in a regular ssh->bash session. I'd like to leave work soon, but I now realize that the job is going to take several hours. If I…
mike
  • 3,963
  • 11
  • 30
  • 27
175
votes
18 answers

Disk full, du tells different. How to further investigate?

I have a SCSI disk in a server (hardware Raid 1), 32G, ext3 filesytem. df tells me that the disk is 100% full. If I delete 1G this is correctly shown. However, if I run a du -h -x / then du tells me that only 12G are used (I use -x because of some…
initall
  • 2,325
  • 3
  • 18
  • 19
174
votes
7 answers

What does Virtual memory size in top mean?

I am running top to monitor my server performance and 2 of my java processes show virtual memory of up to 800MB-1GB. Is that a bad thing? What does virtual memory mean? And oh btw, I have swap of 1GB and it shows 0% used. So I am confused. Java…
kapso
  • 2,083
  • 4
  • 15
  • 7