IC-05-L2 Linux Terminal

pdf

School

University of Central Florida *

*We aren’t endorsed by this school

Course

CYBER SECU

Subject

Information Systems

Date

Jan 9, 2024

Type

pdf

Pages

8

Uploaded by PresidentDogPerson959

Report
Cybersecurity Professional Program Introductory Course Linux OS IC-05-L2 Linux Terminal Lab Assignment Copyright © 1996–2021 HackerU Ltd. All Rights Reserved.
Page 2 Lab Objective Become familiar with the Linux file system and the commands used to operate the Linux terminal. Lab Mission Practice Linux terminal commands for system navigation and file manipulation. Lab Duration 25 35 minutes Requirements Basic understanding of Linux commands Resources Environment & Tools o VirtualBox Kali Linux Textbook References Chapter 5: Linux OS o Section 2: Navigation & Content Manipulation
Page 3 Lab Task 1: Navigation In this task, you will practice commands used to navigate the Linux file system. 1 In Linux VM, open the terminal by clicking the black icon in the panel at the top. 2 Run the pwd command to view your current location . You should be in the home directory of the user . 3 Run the ls command to view files and directories in the current directory. The directory should contain the default folders for new users.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Page 4 4 Run the command ls -a to view all files, including hidden files and directories. 5 Run ls -l to view files and directories in list format. What type of information can you see in the output? Note: Compare all the additional information the -l flag provides. 6 Change the directory to the Documents folder using the command cd Documents . Note: Commands using file names or directories are case-sensitive. 7 Create a new directory named Videos using the command mkdir Videos .
Page 5 8 Run ls to view the new folder. Do you see the Videos directory? 9 Remove the Videos directory using the command rmdir . Then check with ls .
Page 6 Lab Task 2: Content Management Practice using commands that read, move, and modify files in the Linux file system. Make sure the terminal is open. 1 In the Documents directory, run the command touch text.txt to create the file text.txt . 2 Run the command nano text.txt and insert the words some text in the file. 3 To save the changes, press Ctrl+X , press y , and press Enter .
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Page 7 4 Run the command cat text.txt to print the contents of text.txt . 5 Run the command cp text.txt ../text.txt to copy the file to the parent directory. Give the copied file the same name: text.txt . 6 Navigate to the root directory using cd ~ . 7 Verify the file was copied successfully ( ls ).
Page 8 8 Copy text.txt to the same directory but change its name to text2.txt . 9 Now there are two text files, one called text.txt , and another called text2.txt . Rename text2.txt to text3.txt using the command mv text2.txt text3.txt . Check the results with the ls command. 10 Use rm text.txt to remove the file. Verify that the file was removed using the ls command.