{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This preview shows pages 1–9. Sign up to view the full content.

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

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

View Full Document Right Arrow Icon
Today Basic Unix commands Environment Variables Execution of programs in Unix Assignment Submissions Accessing ITLabs Machines
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.
Image of page 3

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right 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.
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
Image of page 7

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

View Full Document Right Arrow Icon
Useful Commands tar czvf compressed.tar.gz dirName –
Image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern