A short summary of UNIX commands
To list the contents of a directory you can
use the "ls" command.
The default is the current directory.
The flag –al lists files and their sizes
giving full information.
*********************************************
To examine a file you can use the
"more" command.
You will see one window of the file with a
percentage indicator that tells you how much of the file you are examining.
Hitting the spacebar will move you to the
next window.
*********************************************
To edit a file use the "vi" editor.
*********************************************
To create a directory.
*********************************************
To remove a directory (must be empty).
*********************************************
To remove a directory and all subdirectories.
*********************************************
To remove a file.
*********************************************
To copy a file.
*********************************************
To copy a directory.
*********************************************
To move a file (file will no longer exist in
original location).
*********************************************
To change your password.
*********************************************
To find out which directory you are in (print
working directory).
*********************************************
To change the working directory.
*********************************************
To activate a script (make it an executable
file).
*********************************************
To grab text from inside a file.
*********************************************
To grab text from inside a file (or group of
files) and redirect to a new file.
Example: Grab the lines that contain the word
‘energy’ in all of the outmol files and write those lines to a new file called
output_energy