Skip to main content

Big Switch to Linux & File System


If you read my previous posts on Linux then you probably understand why Linux is better than Windows or What is the difference between these two operating systems.
If you Unable to understand Difference between two, then, please  go to the below link For Detailed on Difference between Windows and Linux, please visit diffen.com 

 # File System:


Unix or Linux use hierarchical file system or tree file system.
Everything in Linux is a FILE (Device, text file, music file, directories etc)






# Linux, the file is ordered to a tree structure.




-


Root director is considered as the start of a file system,
Roots is a way to go to other branches of the file directory.



# Types of file:


In Linux, everything is a file.


General Files:


Ø  Also called ordinary file.

Ø  Contain image, video, program*

Ø  ASCII or Binary format

Ø  Most commonly used file in Linux

Directory Files:


Ø  Warehouse for other file types

Ø  You have a directory file within a directory

Ø  It is like a folder in Windows o/s.




Device files:


In windows, devices like printer usually show in My computer as attached with drive letters like G, H, I, J, ....

But in Linux, it is usually represented as a file like first Sata drive 3 primarily partitions


1) /dev /sda1

2) /dev /sda2

3) /dev /sda5

Therefore, all the dev files in ‘dev’ drives.

Note - All of these file types including the devices have permission to allow the user to read, write and execute.

Therefore, this is the powerful Linux or Unix Features.

Note - Access permission is allowed for different users.



# File Name Convention:


- In Windows, you cannot save two files with the same name while,
  In Linux, it can be done. ‘File’ and ‘file’ are the different names so we can save it because Linux O/S is a ‘case sensitive’.



Note - In Linux, user is able to create their own director in Home directory only.(Similar to Windows user folders)




By - Somesh Sah

Comments

Popular posts from this blog

Introduction To Linux

Operating System An operating system (OS) is system software that manages computer hardware and software resources and provides common services for computer programs. Or The operating system (OS) is the most important program that runs on a computer, Without OS in your computer, can not able to perform any activity like playing a song, movies, browsing etc. # There are Three Popular Operating Systems  Windows  Linux    Mac OS # Kernel  Kernel is the heart of operation system.It is responsible for communicating between Hardware and User Applications. # What is Linux? It is an Operating System or Kernel. It is the programmed heart of any operating system that takes care of the fundamental stuff like communication of hardware with software. ◘ Linux is an operating system. ◘ Linus Torvalds created/developed Linux.     * Note - Receptive to changes, modifications suggested by its users...

Terminal Vs GUI

Ques )  Most frequent task that you perform is? Ans. - Browsing,             - Creating Files,             - Moving Files,             - And Deleting Files. Most of the user perform only these operation on their systems.There's are the most common task performed frequently by the users on their computers. There are two ways to perform... 1 - CLI (Command Line Interface) 2- GUI (Graphical user interface) Benefits to use CLI: 1) Commands are flexible and offer more options. 2) Perform more with just one command. Eg – A new user account takes 4 to 5 steps to create while in CLI mode, it just takes a command  “sudo usermod - a - G home somesh” 3) Work on multiple files at a time. Eg – if you thinking to move 1000 of files it can take hours using GUI mode, whereas the same task performed using CLI mode take some seconds only. 4)...

Users in Linux

# Users in Linux: In Linux Operating System, There are three kinds of Users. All users have different kinds of permissions as well as Administrator or Root user set or modify the current user's permissions.   ◘ Regular user ◘ Root user ◘ Service user 1) Regular User: - It is an account which is used when you install o/s in your system. - And all files and folders stored in Home directories. - You are not able to access other users directory. 2) Root User: - It is also created at the time of installation, - Can access restricted files, install software and has administrative privileges. - Also called super user. - Whenever you have to perform any administrative task, you have to login as a ROOT user.    For that, the command is  " sudo " Then it will ask your password twice. 3) Service User: - Linux is widely used as a server o/s. - Services such as Apache, SQL, Squid etc have their own service account...