User:Amy Suo Wu/dummies, the sequel

From XPUB & Lens-Based wiki

==10th Nov


28th Oct. tile distort with imagemagick and cronjob

Rain.pngRain.pngRain.pngRain.pngRain.pngRain.pngRain.pngtoday's weather forecast is........ Rain.pngRain.pngRain.pngRain.pngRain.pngRain.png


21th Oct. I Command line!

ps ax = get a list of all processes running on the computer.

grep = search for a string

scp = secure copy
ssh = secure shell


ls = show me in folder
ls -al = all files (also hidden)
cp = copy (e.g cp ../../newmovie.mp4 . means to copy file two folders before here 
../../ is relative
* is wild card.

mv = move folder/file, or rename
mkdir = make directory
cd = change directory
rm = remove file
rm -rf = remove folder
rm -r = remove recursively. delete all contents incl folder

grep = find a string. (crawls for words in file)
grep "blah" "*"

find
man = manual

watch = timer. can do it to any file
-surveilling the file. command: e.g. watch cat poo.txt 3(e.g. txt) 
-This runs the command every 3 seconds.


./ = execute

sed = search and replace
cat = concatinate and print files (shows content of file and outputs in binary form)
echo = is echo
less = 


| = pipeline
> = output
>> = adding files.

ctrl + c


example:
ls -al ~
mv *.jpg ~/pics/
rm -rf pics
grep “bla” *
find -name “*bla*”
mkdir test
echo bla > bla.txt
echo blabla >> bla.txt
cat /var/log/auth.log |less