rec1-2010 - Welcome to CSci4061! Today Basic Unix commands...

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

View Full Document Right Arrow Icon
Welcome to CSci4061!
Background image of page 1

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

View Full DocumentRight Arrow Icon
Today Basic Unix commands Environment Variables Execution of programs in Unix Assignment Submissions Accessing ITLabs Machines
Background image of page 2
Test Files We will be covering several commands today. As we dicuss them you should try them out on the machines in front of you. Go to the 4061 course website and download today's files under Recitations: Recitation 1. Extract the files by using “tar xzvf filename”. We will be using these files later on to try out some commands.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Basic Unix Commands - ls ls: lists files in current directory. With the -l option more information is printed on the screen. Example: $ ls -l -rw-r--r-- 1 mike mike 2364 Oct 8 11:31 sample.txt permissons owner group File Size Date of creation file name
Background image of page 4
Basic Unix Commands - chmod In order to execute a program in Unix you have to have execute permission. Permissions can be changed using the chmod command: R W X R W X R W X User (u) Group (g) Others (o) Example 1- give execute permissions to the user: chmod +x helloWorld.pl Example 2- remove read premissions from group and others: chmod go-r
Background image of page 5

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

View Full DocumentRight Arrow Icon
Try it out Go to the directory where you extracted the test files List the directory contents by using ls -l. Observe the file permissions. Use chmod to remove read and write access for others for all testfiles.
Background image of page 6
Basic Commands cd path – change directory rm file – deletes file cp file1 file 2 - copies file 1 to file 2 mv file1 file2 - moves file1 to file2 mkdir dirName - creates directory pwd – current working directory
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/21/2011 for the course CSCI 4061 taught by Professor Tripathi during the Spring '08 term at Minnesota.

Page1 / 19

rec1-2010 - Welcome to CSci4061! Today Basic Unix commands...

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

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