Most Popular

1500 questions
444
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,318
  • 3
  • 17
  • 14
443
votes
7 answers

What is the difference between executing a Bash script vs sourcing it?

What is the difference between executing a Bash script like A and sourcing a Bash script like B? A > ./myscript B > source myscript
Scottie T
  • 4,631
  • 3
  • 18
  • 10
440
votes
4 answers

What is randomart produced by ssh-keygen?

When you generate a key, you get "randomart" from newer versions of OpenSSH. I am unable to find an explanation of why, and what I'm supposed to use it for. Generating public/private rsa key pair. The key fingerprint…
dlamblin
  • 10,301
  • 8
  • 44
  • 53
437
votes
5 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
  • 1
  • 7
  • 18
  • 39
437
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
  • 10,965
  • 5
  • 20
  • 23
431
votes
13 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
  • 7,759
  • 16
  • 49
  • 64
430
votes
10 answers

How to rename the User folder in Windows 10?

After installing Windows 10 on my Surface Pro 3 it took my user name 'Jeremy' and created a user folder named C:\Users\jerem. I want to rename the folder C:\Users\Jeremy. The procedure for Windows 8 does not work. There are a couple of…
GollyJer
  • 6,910
  • 6
  • 37
  • 45
427
votes
16 answers

How can I download an entire website?

How can I download all pages from a website? Any platform is fine.
joe
  • 12,121
  • 12
  • 66
  • 103
427
votes
17 answers

How do I compare binary files in Linux?

I need to compare two binary files and get the output in the form: 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…
frustratedCmpNoLongerUser
424
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
  • 13,934
  • 30
  • 68
  • 82
422
votes
24 answers

How to delete directories with path/names too long for normal delete

Windows seems to have a length limit on file names when trying to delete, though it won't prevent those files from being created. Our build process creates a number of temporary files (many build off of a WSDL) that run afoul of this limit. Our ant…
Herms
  • 8,954
  • 9
  • 34
  • 36
422
votes
5 answers

How can I resume a stopped job in Linux?

How can I resume a stopped job in Linux? I was using emacs and accidentally hit ctrl-z which blasted me back to the console. I can see it when I type 'jobs' [*****]$ jobs [1]+ Stopped emacs test_queue.cpp
Bobby
  • 4,331
  • 3
  • 14
  • 6
416
votes
8 answers

How to save a remote server SSL certificate locally as a file

I need to download an SSL certificate of a remote server (not HTTPS, but the SSL handshake should be the same as Google Chrome / IE / wget and curl all give certificate check fail errors) and add the certificate as trusted in my laptops Windows'…
Kimvais
  • 4,568
  • 3
  • 21
  • 19
415
votes
17 answers

Is there a way to "auto login" in PuTTY with a password?

Is there a way to configure a password for a stored session in PuTTY? I know there is the capability to specify an "auto-login username" (under Connection/Data), but is there a way to do the same with the password?
jldupont
  • 6,444
  • 13
  • 36
  • 46
412
votes
13 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
  • 6,913
  • 9
  • 25
  • 31