• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
May 11, 2022 |2.2K Views

Working with Directories in Linux

  Share   Like
Description
Discussion

In Linux/Unix operating system everything is a file even directories are files, files are files, and devices like mouse, keyboard, printer, etc are also files. Here we are going to see the Directory Structure in Linux.

Types of files in the Linux system.

General Files – It is also called ordinary files. It may be an image, video, program, or simple text files. These types of files can be in ASCII or Binary format. It is the most commonly used file in the Linux system.

Directory Files – These types of files are a warehouse for other file types. It may be a directory file within a directory (subdirectory).

Device Files – In a Windows-like operating system, devices like CD-ROM, and hard drives are represented as drive letters like F: G: H whereas in the Linux system device are represented as files. As for example, /dev/sda1, /dev/sda2 and so on.

Working with Directories:https://www.geeksforgeeks.org/linux-directory-structure/