Working with Files

CompTIA Linux+ Domain:

Domain 2.0: Systems Operations and Maintenance
Domain 5.0: Automation and Scripting

CompTIA Linux+ Objective:

Objective 2.3: Given a scenario, create, modify, and redirect files.
Objective 5.1: Given a scenario, deploy and execute basic BASH scripts. 

Overview

This lab provides guidance on working with files of the Linux+. You will be learning about the foundations of managing files and folders in this lab. By performing this lab, students will learn how to manage permissions, manage file ownership, and administer links on a Linux system. 

outcomes:


In this lab, you will learn to:

  1. Change group ownership and file ownership.
  2. View default file permissions.
  3. Change file permissions using chmod.
  4. View and set special permissions.
  5. Change the system umask.
  6. Manage symbolic and hard links.
  7. Locate commands.

Key terms and descriptions

File
A file is an object on a computer that stores data, information, settings, or commands used with a computer program.
Directory
A directory is a location for storing files on your computer. Directories are found in a hierarchical file system.
Symbolic Link
A symbolic link is a new file that stores the path of the original file and not its contents.
Hard Link
A hard link in Linux represents a link (inode) to the actual file location of a normal file. It looks and acts like a normal file.