recentpopularlog in


« earlier   
shell - sh recursive copy (cp -r) - How to exclude subfolder
I need to run a remote script using ssh via Ruby (net/ssh) to recursively copy a folder and exclude a subfolder. I am looking for the fastest way to do it so rsync is not good. Also, I understand that ssh uses sh and not bash.

[the question itself may not have much need for, but there are tons of useful infos in the answers. -- tmx, 21 aug 2018]

Unix & Linux Stack Exchange | | aug 2018
os-gnu-linux  shell  shell-bash  shell-howto  shell-rsync  tech  tech-howto  format-q/a  type-discussion  type-information 
13 hours ago by tometaxu
Running Commands on Your Linux Instance at Launch - Amazon Elastic Compute Cloud
In practice, this feature works for a few commands, like installing the SSM agent, but it doesn't work for a lot of commands, especially if they take time (are blocking). For that it's better to launch them with the bare minimum (install ssm agent, python) and then use an ansible playbook to install the rest.
aws  documentation  guide  reference  howto  run  shell  commands  linux  instance  launch  ansible  playbook 
16 hours ago by racl101
Git - Git Aliases
"(...) If you don’t want to type the entire text of each of the Git commands, you can easily set up an alias for each command using git config. (...)

This technique can also be very useful in creating commands that you think should exist. For example, to correct the usability problem you encountered with unstaging a file, you can add your own unstage alias to Git:

$ git config --global alias.unstage 'reset HEAD --'

This makes the following two commands equivalent:

$ git unstage fileA
$ git reset HEAD -- fileA

git  shell  usability  knowledge 
19 hours ago by eric.brechemier
📖 A collection of pure bash alternatives to external processes.
github-star  shell 
22 hours ago by rub1
ShellCheck – shell script analysis tool
finds bugs in your shell scripts.
You can cabal, apt, dnf or brew install it locally right now.
Paste a script to try it out
shell  code  utility  ++++- 
2 days ago by jonippolito

Copy this bookmark:

to read