A 5-minute unix shell introduction
Git commands require you to use the shell. For people who started using computers before 1995, this is like the DOS prompt, but massively more powerful. It’s a bit like R but for managing your files and programs. It can also be dangerous, so be careful. We don’t need many commands, so hopefully this list will do. We’ll add more if needed.
ls
: list files in the current directorycd
: change directorypwd
: print the path to the current directorymv
: move (rename) a file or directorycp
: copy a file (need to pass argument-r
for directories)
There are many many tutorials on the internet for using the shell. Software carpentry have a great and very thorough introduction.