100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary Chapter 3 – Exploring Linux Filesystem $6.49   Add to cart

Summary

Summary Chapter 3 – Exploring Linux Filesystem

 5 views  0 purchase
  • Course
  • Institution
  • Book

Summary of Chapter 3 of the Linux+ CompTIA book. Topics discussed are: - Linux Directory Structure. - Viewing Files and Directories. - Displaying contents of text files. - Searching for text in text files - Editing text files - Review questions

Preview 2 out of 9  pages

  • No
  • Chapter 3
  • February 23, 2024
  • 9
  • 2023/2024
  • Summary
avatar-seller
3. Exploring Linux Filesystems
The Linux Directory Structure
• A structure that organizes files is necessary to make it easier to find and manipulate data
and run programs
• Linux uses a logical directory tree to organize files into directories
• When a user stores files in a certain directory, files are physically stored in the filesystem
of a certain partition.
• The absolute pathname to a file or directory is the full pathname of a certain file or
directory starting from the root directory
• Linux structure contains a single root (referred to using /), with different filesystems on
hard drive partitions mounted to different directories on the directory tree.


Changing Directories

• When logged in, you are placed in your home directory
o a place unique for the user for storing personal files
o regular users usually have a home directory named after their user account under
the /home directory.
o Regardless of your user name, you can always use the ~ metacharacter to refer to
the home.
• You can use `pwd` (print working directory) command to confirm the system directory
you’re currently in.
• You can use the cd (change directory) command with an argument to change directory.
o If destination not specified, it returns you to your home directory
• A relative pathname is the pathname of a target file or directory relative to you current
directory in the tree.
o To refer to a directory one step back on the tree (parent directory) use two dots ...
• BASH shell uses Tab-completion feature when typing pathnames as arguments to
commands.

, Viewing Files and Directories
File types

• A linux system can have several types of files:
o text files
o binary data files
o executable program files
o directory files
o linked files
o special device files
o Named pipes and sockets
• Most files that contain configuration information are text files.
• A program is typically associated with several supporting binary data files
o store information such as common functions and graphics
• Linked files are files associated with another.
o they can represent the same data
o they can point to another files (also known as shortcut file)
• Special device files are less common than other file types
o represent different devices on the system
• Named pipe files identify channels that pass info from one process in memory to another.
• A variant of the pipe file is a socket file.
o allows a process on another computer to write a file on the local computer while
another process read from that file.


Filenames

• Files are recognized by their filenames
o can include up to 255 characters
o rarely longer than 20 characters
• Filenames that start with a period (.) are hidden files.
• The characters at the end of the filename indicate the file type

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller kennethherrera. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $6.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85169 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$6.49
  • (0)
  Add to cart