Tags » Bash

Vagrant Too many open files - getcwd

My rule-of-thumb approach to issues in terminal is to kill the process, quit terminal and restart my MAC. If that fails, I call an exorcist and retire to a safe distance and assume the recovery position. 458 more words

Things I Feel Embarrassed To Share As They Reveal The Depth Of My Ignorance

/dev/tcp forgotten linux delicacy

Most of use nmap , ping ,ping ,wget curl , nc …. when need use or diagnose network from linux command line.
I want show you how  to use bash for fast diagnostic , scanning ,send or download files, open websites , check services and create simple backdoor. 623 more words

Linux

Create directories corresponding to each alphabet using linux command-line

Today, I had to create twenty-six directories each corresponding to an English alphabet. I wrote a simple bash script that uses for loop with mkdir to do it as shown below. 9 more words

Daily-tip

Shell One-liners and Quick and Dirty Loops

Sometimes you just need to get stuff done quickly and there’s nary a replacement than a quick shell one-liner.  Recently I’ve needed to feed some large, multi-variable commands into an external program for processing.  1,164 more words

Open Source

Summing up numeric values using bash

For example to add up the disk usage at several disjoint locations:

me@box$ numfmt --to=iec $[$(du -s /home/*/docs | cut -f 1 | paste -sd+)]
14 more words

Coding

awk: script created in 1988 still works

I have been using bash recently, and it turned out that some powerful regex options are available via awk.  I looked around and found a book written by the original awk authors Aho, Weinberger, and Kernighan: 170 more words

Bash