Terminal

Last updated 2 days ago

Various terminal commands that I don't wanna remember

Super Powers

Let there be life!

create.sh
upgrades.sh
destroy.sh
usage.sh
process.sh
# create directory named george
mkdir george
# create file with name george
touch george
# edit file
nano george
# edit with vi
vi george

Virtual Screen

virtual-screen.sh
xvfb-deps.sh
# 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.sh
while.sh
until.sh
# 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