LINUX DATA STRUCTURE

<a href=’https://www.freepik.com/vectors/penguin-cartoon'>

What is the data structure difference linux from windows?

Windows structure we know it already which looks like this:

Let’s see how does it look like for the similar data:

By linux we have central root. All partitions and any extern volume would be define under that.

How does the folder address look like in windows and linux?

so First with the one we know Windows:

WINDOWS DIRECTORY

C:\Windows\System64\file.text

In linux we don’t have any other partition. We put all our folders under “home”:

LINUX DIRECTORY

/home/user_name/documents/file.text.

PS: If you see ~ that’s for home Directory

General Stuff you should know:

THE COMMAND STYLE

In Linux we have a command like this:

command flag argument. For example:

mkdir -p d1/d2

command : what you wanna do

flag: gives you more options how to do that

argument: your file/folder you wanna apply changes on

PATH OF YOUR DIRECTORY

If you have a path , ask yourself if it’s a relative to absolute path. Absolute path could be used anywhere but relative path just makes scene as long as you are in your current directory.

Relative Path: myfolder/mytext.txt

Absolute Path: /myfolder/mytext.txt

Do you see the difference?

HOW TO GET MORE INFORMATION ABOUT THE COMMANDS?

man

It gives you all the information , you need about the command . you use it like this:

man <your command>

man mkdir

whatis

Your command gives you some output but you don’t know ,what it exactly means. whatis gives you this information:

whatis ls

These are the basics you need to know to feel safe and not being lost!

--

--

I’m a german iranian sofware developer , enjoy exchanging my thoughts with people and try to get a better person in my life with challenging myself : )

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ella

I’m a german iranian sofware developer , enjoy exchanging my thoughts with people and try to get a better person in my life with challenging myself : )