Most Popular

1500 questions
101
votes
1 answer

How can one distinguish the host and the port in an IPv6 URL?

URLs always have this format: ://[:]/[][#] The problem is that IPv6 uses colons, just like the separator of port and host, e.g: 2001:db8:1f70::999:de8:7648:6e8 But what if this is the host, and I want to connect…
user42235
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
100
votes
17 answers

Does drilling a hole into a hard drive suffice to make its data unrecoverable?

We have a lot of PCs in the company and nobody wants to wipe a multitude of hard drives. We also have many apprentice toolmakers who really want to destroy things. Thus, every couple of months, our apprentices receive two heavy baskets of hard…
RubbelDieKatz
  • 941
  • 2
  • 6
  • 15
100
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,764
  • 3
  • 13
  • 27
100
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 [email protected] ServerName 141.29.495.999 ServerAlias…
njp
  • 1,102
  • 2
  • 8
  • 7
100
votes
6 answers

What range of MAC addresses can I safely use for my virtual machines?

I want to assign my virtual machines MAC addresses so that I can configure DHCP reservations for them so that they always get the same IP address regardless of which host hypervisor they are running on or operating system they are running. What I…
Chris Magnuson
  • 3,771
  • 10
  • 42
  • 46
100
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,101
  • 2
  • 8
  • 4
100
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,003
  • 2
  • 7
  • 4
100
votes
7 answers

Is there a way to do a remote "ls" much like "scp" does a remote copy?

Is there a way to do a remote "ls" much like "scp" does a remote copy in a standard linux shell?
yazz.com
  • 7,193
  • 15
  • 38
  • 39
100
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,181
  • 2
  • 9
  • 10
99
votes
3 answers

Should I install Linux applications in /var or /opt?

I run a lot of open source applications including java and tomcat. It seems like most instructions have my applications running from the /var directory. But every once in a while, I also see the /opt directory. While I'm at it, I also see…
Trevor Allred
  • 1,137
  • 1
  • 8
  • 7
99
votes
11 answers

How can I export the privileges from MySQL and then import to a new server?

I know how to export/import the databases using mysqldump & that's fine but how do I get the privileges into the new server. For extra points, there are a couple of existing databases on the new one already, how do I import the old servers…
Gareth
  • 8,573
  • 13
  • 44
  • 44
99
votes
2 answers

Smell of rotten eggs in the server room

A week ago I got the following error on my APC Smart-UPS 1000 which I muted. Warning State: Connect battery Load: 55% Batt: 100% Today, I could smell a sort of sulfur/sulphur/rotten egg smell when I came into the office and the UPS is alarming…
Andy Joiner
  • 1,273
  • 1
  • 10
  • 24
99
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,122
  • 1
  • 15
  • 16
99
votes
6 answers

Turn off pager for psql's interactive output

We switched from PostgreSQL 8.3 to 9.0. Perhaps it's a new feature or perhaps just a configuration change, but now when output from commands (like, \d tablename) exceeds visible vertical space, psql seem to pipe the output through something similar…
Yuri Ushakov
  • 1,113
  • 2
  • 8
  • 9