Most Popular

1500 questions
105
votes
5 answers

Keep cmd.exe command history between sessions?

Is there a way to keep the cmd command history between sessions?
firefusion
  • 2,033
105
votes
4 answers

How do I search a page using a regular expression in Firefox?

I want to use regular expressions to search a page in Firefox. Is this possible?
BrunoLM
  • 5,654
105
votes
4 answers

How can I clear the IP address of Ethernet interface without cycling the interface up/down or restarting it

What is the Linux command to clear IP addresses of an interface without bringing it down and/or restarting network services? Seems strange that ifconfig is able to change IP addresses but has no option to remove them, or am I wrong?
jackhab
  • 2,970
105
votes
6 answers

Fake broken pixel on Windows 10

A couple of months ago I discovered that I have broken pixel on my laptop screen: The weirdness of it is that it isn't a broken pixel at all, because as you can see I'm able to screenshot it. The first time it appeared, I just rebooted my laptop a…
danil _
  • 1,029
105
votes
4 answers

How can I tell Notepad++ to always use a particular language with a particular file extension

I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually click on "Language > XML" to get XML syntax…
Tyler
  • 1,433
105
votes
4 answers

have Powershell get-childitem return files only

I'd like to use get-childitem recursively, but only have it return files not directories. The best solution I have just doesn't seem natural: gci . *.* -rec | where { $_.GetType().Name -eq "FileInfo" }
105
votes
6 answers

How do I activate WindowsXP now that support has ended?

What Options are there to activate Windows XP nowadays? The "regular" methods provided with XP (phone and online) don't work anymore. The phone number is not valid for activation anymore (I tried the German one) and the online activation does not…
Albin
  • 10,559
105
votes
11 answers

Windows 10 deletes lots of tiny files super slowly. Can anything be done to speed it up?

I work with tens of thousands 20 kB JPEG files in batches which add up to gigabytes. When I try to delete an old batch, Windows 10 has a very low delete rate which sometimes even drops to zero for some reason: Is this just a fact of life for the…
105
votes
10 answers

What is the purpose of 'tee'?

All the usages of tee I ever saw were such: do_something | tee -a logfile Or: do_something_else | tee logfile Is tee invented for those that don't know you can do the same with shell pipe redirections? Such as: do_something >>…
R Moog
  • 1,103
105
votes
4 answers

Convert a PDF to greyscale on the command line in FLOSS?

I have a colour PDF file, and I'm going to print it out and then photocopy it in black and white. I'd like to know what it's like in B&W before photocopying it. Is it possible to 'greyscale' a PDF on the command line using free software? I'm using…
Amandasaurus
  • 1,977
104
votes
11 answers

How do I automatically trim trailing whitespace with Notepad++?

I don't want to delete the empty lines completely, but I want to remove the trailing tabs and whitespaces in them. Eclipse usually does it (through a preference setting) when we save the file. For example, the file before saving ($ = end of…
Srikanth
  • 4,939
104
votes
16 answers

Can AVI files contain a virus?

I'm downloading an AVI file via a torrent, but my anti-virus detects something. Is it possible that the AVI file contains a virus? It is quite weird since the torrent has many positive reviews.
IMB
  • 5,503
104
votes
9 answers

Download all mail messages from Gmail including Sent folder items

How can I download all the messages from a Gmail account, including the Sent folder items, when a normal POP fetch will only grab the inbox items? My wife recently died, and she gave me access to her Gmail account. While I'm not sure whether or not…
104
votes
9 answers

The best way to make MacVim's vim (console, not mvim) the default instead of Mac OS X's vim?

I installed MacVim using homebrew. (brew install macvim). If I call mvim from cmd, it opens the GUI MacVim. I would like to make vim call the MacVim's Vim (/Users/user/Applications/MacVim.app/Contents/MacOS/Vim) instead of the system's…
104
votes
9 answers

What is the equivalent of Linux's "~" (tilde) in Windows?

In Linux, we can go to the user home by entering the tilde (~) character after cd: cd ~ How to do the same in Windows? Each time, I need to type: cd C:\Document and Settings\freewind That's too boring.
Freewind
  • 1,897