Skip to content
Programmingoneonone
Programmingoneonone
  • Home
  • CS Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
  • Work with US
Programmingoneonone
Programmingoneonone

File system in Linux

YASH PAL, 3 June 202328 May 2024

File System – Linux has a hierarchical filesystem (directories within directories and files, and directories, and device drivers are treated as files). Filesystem supports 256 – character filenames avoid symbols and punctuation except for the dot (.). All command line entries are case-sensitive. Also, note that Linux uses the slash (/) rather than the backslash (\)

What is a File?

Files are the creation of data items stored on a disk or it’s a device that can store information, data, music, picture, movie, sound, books, etc. In fact whatever we store on the computer must be in form of a file. Files are always associated with devices like hard disks, floppy, discs, etc.

What is a directory?

A directory is a group of files Directory is divided into two types:

  • Root Directory: There is only one root directory in our system. Which is denoted deleted by/(forward slash). It is the root of our entire file system and can not be renamed or deleted.
  • Subdirectory: The directory under the root (/) directory is a subdirectory that can be created, and renamed by the user.

The file system begins with a directory called root the root directory is denoted slash (/). In the root directory, there are several other directories called bin, lib, usr, etc, tmp, and dev. Each of these subdirectories contains several files and directories called sub-sub directories.

file system in linux
file system in linux

These subdirectories are used to keep related files together and separate them from another group of related files.

  • bin directory: Contain executable files for most of the command. It includes a binary executable file.
  • lib: This directory contains a library function. The program used these library functions in the lib directory.
  • dev: This directory is within files that control various input/output devices like printers, disk drives, etc. For each device, there is a separate file.
  • etc: Binary executable files are usually required for system administration.
  • tmp: This directory contains the temporary files created by Unix or by the user. These files are created for a temporary purpose. These files are automatically deleted when the system is shut down or restored.
  • usr: This directory is associated with a particular user and it is created by the system administrator when the user creates an account for a different
  • user: In the usr directory, there is another bin directory that contains additional command fields.
Computer Science Tutorials Linux Tutorials computer scienceLinux

Post navigation

Previous post
Next post

Related website

The Computer Science

Pages

  • About US
  • Contact US
  • Privacy Policy

Programing Practice

  • C Programs
  • java Programs

HackerRank Solutions

  • C
  • C++
  • Java
  • Python
  • Algorithm

Other

  • Leetcode Solutions
  • Interview Preparation

Programming Tutorials

  • DSA
  • C

CS Subjects

  • Digital Communication
  • Human Values
  • Internet Of Things
  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2025 Programmingoneonone | WordPress Theme by SuperbThemes