Most Popular

1500 questions
58
votes
8 answers

How can I find current SSH protocol version of the current connection?

I connect to a Linux machine (CentOS 6.4) using PuTTY. Except from fact that I can set PuTTY to only use one type of protocol, how can I find the current SSH connection's version (SSH1 or SSH2)?
codiac
  • 699
58
votes
12 answers

How do I make Linux recognize a new SATA /dev/sda drive I hot swapped in without rebooting?

Hot swapping out a failed SATA /dev/sda drive worked fine, but when I went to swap in a new drive, it wasn't recognized: [root@fs-2 ~]# tail -18 /var/log/messages May 5 16:54:35 fs-2 kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x50000 action…
58
votes
5 answers

Can I make rsync output only the summary?

I use rsync to backup a directory which is very big, containing many sub-directories and files, so I don't want to see the "incremental file list". I just want to know the summary in the end. If I use the argument -q, nothing is output at all. Can I…
horsley
  • 583
58
votes
1 answer

Block select on a Linux console?

Is there any Linux console (konsole, gnome-terminal, etc.) that allows selecting text in a block mode, like you can in a Windows cmd.exe window, using Mark and drawing a rectangle?
Unknown
  • 1,351
58
votes
11 answers

Good reasons to keep 32-bit Microsoft Windows desktop OSes

This question is from 2012. If you are reading this in 2019 or later, then the answer really is: No. There is no good reason in 2019 to be maintaining 32-bit desktop operating systems. Original question below: Server software has been 64-bit only…
58
votes
6 answers

How do I force Linux to reacquire a new IP address from the DHCP server?

The environment is Debian, although the answer will apply to all distributions.
GeneQ
  • 407
58
votes
3 answers

Is there any harm in disabling the idle timeout for an application pool?

I'm currently fighting an issue with ASP.Net taking minutes to load a page for the first time. Through playing with settings I've found that disabling "Shutdown worker processes after being idle for (time in minutes)" stops the issue from…
djdd87
  • 693
58
votes
5 answers

What is the first digit for in 4-digit octal Unix file permission notation?

3-digit: 644 ugo (user group other) 4-digit: 0644 ?ugo (??? user group other) What is the first octal digit for in 4-digit octal Unix file permission notation?
58
votes
4 answers

What does mdev mean in ping(8)?

What does mdev mean in ping output (last row below)? me@callisto ~ % ping -c 1 example.org PING example.org (192.0.43.10) 56(84) bytes of data. 64 bytes from 43-10.any.icann.org (192.0.43.10): icmp_seq=1 ttl=245 time=119 ms --- example.org ping…
Daniel
  • 3,137
  • 5
  • 23
  • 28
58
votes
12 answers

Linux command line utility to resolve host names using /etc/hosts first

There are several command line utilities to resolve host names (host, dig, nslookup), however they all use nameservers exclusively, while applications in general look in /etc/hosts first (using gethostbyname I believe). Is there a command line…
Zulan
  • 665
58
votes
4 answers

What is the best nginx compression gzip level?

I'm using nginx reverse proxy cache with gzip enabled. However, I got some problems from Android applications HTTP-requests to my Rails JSON web service. It seems when I turn off reverse proxy cache, it works ok because the response header comes…
Chamnap
  • 805
58
votes
12 answers

What should I pay attention to when I'm buying a network switch?

Since I'm not a hardware expert, I don't know what features make a network switch a good network switch. What should I pay attention, when I'm comparing the different models from different vendors?
splattne
  • 28,636
  • 20
  • 98
  • 150
58
votes
4 answers

Free public SSH server for testing purposes

I'm writing an application that makes connections to SSH servers. It doesn't need anything specific from the server (except running under GNU/Linux). I need SSH servers for running my application tests. I was wondering, is there some kind of free…
nicoulaj
  • 1,205
  • 2
  • 11
  • 12
58
votes
3 answers

find command default sorting order

what is the default sorting order for entries returned by the linux find command? For example, if I issue find . -type f -name '*mp3' and the output consists of multiple files across multiple sub-folders, what is the default order in which…
Nasko
  • 583
  • 1
  • 4
  • 4
58
votes
6 answers

How do I print contents of at jobs?

I have a Debian box with some jobs scheduled using at. I know I can list the jobs with their times using atq, but is there any way to print out their contents, apart from peeking into /var/spool/cron/atjobs?
che
  • 729