How to uncompress a tar.gz in another directory
I have an archive *.tar.gz How can I uncompress this in a destination directory? 5 Answers 5
I have an archive *.tar.gz How can I uncompress this in a destination directory? 5 Answers 5
I want to delete one or more specific line numbers from a file. How would I do this using sed? 8 Answers 8
Related question is “Datetime To Unix timestamp”, but this question is more general. I need Unix timestamps to solve my last question. My interests are Python, Ruby and Haskell, but other approaches are welcome. What is the easiest way to generate Unix timestamps? 20 Answers 20
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 1 year ago. Improve this question Is it possible to configure ssh to know what my username should be? By default it uses the current … Read more
Is there a way to delete the newline at the end of a line in Vim, so that the next line is appended to the current line? For example: Evaluator<T>(): _bestPos(){ } I’d like to put this all on one line without copying lines and pasting them into the previous one. It seems like I … Read more
I update nginx to 1.4.7 and php to 5.5.12, After that I got the 502 error. Before I update everything works fine. nginx-error.log 2014/05/03 13:27:41 [crit] 4202#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: xx.xxx.xx.xx, server: localhost, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “xx.xx.xx.xx” nginx.conf user www www; … Read more
Sometimes when I edit my file using vi or vim, my file just freezes. Even if I type Ctrl+C or Ctrl+D, it still freezes there. I kill -9 <pid> from another terminal, the pid is killed, but the file still freezes there. I guess I must have typed some combination of key which I do … Read more
How can I get grep to display the filename before the matching lines in its output? 6 Answers 6
It seems like the only way to do this is to pass the -i parameter in when you initially run less. Does anyone know of some secret hack to make something like this work /something to search for/i 5 Answers 5
I have two directories with the same list of files. I need to compare all the files present in both the directories using the diff command. Is there a simple command line option to do it, or do I have to write a shell script to get the file listing and then iterate through them? … Read more