cd [directory] changes to named directory cd .. changes directory to home Tab key completes a file/directory name rm [filename] deletes a file rmdir [directory] deletes a directory ls lists all files and directories in current folder ls -l As above but with more details emacs [filename] text editor ctrl k deletes line in emacs middle mouse button pastes highlighted text in same window only ctrl c terminates running program ./[program] < [inputfile] tells named program to get input from named file ./[program] > [outputfile] tells program to output to named file cp [filename] [newfile] copies [filename] and gives it the name [newfile] both paths can be specified diff [file1] [file2] compares the two files and displays the differance grep -ni [word] * Looks for the word in the files in the current directory. i is case insensitive. n shows line number grep -c "WORD" filename Counts how often WORD appears in the specified file
Department of Chemical Engineering,
University of Bath
Copyright (c) 2015 Tina Düren. All rights reserved. Design by FCT.