945 reputation
311
bio website
location
age
visits member for 2 years, 4 months
seen Jul 23 at 19:13

name should be lk but the minimum length is 3


Jun
28
comment Locked out of Ubuntu machine
"Connection refused" most likely means there isn't anything listening on that port. The SSH server might not have been started, might be misconfigured, or might be listening on a different port. I'm confused though; are you saying the issue occured when you installed OpenSSH?
May
26
comment Server Not accepting TCP/IP Connections
Your programs might be configured to only listen for local connections, have you checked for this? Possibly related question: Cannot connect to postgres from remote host
May
25
comment adding SSL certificate for Github only (not all certificates from ca-certificates package)
What are you using to access github? some command-line tool? a browser?
May
25
comment Will I be prompted for the sudo password a second time?
If you're interested in viewing the output or any errors in the script, this question might be helpful too: How can I make a script that opens terminal windows and executes commands in them?
May
25
comment What is “system time” when using “time” in command line
This is answered in detail at What do 'real', 'user' and 'sys' mean in the output of time(1)?
Aug
30
comment Find and remove many files by specific content
consider if you really need to search dir.*/*, maybe just . would be appropriate? find will (by default) act recursively
Aug
30
comment Is it *really* possible to directly steal a private key if it uses no passphrase?
+1 was about to post a similar answer
Aug
27
comment What is the definition of a regular expression?
I don't know if there is a single definition for "regular expressions" as the term is commonly used. There are different syntax specifications, such as POSIX regular expressions or Perl regular expressions, which include other "features" such as backreferences or lookaheads. These may no longer be regular expressions in the strictest sense (in the context of regular formal languages) but are still referred to as such.
Aug
24
comment Finding all “Non-Binary” files
You could use the file utility somewhere in your script/pipeline to identify whether the file is data or text
Aug
22
comment How to cache all internet downloads
This sounds very difficult or impossible do to for "all internet downloads", although it should be possible if you limit your scope (ie. only http requests)
Aug
21
comment Accessing ssh proxy from another host
I thought this wouldn't be the issue because I misread the man page. Does it work if you use -D '*:9999' instead of -D 9999?
Aug
21
comment Accessing ssh proxy from another host
Are you able to otherwise access the host from the guest? ie. ping or ssh
Aug
20
comment `tail -f` until text is seen
This might not work if Finished: SUCCESS is the last line of output
Aug
20
comment Display time stamp in dd/mm/yyyy_hh:mm:ss:ms in Unix or Linux
Is there any reason you are using echo? It seems redundant, you can just use date directly
Aug
20
comment Redirect stdout and stderr, with timestamps on stderr only
Right, but since they are separate streams I'm not sure if there is any way to prevent that
Aug
17
comment Why can't I navigate into my Documents directory?
Wild guess: perhaps you are already in your Desktop directory? cd will not produce any output if successful
Aug
17
comment Executing zsh rehash after build
I may be wrong because I've never used zsh before today, but calling rehash from a function does seem to work for me.
Aug
16
comment Best compression of similar files?
Right, you be sure to use a format that archives and then compresses, instead of one (like .zip) which compresses each file individually and then archives them
Aug
16
comment How to move file from one folder to another in shell script by changing the permission
It's not clear to me what to you want to do. Do you want to type mv file _name.dat /tmp and have it execute mv "file _name.dat" /tmp instead?
Aug
13
comment Why can't tr read from /dev/urandom on OSX?
I believe locate doesn't directly search your filesystem, but rather looks up your query using a pre-built database. This database is most likely configured to ignore /dev/ and other 'special' filesystems.