Unix for Bioinformatics at KCL

wickedshortpumpBiotechnology

Oct 1, 2013 (3 years and 11 months ago)

119 views

Unix for Bioinformatics at KCL

Machine is called TEATREE teatree.kcl.ac.uk

(137.73.142.80)

All key strokes are CASE SENSITIVE



a is not A

Your log on ID

is the same for mail paws and teatree


however your
passwords are independent you ma
nage their ‘upkeep’
-

altering your mail
password does NOT change your teatree or paws passwords

file names

use a
-
z A
-
Z and 0
-
9 minus and dot are fine NO SPACES

DO NOT USE brackets or other punctuation marks like ;£$”*&^

Some unix commands

ls


list the contents of my current directory

cat

fileX


display the contents of file named fileX (not named filex)

cp

fileX fileY copy the file called fileX as fileY


(we have duplicated the contents of fileX)

mv

fileX file
Y move (rename) the file fileX as fileY


(ie no duplication)

rm

fileX remove (ie delete) the file named fileX

more

fileX display the contents of fileX on the screen


-

when the scree
n is full wait









pico

fileNEW edit a file called fileNEW














command line qualifiers

ls

l

show me the files in the long format

ls

lt

show me the files in the long format,



arranged chronologically (not alphabetically)

ls

ltr

as above with reverse chronology


(newest file at the bottom of the list)

exit

finish the session DO NOT leave your session ope
n


(hackers are real and painful)

Feb 2004

space bar

show me the next screen full

return

show me the next line

b

show me the previous page(back up)

/abc

find the next example of abc in


the file (case sensitive)

q

quit from more


add text delete text move left right up down

(just like ‘word’)


^X

control x exit and save the edits

^^

control shift 6 mark point


(then move and
highlight text)

^K

control k cut marked text

^U

control u uncut (ie paste) the previously


cut text

^W

control W find (where is?)

^R

control R Insert (Read) file at cursor