shell

Broadcast your shell thru port 5000

2010/11/20

Broadcast your shell thru port 5000 […] <td> <div class="text codecolorer"> mkfifo /tmp/fifo;(nc -q0 -l 5000 < /tmp/fifo &);script -f /tmp/fifo </div> …

function for copy files with progress bar (using pv – pipe viewer)

2010/11/11

function for copy files with progress bar (using pv – pipe viewer) […] <td> <div class="text codecolorer"> &nbsp;cp_p() { if [ `echo "$2" | grep …

Print all environment variables, including hidden ones

2010/11/09

Print all environment variables, including hidden ones […] <td> <div class="text codecolorer"> for _a in {A..Z} {a..z};do _z=${!${_a}*};for _i in `eval echo …

bash script to run a command and take screenshot in every loop.

2010/09/24

Couple of days back, I had posted a command to display a stop timer with bash and echo. There I had also put the following gif file: <img class="size-medium wp-image-2555" …

bash – echo command with option to display the output on the same line.

2010/09/21

Here is a nice little trick to display the output in the same line : […] <td> <div class="bash codecolorer"> &nbsp;<span class="kw3">echo</span> …

Remove some path from the PATH variable temporarily.

2010/09/04

How many times has it happened to you that you are working on some linux platform (like Fedora/Ubuntu/CentOS etc) and suddenly you see that you need to remove some path from the PATH variable so that …

Use the last command\’s output as input to a command without piping and bind to it to a key sequence in bash.

2010/09/01

Use the last command&#8217;s output as input to a command without piping and bind to it to a key sequence in <a class="zem_slink" title="Bash (Unix shell)" …

tee to a file descriptor

2010/08/13

tee to a file descriptor […] 1 $ tee >(cat &#8211; >&2) the tee command does fine with file names, but not so much with file descriptors, such as &2. This uses process …

Magic space on the current command line

2010/06/25

# For how to set up magic space for Bash see: # – http://www.ukuug.org/events/linux2003/papers/bash_tips/#slide15 # – http://codesnippets.joyent.com/posts/show/1690 man bash 2>/dev/null | less -p …

cdargs – bash cd command with bookmarks and browser.

2010/06/22

cdargs is a <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash shell cd with …

colors in bash – script to display all the possible colors.

2010/06/06

If you wanted to have colors in the bash output (including the colors in PS1-4), don&#8217;t you keep wondering how the color code would look on the terminal. So, I wrote this small script to show …

coproc help - a new feature in bash

2010/05/10

In the <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash version 4.0, there …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it