Skip to content

OpenSource is Better

OpenSource software should be encouraged more…

  • Home
  • Most Popular
  • HTML Sitemap

Tag: Bash

Bash is the shell, or command language interpreter, for the GNU operating system.

AWS dynamic IP ranges

Hi,

What are the dynamic IP ranges used by AWS in Ireland for the EC2 service?

$ curl -s https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.p[......]

Read more

Author AndreaPosted on November 15, 2018Categories Fun, How To, Programming, TipTags AWS, Bash, Linux, One-linerLeave a comment on AWS dynamic IP ranges

How to soft reset Linux disks

Sometimes disks stop responding and cause issues/slowness to the whole system, simply because the system is expecting some sort of response.
In these[……]

Read more

Author AndreaPosted on November 27, 2017Categories How To, TipTags Bash, Hard Disk, LinuxLeave a comment on How to soft reset Linux disks

Find sdx device/ATAx mappings

When dealing with hardware, you often see messages in the logs about disk issues or warnings.
Messages like:

ata9: hard resetting link
ata9: SATA[......]

Read more

Author AndreaPosted on March 18, 2017Categories How To, Programming, TipTags Bash, Hard Disk, Linux, One-linerLeave a comment on Find sdx device/ATAx mappings

Convert Squid/timestamps to a human readable format

Somebody had the brilliant idea to use Unix timestamps in the Squid log.
I suppose this makes it easy to parse, not so easy to read for us humans tho[……]

Read more

Author AndreaPosted on January 31, 2017January 31, 2017Categories Programming, TipTags Bash, One-liner, Perl, Squid1 Comment on Convert Squid/timestamps to a human readable format

bash – remove first line with tail and last line with head

You can achieve the same result with other (more powerful) tools, but I like this approach because it’s the simplest I can think of.

Let’s say you[……]

Read more

Author AndreaPosted on January 29, 2017Categories Programming, TipTags Bash, Head, One-liner, TailLeave a comment on bash – remove first line with tail and last line with head

sed – match and replace BIND/DNS serial number programmatically

I had to make some modifications to several BIND zone files, sed proved itself invaluable once again!

All the zone files looked something like this[……]

Read more

Author AndreaPosted on January 27, 2017March 18, 2017Categories How To, Programming, TipTags Bash, DNS, SedLeave a comment on sed – match and replace BIND/DNS serial number programmatically

Converting spreadsheets to text files with ssconvert

ssconvert is a utility shipped with Gnumeric, and it’s a command line spreadsheet converter.

Let’s say that you have some data in a spreadsheet (eg[……]

Read more

Author AndreaPosted on January 25, 2017January 31, 2017Categories How To, Programming, TipTags BashLeave a comment on Converting spreadsheets to text files with ssconvert

How to update all docker base images with one command

for docker in $(docker images|awk '{print $1,$2}'|sed 's/ /:/g'|grep -v REPOSITORY); do docker pull $docker; done

This command updates all your[……]

Read more

Author AndreaPosted on October 4, 2016January 26, 2017Categories How To, Programming, TipTags Bash, Docker, Linux, One-linerLeave a comment on How to update all docker base images with one command

How to update all pip python packages with one command

sudo pip install -U `pip list -o|cut -d ' ' -f1|tr '\n' ' '`

NB: One liners are potentially destructive. Don’t run anything unless you fully un[……]

Read more

Author AndreaPosted on September 11, 2016January 25, 2017Categories How To, Programming, TipTags Bash, Linux, One-liner, Pip, PythonLeave a comment on How to update all pip python packages with one command

Test email from command line

After having setup an email server (eg: using gmail as smtp server or sendmail as a SMART HOST or any other way you want..) you need to test it.[……]

Read more

Author AndreaPosted on August 7, 2013January 25, 2017Categories How To, TipTags Bash, Linux, mailLeave a comment on Test email from command line

Posts navigation

Page 1 Page 2 Next page

Follow OpenSource is Better!

Follow Us on TwitterFollow Us on RSS

Tag Cloud

  • Android
  • Apache
  • Audio
  • AWS
  • Bash
  • CMS
  • Cross-Platform
  • DNS
  • Docker
  • Firefox
  • Free-Software
  • fstab
  • Gnome
  • gParted
  • GRUB
  • Hard Disk
  • Head
  • iptables
  • javascript
  • jQuery
  • Linux
  • LVM
  • mail
  • MediaWiki
  • MultiMedia
  • One-liner
  • OpenSource
  • Partitioning
  • Perl
  • PHP
  • Pictures
  • Pip
  • Proxmox
  • Python
  • Security
  • Sed
  • Smartphone
  • Software
  • Squid
  • ssh
  • Tail
  • Ubuntu
  • Video
  • Virtualbox
  • Web

Most Popular

  • Rotate a video with Avidemux GTK
  • Root HTC Wildfire (Android 2.2.1), install Cyanogenmod 7 and fix GPS
  • PHP: remove duplicate elements from a multi-dimensional array
  • Disable directory listing/browsing – Apache
  • Linux: what is partition UUID and how to use it

Categories

  • Event
  • Fun
  • General
  • How To
  • News
  • OpenSource
  • Programming
  • Re-share
  • Review
  • Tip

Useful Links

  • Prism Break
  • Droid Break
  • Opensource.com alternatives
Creative Commons License
Open Source is Better by http://www.opensourceisbetter.com/ is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
  • Home
  • Most Popular
  • HTML Sitemap
OpenSource is Better Proudly powered by WordPress