Is there a way to continue broken scp (secure copy) command process in Linux? [closed]

If you need to resume an scp transfer from local to remote, try with rsync: rsync –partial –progress –rsh=ssh local_file user@host:remote_file Short version, as pointed out by @aurelijus-rozenas: rsync -P -e ssh local_file user@host:remote_file In general the order of args for rsync is rsync [options] SRC DEST

Is there a better Windows Console Window? [closed]

Sorry for the self-promotion, I’m the author of another Console Emulator, not mentioned here. ConEmu is opensource console emulator with tabs, which represents multiple consoles and simple GUI applications as one customizable GUI window. Initially, the program was designed to work with Far Manager (my favorite shell replacement – file and archive management, command history … Read more

How can I expand/collapse a diff sections in Vimdiff?

Aside from the ones you mention, I only use the following frequently when diffing: :diffupdate :diffu -> recalculate the diff. It is useful when, after making several changes, Vim isn’t showing minimal changes anymore. Note that it only works if the files have been modified inside vimdiff. Otherwise, use: :e to reload the files if … Read more

Highlight text similar to grep, but don’t filter out text [duplicate]

Use ack. Checkout its –passthru option here: ack. It has the added benefit of allowing full perl regular expressions. $ ack –passthru ‘pattern1’ file_name $ command_here | ack –passthru ‘pattern1’ You can also do it using grep like this: $ grep –color -E ‘^|pattern1|pattern2’ file_name $ command_here | grep –color -E ‘^|pattern1|pattern2’ This will match … Read more

Send request to cURL with post data sourced from a file

You’re looking for the –data-binary argument: curl -i -X POST host:port/post-file \ -H “Content-Type: text/xml” \ –data-binary “@path/to/file” In the example above, -i prints out all the headers so that you can see what’s going on, and -X POST makes it explicit that this is a post. Both of these can be safely omitted without … Read more

Is it possible to create a remote repo on GitHub from the CLI without opening browser?

CLI commands for github API v3 (replace all CAPS keywords): curl -u ‘USER’ https://api.github.com/user/repos -d ‘{“name”:”REPO”}’ # Remember replace USER with your username and REPO with your repository/application name! git remote add origin git@github.com:USER/REPO.git git push origin master

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)