Most Popular

1500 questions
90
votes
5 answers

Using wildcards in names in Windows hosts file

Is there a way to create a wildcard domain in the Windows hosts file. I tried this xxx.xxx.xxx.xxx *.somedomain.com This does not work, is there maybe some other syntax I should use? I am working on Windows 7
Saif Bechan
  • 3,315
90
votes
3 answers

Chrome uses 80% CPU when I visit a specific website

Whenever I try to visit this particular website, chrome CPU usage shoots up to at least 75% and my laptop get way louder. If I close the tab everything goes back to normal. RAM usage never goes up. My naive guess is the website is trying to mine…
90
votes
2 answers

Why is the most powerful user on a Unix/Linux system called “root?”

Somewhat inspired by this other question on the use of the term “Super User”, why the heck is the most powerful user on a Unix/Linux system called root? Why not admin, sysop, base, king or something similar? When I read the term root all I think of…
Giacomo1968
  • 55,001
90
votes
4 answers

bash watch command with colors preserved

From man watch: Non-printing characters are stripped from program output. Use "cat -v" as part of the command pipeline if you want to see them. So how do I use cat -v if I want to see the colored output from: watch ls -al --color
90
votes
3 answers

scp copy has error "ambiguous target"

I try to copy files from a linux (ubuntu) machine to an external hard drive mounted on a mac but got an error message : scp: ambiguous target What I did is, I'm on a mac, ssh to the linux machine where files are. Then use the following command…
bob
  • 1,003
89
votes
13 answers

Selecting whole column except first X (header) cells in Excel

I know I can select all cells in a particular column by clicking on column header descriptor (ie. A or AB). But is it possible to then exclude a few cells out of it, like my data table headings? Example I would like to select data cells of a…
89
votes
5 answers

Why does the system have /etc/sudoers.d? How should I edit it?

Last time, I asked about the risk of these (in /etc/sudoers): user_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf %group_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf While I was thinking about this problem, I found…
aob
  • 1,025
89
votes
6 answers

Variables in batch file not being set when inside IF?

I have two examples of very simple batch files: Assigning a value to a variable: @echo off set FOO=1 echo FOO: %FOO% pause echo on Which, as expected, results in: FOO: 1 Press any key to continue . . . However, if I place the same two lines…
Brown
  • 1,642
89
votes
7 answers

Can I use vodka to clean my keyboard?

I spilled beer on my keyboard a while back, and some of the keys are sticky. It's driving me crazy, and I don't have any isopropyl. Can I use vodka to clean it?
user1068446
  • 1,420
89
votes
4 answers

systemd - Giving my service multiple arguments

Is it possible to give my systemd service more than one argument? I'd like to execute a program with multiple arguments which have to be decided by the final user. E.g: ./program arg1 arg2 To start it a single argument app I'd need something like…
peperunas
  • 1,281
89
votes
8 answers

Compose key on Windows

On Linux, the Compose key is a great way to enter many symbols. E.g. em-dash — by pressing Compose then - - - ö by pressing Compose then : o Euro € by pressing Compose then C = (The Compose key function can be assigned to various keyboard keys,…
89
votes
4 answers

Updating Time : ntpdate[3108]: the NTP socket is in use, exiting

The time on my system is incorrect for some reason. i need to run an update but i can't seem to be able to this is the errror. ntpdate pool.ntp.org 31 Aug 12:31:59 ntpdate[3108]: the NTP socket is in use, exiting i just rebooted, i do not know how…
89
votes
4 answers

Disable a Windows service from the command line

I want to disable a Windows service but I don't want to: Open the "Services" management console Scroll to the name of the service Right-click Properties (or double-click) Change the Startup Type: to disabled Apply Click "Stop" I don't want to…
89
votes
4 answers

How to switch between two latest windows in tmux?

GNU Screen has Ctrl-a,Ctrl-a to switch between the two latest windows. How to do it in tmux?
kev
  • 12,730
89
votes
11 answers

Can one take a partial screen shot in Windows 7?

One can take a screen shot of a part of the screen on a Mac with Cmd + Shift + 4. Is there a similar functionality in Windows 7?
David Faux
  • 4,829