Most Popular
1500 questions
547
votes
15 answers
How to enable execution of PowerShell scripts?
When I try to execute my PowerShell script I get this error: File C:\Common\Scripts\hello.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details. At line:1 char:13 +…
Pavel Chuchuva
- 13,337
540
votes
18 answers
How to clear the contents of a file from the command line?
I have a log file that has a bunch of stuff in it that I don't need anymore. I want to clear the contents. I know how to print the contents to the screen: cat file.log I know how to edit the file, line-by-line: nano file.log But I don't want to…
Andrew
- 15,654
529
votes
11 answers
What is the home directory on Windows Subsystem for Linux?
When I start bash on Windows Subsystem for Linux, it drops me in the directory /mnt/c/Users/<username> When I ls this directory, I see the directories Desktop , Documents , etc. that I can see are in C:\Users\<username> using the Windows File…
bcf
- 5,433
528
votes
16 answers
How to fix warning about ECDSA host key
I'm trying to setup password-less SSH on an Ubuntu server with ssh-copy-id myuser@myserver , but I'm getting the error: Warning: the ECDSA host key for 'myserver' differs from the key for the IP address '192.168.1.123' What's causing this, and how…
Cerin
- 9,840
524
votes
10 answers
Can I delete the folder C:\ProgramData\Package Cache\?
There is a new folder full of installers located at C:\ProgramData\Package Cache\ . I believe this is from Visual Studio 2012 RC. Can I delete these gigabytes of data without consequences? Are they all temporary files? It's a beta product so I'm not…
Ben L
- 5,610
523
votes
32 answers
How to check if a binary is 32- or 64-bit on Windows?
Is there an easy way to check if a binary is 32- or 64-bit on Windows? I need to check before I move the program to a 32-bit machine and experience a spectacular failure.
Septagram
- 5,718
520
votes
12 answers
Create/rename a file/folder that begins with a dot in Windows?
Many programs needs folder names that starts with a dot, like .emacs.d , .gimp-2.2 , .jedit etc. How do I create such a folder? When using the Windows Explorer in Windows 2000 (and other versions), I get an error message saying "You have to enter a…
Adventure10
519
votes
16 answers
Test if a port on a remote system is reachable (without telnet)
In the old days, we used telnet to see if a port on a remote host was open: telnet hostname port would attempt to connect to any port on any host and give you access to the raw TCP stream. These days, the systems I work on do not have telnet…
Steve HHH
- 7,569
519
votes
19 answers
Is there any 'sudo' command for Windows?
I always work on a non-administrator account on my Windows computer. Sometimes I need to install programs which requires administrator access. As I mostly use the Windows command prompt, is there a Windows command to escalate privileges, similar to…
ukanth
- 10,830
515
votes
6 answers
How do I exit telnet?
I start telnet by telnet host port . How do I stop it in Windows? Shockingly, Ctrl + C doesn't work.
Val
- 6,635
508
votes
2 answers
How do I rename a session in tmux?
When I first started using tmux, I didn't give my first session a name. Then, as I started creating different sessions for different tasks (work, play, etc), I started naming my sessions. Now I have a bunch of different sessions, but the first one…
Richard Jones
- 5,998
508
votes
7 answers
How does a computer restart itself?
How can a computer restart itself? After it's off, how does it tell itself to come back on again? What kind of software is it that can do this?
Seth Carnegie
- 4,179
506
votes
19 answers
How do I compare binary files in Linux?
I need to compare two binary files and get the output in the form <fileoffset-hex> <file1-byte-hex> <file2-byte-hex> for every different byte. So if file1.bin is 00 90 00 11 in binary form and file2.bin is 00 91 00 10 I want to get something like…
frustratedCmpNoLongerUser
505
votes
9 answers
Did I just get hacked?
I am developing a consumer product, and it is supposed to be connected to the Internet, so as expected, it is connected to the Internet so that I can properly develop it. I went away for an hour or two, and when I came back to my office I noticed…
vaid
- 3,569
504
votes
14 answers
Mac OS X equivalent of the Ubuntu "tree" command
Is there an equivalent to the Ubuntu tree command for Mac OS X?
Misha Moroshko
- 8,173