Category: Linux

0

How to run node script from BASH?

Below shell script is running a node script, which gets an object from package.json, updates the app version and writes it back to the package.json using node API. // foo.sh node <<EOF var fs...

0

How to check your ubuntu version

Occasionally you might want to know the version of ubuntu when installing a package. I usually use the following command $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION=”Ubuntu Saucy Salamander (development branch)”

0

How to remove untracked files using git?

git clean removes all the untracked files from the project. It is very in large projects where you have lots of build related, log files which are not necessary to build the product. If...

0

-nt file test operator in bash

File based condition for if statements in bash Condition: [ newerfile -nt olderfile ] Description: newerfile was changed more recently than olderfile, or if newerfile exists and olderfile doesn’t. Example: if [ file1.txt -nt...

0

What does ip address 0.0.0.0 mean?

The first time I saw that addres I was a bit confused. I used to think that 127.0.0.1 was the only way to refer to your local machine. Turns out, 0.0.0.0 is another way...