Most Popular

1500 questions
60
votes
6 answers

shutdown: What is difference between "Power Off" and "Halt"?

With your typical Linux shutdown command, what is the difference between halting the system and powering off the system?
Jake Wilson
  • 8,924
60
votes
13 answers

How to monitor a windows log file in real time?

On windows how can I easily monitor a log file and see updates to the file in real time? Basically, same functionality like tail -f log_file on Unix systems Platform: Windows XP/2003/2008 server [Update] this is quite handy for a quick…
dance2die
  • 2,031
60
votes
7 answers

Given a debian source package - How do I install the build-deps?

I have a debian (well technically ubuntu) source package, i.e. the .dsc, the .tar.gz, etc., I want to build this. The dpkg-buildpackage fails, since I don't have all the build dependencies. Normally I'd use apt-get build-dep, but this package isn't…
Amandasaurus
  • 32,281
  • 69
  • 194
  • 263
60
votes
6 answers

The corporate benefits of using MSI files

What are the advantages of using .msi files over regular setup.exe files? I have the impression that deployment is easier on machines where users have few permissions, but not sure about the details. What features does msiexec.exe have that makes…
60
votes
3 answers

What is the difference between a soft (symbolic) link and a hard link?

I hear that you can now create soft links in Vista too. So, what is the difference between a soft (symbolic) link and a hard link on UNIX/Linux/Vista? Are there advantages of using one over the other? Or do they just serve two distinct purposes?
Aaron K
  • 1,525
60
votes
4 answers

PowerShell script, showing commands run

I am playing around with PowerShell scripts and they're working great. However, I am wondering if there is any way to also show all the commands that were run, just as if you were manually typing them in yourself. This would be similar to "echo…
59
votes
2 answers

How do view older journalctl logs (after a rotation maybe?)

I am running docker on ubuntu 16.04 and would like to view the logs. However, I am unable to view logs after what I am guessing is some sort of rotation or the logs grow to a certain size. I have not made any changes to my journald.conf, so I am…
jdf
  • 951
59
votes
5 answers

systemd service automatic restart after StartLimitInterval

I want my systemd service to be automatically restarted on failure. Additionally I want to rate limit the restarts. I want to allow maximum of 3 restarts within 90 seconds duration. Hence I have done the following configuration. [Service] …
59
votes
1 answer

Can't enter the letter 'e' over ssh

Right now I am experiencing some very, very weird behaviour on a Ubuntu 14.04.2 LTS server I am managing. Connecting to the server over ssh either from cygwin(mintty) or a terminal on a Linux machine, I can't type the letter e. I have done the…
Zulakis
  • 4,233
59
votes
5 answers

Removing Docker data volumes?

The official Docker documentation mentions that I need to run docker rm -v containername to specifically remove a data volume. But what do you do if you already removed all the containers referencing the specific data volume ?
p4guru
  • 963
59
votes
6 answers

Reinstall after a Root Compromise?

After reading this question on a server compromise, I started to wonder why people continue to seem to believe that they can recover a compromised system using detection/cleanup tools, or by just fixing the hole that was used to compromise the…
Zoredache
  • 131,987
59
votes
3 answers

Configure custom SSL certificate for RDP on Windows Server 2012 (and later) in Remote Administration mode?

So the release of Windows Server 2012 has removed a lot of the old Remote Desktop related configuration utilities. In particular, there is no more Remote Desktop Session Host Configuration utility that gave you access to the RDP-Tcp properties…
Ryan Bolger
  • 16,840
59
votes
8 answers

Run a shell script as a different user

What's a good way of running a shell script as a different user. I'm using Debian etch, and I know which user I want to impersonate. If I was doing it manually, I would do: su postgres ./backup_db.sh /tmp/test exit Since I want to automate the…
Wadih M.
  • 1,042
59
votes
2 answers

Should I use semicolons at the end of each PowerShell statement?

I've done a fair bit of programming in C#, but then I've also written a lot of T-SQL scripts. C# requires semicolons, and T-SQL and PowerShell they're optional. What do you do for PowerShell? Why? My gut feel is to include semicolons but I don't…
Mark Allison
  • 2,198
59
votes
5 answers

Correct way to move kvm vm

I'm wondering what is the correct way of moving a VM between two KVM hosts without using any kind of shared storage Would copying the disk files and the XML dump from the source KVM machine to the destination one suffice? If so, what commands need…