Bash

Various terminal commands that I don't wanna remember

Super Powers

Let there be life!

# create directory named george
mkdir george

# create file with name george
touch george

# edit file
nano george

# edit with vi
vi george

Virtual Screen

# Note: you will still need to install all the dependencies for xvfb to run
xvfb-run --server-args='-screen 0 1024x768x24' node src

Loops

# For loop using counter
for COUNTER in `seq 1 10`;
do
    echo The counter is $COUNTER
done

# For loop using other values
for i in $( ls ); do
    echo item: $i
done

Last updated