Basic Unix commands (including Cygwin)

Back to DEX-Install/Tutorial

 

Here are some basic Unix commands for navigating and exploring data.  Since Unix is often run in a command-line environment, you will have to type commands to see, edit and change the files and move between them.  Here are the very basic commands you will need to know to run DEX with confidence. 

 

Listing files and folders, type:

 

Pattern matching

ls time*.dat” will match everything in the folder that begins with “time” and ends with “.dat”.  This is a very powerful feature of Unix and should be used to reduce the number of commands are need to execute a program.

 

Changing folders/manipulation of folders

 

Changing/moving file/filenames

 

Printing a file

 

Viewing contents of a file

 

Executing/Stopping programs

 

vi program

Once you type the command above, the window will display the text.  Unlike a regular document program, vi does not let you just type using the keyboard.  Instead, each key has a function, such as move the cursor left or down.  Here are the basic commands you can use to edit and save the commands.  You can use the arrow keys just like normal, and must be used to move the cursor to the place you want to start typing/editing.  The mouse will not work in the standard “vi” program, only the keyboard is used.  This takes some getting used to.