Reputation
3,955
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
12 28
Newest
 Nice Answer
Impact
~452k people reached

Oct
4
comment How to get SSH working on Linux laptop?
Ah, also, to stop, start or restart sshd (say to load new configuration settings), you will probably need something like this: sudo /etc/init.d/ssh [stop, start, restart]. You only want one of the commands in the brackets at a time - an no brackets.
Oct
4
comment How to get SSH working on Linux laptop?
I half suspect that you enabled SSH login for the router itself with that checkbox. That is, some routers allow you to ssh into them in order to make changes to the router securely (and remotely). Also, how exactly are you trying to log in via ssh? Are you specifying a user? It should look something like ssh user@myip.etc, not just ssh myip.etc
Oct
2
revised How can I list only non-empty files using ls?
Typo
Oct
2
comment How can I list only non-empty files using ls?
Implementations of find vary a lot in terms of what valid options are and where they can go. GNU find (which is awfully common) will produce a warning if you put -size before -maxdepth.
Sep
27
revised Advantages of cat'ing file and piping to grep
Spelling
Sep
4
comment Snow Leopard hide scrollbar in terminal?
There is also an alpha release of iTerm2: code.google.com/p/iterm2
Aug
25
comment Copy list of files
@Klaus You're very welcome. To be frank, I was mostly annoyed at myself after reading Dennis's answer and realizing that I missed the key part of the problem entirely. The solution you like is from there as well.
Aug
25
revised Copy list of files
deleted 1 characters in body; added 14 characters in body
Aug
25
revised Copy list of files
Huge rewrite
Aug
24
comment Bash prompt: how to have the initials of directory path
@Hamish But you did help me to see that I needed double quotes, not single as I originally wrote. The prompt I'm testing it on here involves color escapes and is more complex, and I accidentally simplified it using single quotes. Sorry.
Aug
24
revised Bash prompt: how to have the initials of directory path
The solution needs to be double quoted
Aug
24
comment Bash prompt: how to have the initials of directory path
@Hamish No, that's incorrect. This changes as you cd. I'm using it now. (And that's not a Perl thing. It has to do with how PS1 works. You can have dynamic information in there in a function via \$(function).
Aug
24
revised Bash prompt: how to have the initials of directory path
added 243 characters in body
Aug
24
comment Bash prompt: how to have the initials of directory path
Fair enough. I posted an answer below, based on that thread.
Aug
24
answered Bash prompt: how to have the initials of directory path
Aug
24
comment Bash prompt: how to have the initials of directory path
This is a great question, but it's also an exact duplicate of a question (already answered) on Stack Overflow: stackoverflow.com/questions/1616678/bash-pwd-shortening
Aug
24
answered Copy list of files
Aug
24
comment Copy list of files
Let me get one thing clear: the list has all the file names on one line, separated only by a space? Or are the names each on a separate line?
Aug
24
revised Capture output of command in variable
added 201 characters in body
Aug
24
revised Capture output of command in variable
added 159 characters in body