Unix Tutorial - The University of Texas at Dallas Dept. of...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
The University of Texas at Dallas Dept. of Electrical Engineering EE 5325: Hardware Modeling Using VHDL EE 6301: Advanced Digital Logic (Instructor: Mehrdad Nourani) Unix for Dummies ! Some Unix Commands, At a Glance DISCLAIMER: This document aims at your becoming familiar with basic UNIX com- mands. UNIX is a large and complicated operating system with many commands and features that are not explained here. What we explain here is the minimum to use a UNIX workstation. Nothing is guaranteed here. With the new versions of UNIX, there might be problems in this document and some commands may not work ex- actly as explained. Proceed cautiously and use it at your own risk. I encourage you to assign enough time to familiarize yourself with UNIX to be able to use it ef- ficiently. Please report problems, corrections and suggestions about this document to nourani@utdallas.edu . File Management --------------- ls LiSt current directory. ls -R LiSt current directory and all subdirectories. ls -l List current directory with user permission/time/date. ls *.c List all files in the current directory that end in dot c. ls ˜/*.c List all *.c files in the user’s home directory. ls -l cpu*.def List all files that start with cpu and end in dot def. ls -a List all hidden files (files that begin with a dot). man ls Gives the all MANual information on the ls command. more hello.c Display the ’contents’ of the file hello.c at 24 lines at a time. This prevents the text from scrolling by the screen. Press the space bar to proceed. Press q to quit. man more Gives the all the MANual information on the more command. cp source dest CoPy a file from source to destination. Example, copy aaa.c to bbb.c: cp aaa.c bbb.c rm filename ReMove a filename from the current working directory. rm -v * ReMove files selectively (verbose) with y or n (yes/no). mv old new Rename (MoVe) the old filename with a new filename 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
quota -v Display your disk space quota. chmod a+x file CHange the access MODe for All users (User,Group,Others) to eXecutable. chmod g+rwx file chmod u-rw file CHange to NOT allow user to read or write. chmod g=rx,o=rx directory Will make your directory public (g=r,o=r directory read only will not do it) Directory Management -------------------- pwd Display your Present Working Directory cd If lost then return to original login directory path mkdir xyz MaKe a DIRectory xyz. cd xyz Go down the directory to xyz (Change Directory). cd . . Go relative up the directory path. rmdir xyz ReMove DIRectory xyz. cd /path Go absolute path addressing from the root directory. Large scale file management commands (Finding text & files when you forget) --------------------------------------------------------------------------- tar cvf <tarfile> <files|directories to be saved save> Tape ARchiver: copy all files/directories into a tarfile Example: "tar cvf zzz.tar *" creates a tar file called "zzz.tar" and then copies all files "*" into it.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/23/2009 for the course EE 6303 taught by Professor Mehrdadnourani during the Fall '08 term at University of Texas at Dallas, Richardson.

Page1 / 11

Unix Tutorial - The University of Texas at Dallas Dept. of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online