1,804 reputation
310
bio website
location
age
visits member for 2 years, 1 month
seen 13 hours ago

Dec
19
comment vi commandline, goto line and column
explanation: most commands (ie, most letter) in vi can be preceded by a number (or range) to change its default behaviour or to repeat it (or apply it on a specific range). Inside vi, in command mode, you can do 15G to go to line 15 and 25| to go to col 25. And Christa shows how to do the same from the command-line.
Dec
5
comment tmux session killed when disconnecting from ssh
how do you close the ssh session? and you could attach a strace to the pid of tmux and another to the pid of the sshd, to see if it receives something when you close the ssh connection (very verbose, redirect to a file)
Dec
4
comment tmux session killed when disconnecting from ssh
to be sure, please describe step by step : I assume you ssh, start a tmux session, detach from the session, and close the shh : when you ssh again, you don t have any way to re join the tmix session? ie, the session is no longer running?
Dec
4
awarded  Citizen Patrol
Dec
4
revised Need a shell script which should send a mail to me once every 20 days
added tempo to make sure the find will find the last touched file
Dec
3
comment Back to back Pipes into a Command
@user43791 is right, and you can even do the following (makes it more like the cat you usually use) : <blah.txt ./command
Nov
27
comment Start a process on a different tty
this could be a XYproblem ... what are you trying to achieve? what is the overall goal?
Nov
25
comment Using `case` to handle script arguments
in remount you want to: shift ; $0 -unmount "$@" ; $0 -mount "$@" ;; (... so you don t loop on -remount, and you also pass along any remaining parameters)
Nov
25
comment Is there a difference between “a=b” & “a=$b”?
I'd put b assignment to "hello" as the first line
Nov
25
comment Windows boot option is missing after installing CentOS 7, how can I get it back?
+1 for the way you tried before asking, and also documented your tries in the question. You'll do well.
Nov
21
awarded  Yearling
Nov
12
answered Grep for pattern at start or middle of a line
Nov
10
comment How do I print pi (3.14159)?
+ pi/pi for you
Nov
10
comment SCP command with selected file and directories for download ask's for password for each new file or directory
I just meant to add this comment, so that people setting up a passwordless access take into account (and grok) the fact that the private key has to be in a safe environment and unreadable/unshared/etc. (ie, it's a gentle way to point this out, as the ones asking may not know all the implications that sharing/letting the private key be accessed could have)
Nov
10
comment SCP command with selected file and directories for download ask's for password for each new file or directory
+1, nice way (of course the ssh-keygen & ssh-copy-id has to be made only once). I'd say that it is more secure ... only if you make sure the private part is "unreachable" by anyone except that user... Which is not always easy.
Nov
6
revised How do I construct a list with numbers like this?
added 613 characters in body
Nov
6
comment How do I construct a list with numbers like this?
@StéphaneChazelas and cuonglm: thanks for the comments, I'll add the printf alternative (less heavy, indeed)
Nov
6
awarded  Enlightened
Nov
6
awarded  Nice Answer
Nov
5
revised How do I construct a list with numbers like this?
added alternative (+ thx and warnings)