.

Wednesday, December 26, 2018

'Netw240 Week 2 Lab\r'

'NETW240 week 2 science research research laboratoryoratoryoratory: Basic Linux Com soldieryds and Directories Lab Scenario Launching Your Lab The circumstance of your lab is displayed at the top of the left(p) navigation column. pawl the Start Lab straightaway button. A progress bar displays magic spell the lab is being initialized. During this time you tin peck view items under the Content region of the left navigation bar. When initialization is murder, the status changes to In Progress. The clock starts and a lab diagram displays in the main meat ara. Click on the diagram that appears, and your practical(prenominal) lab experience will begin.If your union isnt working, verify connectivity by clicking cast companionship in the Tools section on the left navigation bar. Assignment * Identify the balance amongst a nonchalant substance ab exerciser and the super exploiter (or root) by examining the event quick. * Illustrate the neglect utilize to sky fro m a casual user to the superuser. * plot, label, and describe the major scheme directories beneath root (/). * Illustrate the use of basic Linux shell commands to move around in the hierarchical consign system. Diagram Lab Tasks See Chapter 3, The Linux File schema.Note roughly schoolbook editor program in chiefs in Element K: All schoolbook editor tasks in this lab argon shown exploitation the nano school text editor, but you are also give up to use the vi text editor as an option if you know the much(prenominal) complex command hierarchy. If you are using nano as your text editor and lucre Explorer or plate as your browser, you can non use Ctrl-O to birth your file. This hot depict is used by IE and chrome to kick in files. You will fool to fall out and keep on as follows: pep up Ctrl-X (Exit); at the prompt â€Å"Save Modified Buffer,” narrow Y then memorialise. This will save the file and exit the text editor.Mozilla Firefox does not seduce this issue with Ctrl-O. | pure tone 1: Procedures If you are not already logged in, enliven log in as a standard user. Your login name will be student or vlab with the password password. 1. Click on Applications ; System Tools ; Terminal. This will fiddle up a Terminal entomb for you so you can apply the commands in this lab. 2. Using the â€Å"switch user” (su) command, switch from standard user mode to the superuser (root) user mode. The root password is the same as the student password. 3. During the lab, you will be asked to recruit act to questions asked in your lab activities.You indispensableness to enter the practises to these labs at the click of this lab scalawag and submit that to your program shell Dropbox in order to receive reliance for it. Step 2: File System Navigation 1: boasting a ache itemisation of the filesystem root ( ? ). enter ls â€l. master the output is in a large list format. 2: pageantry a ample listing of the ? etc directory. p reface ls -l ? etc. operate to it that the output is from the ? etc directory and is a abundant list. What fiber of files may you relegate in this directory? relieve your answer in the answer sheet at the bottom of this lab. 3: Display a languish listing of the ? in directory. reach ls -l ? bin. Verify that the output is from the ? bin directory and is a long list. What type of files may you queue in this directory? compile your answer in the answer sheet at the bottom of this lab. 4: Display a long listing of the ? sbin directory. land ls -l ? sbin. Verify that the output is from the ? sbin directory and is a long list. What type of files may you engender in this directory? bring out your answer in the lab idea document. 5: Display a long listing of the ? dev directory. take down ls -l ? dev. Verify that the output is from the ? dev directory and is a long list.What type of files may you find in this directory? What is this directory used for? Write your answers in the lab cut through and through document. 6: Display a long listing of the ? usr directory. ship ls -l ? usr. Verify that the output is from the ? usr directory and is a long list. What type of files may you find in this directory? Write your answer in the lab incubate document. 7: Display a long listing of the ? home directory. submit ls -l ? home. Verify that the output is from the ? home directory and is a long list. What type of files may you find in this directory? Write your answer in the lab write up document. : Display a long listing of the ? root directory and its hidden files. come in ls -al ? root. Verify that the output is from the ? root directory and is a long list. What type of files may you find in this directory? What is this directory used for? Write your answers in the lab report document. 9: give in to your home directory. picture cd ?. levy pwd. What does the acronym pwd stand for? What is the output of the pwd command? component â€Å"? ” repre sents your home directory, regardless of who you are logged in as. What is a home directory used for? Write your answers in the lab report document. 0: Create files. precede touch example1. Enter cp example1 example2. 11: Create a directory. Enter mkdir file-cabinet. Enter ls. You should see files example1 and example2 and a directory called file-cabinet. 12: Change directory. Enter cd file-cabinet. Enter ls. Enter pwd. What directory are you in? Write your answer in the lab report document. Enter cd … Enter pwd. get hold that the command cd .. took you back to the higher(prenominal) level directory. 13: Delete the directory. Enter ls. Enter rmdir file-cabinet. Enter ls. Was the directory file-cabinet deleted? Write your answer in the lab report document. 4: Delete the files. Enter ls. You should still be able to see both the example1 and example2 files. Enter rm example* (* represents zero or more characters). Enter ls. Were the example1 and example2 files deleted? Write yo ur answer in the lab report document. 15: transmit help on the ls command. Enter man ls | less. Now you can use your up and down arrow keys to scroll through the information on the ls command. You will chance upon that there are many options that can be used with this command. Remember that in order to use any of these commands you have to use a space between the command and the option.For example, ls -l works, but ls-l will not work. Result: N/A Step 3: employ the nano command bill editor to create and modify files. save: 1: Navigate to your home directory. Enter cd ~. Enter pwd. What directory are you in currently? Write your answer in the lab report document. 2: Use nano to create a file. Enter nano myfile1. You are now in Editor order for the file myfile1. 3: Add heart to the file. At this point, you can type in some text. Type in your adept name, address, and phone number on diverse lines. 4: Control Keys for nano. Note the discipline menu at the bottom of the nano te xt editor.The (^) symbol refers to the Ctrl key, so ^X (Exit) refers to at the same time pressing the Ctrl and X keys. Other common land control keys are ^K and ^U for cut and paste operations and ^R for opening a new file. ^W is a control key for finding text in a file. If you are using nano as your text editor and Internet Explorer or Chrome as your browser, you cannot use Ctrl-O to save your file. This hotkey is used by IE and Chrome to open files. You will have to exit and save as follows: press Ctrl-X (Exit) and at the prompt Save Modified Buffer, press Y then Enter.This will save the file and exit the text editor. Mozilla Firefox does not have this issue with Ctrl-O. 5: Save your modifications and exit. weight-lift Ctrl-O and press Enter to save your myfile1 file. Press Ctrl-X to exit the nano command line text editor. 6: Check the content of your file. Enter cat myfile1. You now can see your contents of the myfile1 file. This concludes your lab. Download the lab report do cument for week 2. Please complete all questions on the answer page and submit the answers in the lab report template in the iLab section of the course shell.\r\n'

No comments:

Post a Comment