PROJECT("myfoo") ADD_EXECUTABLE(myfoo myfoo.cpp mybar.cpp)
Check which directory you're in: pwd List the contents of the current directory: ls or: ls /path/to/somewhere (note: absolute paths begin with "/". "." means the current directory, so "./foo" means "the subdirectory called foo in the current directory") "ls -l" will give you more info, and appending -h will make the numbers nicer to read List with hidden files: ls -A Change to another directory: cd /path/to/directory (note that *nix uses / for a delimiter, not \ like Windows. \ can be used to escape special character like spaces if they occur in paths that you're typing, as in "\ " or "\"" for a literal quote. Also note that *nix is case sensitive unless it tells you otherwise. move files: mv source dest what it sounds like - paths are specified the same as before echo strings: echo string print out (and optionally concatenate) files: cat file1 [file2....fileN] read the "fine" manual (RTFM): man commandname most programs also will give basic usage info if you add a "--help" or "-h" switch, but not all will, so it's best to try man first.