ls or dir: files and subdirectories of current directory ls -al: list detailed contents of current directory cd directoryname: change directory, cd .. to go back to the parent directory pwd: show the path of the current directory hostname: name of computer
mkdir directoryname: create a directory ssh hostname: go to another machine (eg parallel1), use exit to go back cp pathname-filename pathname: copy file to a different location, ~/ is your home directory Control-c: stops a running program. use the Up & Down Arrows to repeat commands (!)
copy: select a text, paste: click on right mouse button (or both mouse buttons at the same time) TAB: to complete the name of a program, file or directory. grep <options> <word> <files> to look for a word in files, use * to look in all files, use option -R for recursive search (in subdirectories)
- Back to the top -