(Fairly) Useful UNIX Commands

Updated January 2003

Running NASTRAN at NASA GSFC

mnas filename
mnas -d filename
mnas -opt "options" filename
mnas -t time filename
 
mnas -h
Run MSC.NASTRAN v2001
Run NASTRAN but do not delete temp files
Run NASTRAN with MSC options (use the quote marks!)
Run NASTRAN at time = HH:MM, e.g., 18:30 for 6:30 p.m.
(NOTE file extension such as .dat is not required)
Get mnas help
bjobs
bjobs -u all
Check NASTRAN job status
Check all users' jobs
bhist job id
bhist -l job id
Job details
Details for your jobs (NOTE lowercase "L")
bqueues List all job queues (fast, slow, normal)
bkill job id Kill queued NASTRAN job
bhosts Show status of local hosts running NASTRAN jobs

Navigation and File Manipulation
These commands are common enough and should be valid for all flavors of UNIX and Linux.

pwd Show current (present working) directory
cd directory Change directory
cd .. Go back one directory
cd Go back to your home directory
ls Directory listing
ls *.dat List all files ending with .dat ("*" is a wild card)
rm filename Delete (remove) file
mkdir directoryname Create (make) directory
rmdir directoryname Remove directory
more filename View file (no edit)
cp filename1 filename2 Copy file1 to file2 (keeps file1)
mv filename1 filename2 Move file1 to file2 (will rename file. Can move files to new directory)
man command Show a command description, i.e., a page from the "manual"

Notes:

Many Unix commands have modifiers which can augment their function. For example "ls -t" will sort files by time of creation or update rather than alphabetically. See the "man" entry for a particular command for details

".alias" files can be used to create a list of aliases for various commands.

For example: alias dr 'ls -alsF' makes "dr" equivalent to Unix command "ls -alsF"

Jeff Bolognese


HOME | FEMCI BOOK | PRESENTATIONS | REFERENCES | WORKSHOP | LINKS | ABOUT | MINUTES | PRIVACY