Command-line interface

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


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" …

cURL – Tutorial


Here are linkw to two nice tutorials on curl and how to use curl to login before we try to fetch a page. Hope you find them useful. …

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


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)" …

Typing the current date automaticly in any application with a key binding.


$ xvkbd -xsendevent -text $(date +%Y%m%d) I don&#8217;t want to waste time to all the time type the current date. I have set this snippet in my kde shortcuts with meta+l. All the <a …

Magic space on the current command line


# For how to set up magic space for Bash see: # – # – man bash 2>/dev/null | less -p …

wmctrl – window control manager


What is <a class="zem_slink freebase/en/wmctrl" title="Wmctrl" rel="wikipedia" href="">wmctrl? wmctrl is a command that …

Verify all the paths in the PATH directory


Here is the command to test that all the directories in your path actually exist. […] (<a class="zem_slink freebase/en/internal_field_separator" title="Internal field …

command not found – packagekit plugin


If you run into problems where you run some command and the command is not found and you have to install it and run the program again then why not use the command not found <a class="zem_slink …

Find out why a program can’t seem to access to a file


$ strace php tias.php -e open,access 2>&1 | <a class="zem_slink freebase/en/grep" href="" title="Grep" …

vim understanding the various modes and using the yanking more efficiently.


We will look at the vim modes today. Sometime back , I was looking at copying a function body. So I was basically looking to copy the lines till matching &#8221;}&#8221;. I found a plugin …



Example output for

Display the output of a command from the first line until the first instance of a regular expression.


| perl -n -e 'print "$_" if 1 … /«a class="zem_slink freebase/en/regular_expression" title="Regular expression" rel="wikipedia" …

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