This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX INFORMATION TECHNOLOGY EDUCATION DEPARTMENTIOS 102 LAB Operating Systems Laboratory WEDNESDAY 16 00 18 50EXERCISE 3Linux Directory and File Creation CommandsILAGAN SAMUEL D SALCEDA MA CARMELA B APRIL 13 2016Experiment No 3 Directories and File Creation 1 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX I Objectives Create directory and sub directories using mkdir command Move between directories using cd command Create a text file using cat command List the files in a particular directory using ls command Display current working directory using pwd commandNote Save this file as SURNAME1 SURNAME2 EXPT3 DOCXII Tasks Procedure Instructions Part I Knowing your working directory and creating directories To create a new directory use mkdir command Syntax mkdir directoryname 1 Type the command pwd at your default prompt Paste your captured executed command below 2 What is the meaning of pwd Answer PRESENT WORKING DIRECTORY3 Create a directory at your current directory Use your surname1 surname2 as your directory name Paste your captured executed command and output below 4 Type ls to check the content of your current working directory Paste your captured executed command and output below 5 Create a directory tree The following command will created a directory tree where dirC will be2 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX created under dirB and dirB is created under dirA Type the command at your prompt mkdir p dirA dirB dirCPaste your captured executed command and output below Part II Move between directories To move to a directory use cd command Syntax cd directoryname1 Move to your surname directory Paste your captured executed command and output below 2 What is your current prompt Answer student localhost ilagan salceda3 Move to the dirA directory First you need to exit from surname1 surname2 directory and go back to your home directory To do this type the following cd There is a space between cd and Paste your captured executed command and output below 4 What is your current prompt Answer student localhost dirA5 Move to dirB and dirC sub directories Paste your captured executed command and output below 6 What is your current prompt Answer student localhost dirC7 Move one level hierarchy down from the current directory 3 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX Type the command cd There is a space between cd and Paste your captured executed command and output below 8 What is your current prompt Answer student localhost dirB9 Go back to your home directory Paste your captured executed command and output below 10 What is your current prompt Answer student localhost Part III Create a file To create a file use cat command Syntax cat filename1 Create a file called file1 in dirA cat file1My name is Bond James Bond Some call me Agent Bond Others call me Agent 007 Don t mess with me Ctrl D Paste your captured executed command and output below 2 Open the file1 4 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX cat file1Paste your captured executed command and output below 3 List the file s at dirA Paste your captured executed command and output below Part IV Challenge1 List the files directories in your surname directory lsWhat files directories do you see Paste your captured executed command and output below There are no files nor directory in the ilagan salceda directory 2 Go to your dirC directory Paste your captured executed command and output below 3 Create a file called myinfo using cat command in dirC The file should contain 50 lines about you and your partner 25 lines for each student Make the first line as your full name Number each line 5 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX Paste your captured executed command and output below 6 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX 4 Open your myinfo file using cat command Paste your captured executed command and output below 7 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX 8 This study source was downloaded by 100000851653933 from CourseHero com on 11 20 2022 10 17 57 GMT 06 00 https www coursehero com file 27610231 ILAGAN SALCEDA EXPT3DOCX Powered by TCPDF www tcpdf org 9
View Full Document