In 
you want to install network tools (like ping) you need to install
You can squash your image size even further by some tips. When you install a package, linux distros first download the package and put it in a cache folder. In
To tell the OS to delete the cache after installation you can provide
There are some package like
y using
Great job guys! You have reduced your alpine docker images so much :)
#docker #linux #alpine #apk #virtual #no_cache #apk_del #apk_add
  Dockerfile`s some people in the community use `alpine base image in order to reduce docker image size. apk is its package management tool that can be used to install OS packages. So for example ifyou want to install network tools (like ping) you need to install
netcat-openbsd:apk add netcat-openbsd
You can squash your image size even further by some tips. When you install a package, linux distros first download the package and put it in a cache folder. In
Alpine it is located in /var/cache/apk.To tell the OS to delete the cache after installation you can provide
--no-cache option to it:apk add --no-cache netcat-openbsd
There are some package like
g++ or git that is needed on installation of some other packages. After installation those packages is useless and just increase image size. You can remove those packages by using
--virtual command:apk add --no-cache --virtual .build-deps g++ \
&& # do you stuff here \
&& apk del .build-deps
Great job guys! You have reduced your alpine docker images so much :)
#docker #linux #alpine #apk #virtual #no_cache #apk_del #apk_add
pdsh: a high performance, parallel remote shell utility. Pdsh is a multithreaded remote shell client which executes commands on multiple remote hosts in parallel.  Pdsh can use several different remote shell services, including standard "rsh", Kerberos IV, and ssh.To see more about it head over to:
- https://github.com/grondo/pdsh
#linux #shell #pdsh #shell
GitHub
  
  GitHub - grondo/pdsh: A high performance, parallel remote shell utility
  A high performance, parallel remote shell utility. Contribute to grondo/pdsh development by creating an account on GitHub.
  How to copy a file in the same path with a different name?
Well you just need to use curly braces, {}, to make it happen:
What you usually MIGHT do:
You can take the smart path btw:
NOTE: if suffix of both files are different you can put that inside of curly braces too.
#linux #sysadmin #cp #copy #trick
  Well you just need to use curly braces, {}, to make it happen:
What you usually MIGHT do:
cp /usr/local/share/lib/sample.conf /usr/local/share/lib/settings.conf
You can take the smart path btw:
cp /usr/local/share/lib/{sample,settings}.confNOTE: if suffix of both files are different you can put that inside of curly braces too.
#linux #sysadmin #cp #copy #trick
https://www.digitalocean.com/community/tutorials/using-grep-regular-expressions-to-search-for-text-patterns-in-linux
#linux #grep #regex
  
  #linux #grep #regex
Digitalocean
  
  Mastering grep with Regular Expressions for Efficient Text Search | DigitalOcean
  Learn how to use grep with regular expressions to search, filter, and process text in Linux and Unix systems. This guide covers syntax, and practical use cases.