System Calls | Read | Write | Open | Close | Linux

Поделиться
HTML-код
  • Опубликовано: 28 авг 2019
  • Hello!
    I make youtube videos for everyone who find technical concepts quite difficult to understand. I simplify such concepts and explain them in easy way!
    Link for Previous Video:
    File Structure in Linux:
    • File Structure in Linu...
    Subscribe to my channel for more content.
    Facebook - / ifocusinstitute
    Instagram - / ifocusinstitute
    Linktree - linktr.ee/ifocusinstitute
    Music By - Ikson Music www.toneden.io/ikson/post/tas...

Комментарии • 75

  • @xrafter
    @xrafter 3 года назад +3

    I have done this in asm what a fun.
    Yeah some problems with the assembler a little bit but its worth it

  • @Saleh2
    @Saleh2 4 года назад +9

    just i want to say thank you very much ma'am that's helped me alot 🌹

  • @amanahmed6057
    @amanahmed6057 4 года назад +5

    MAM 1ST THING THAT I SAW IN YOUR VIDEO IS YOUR TIME {1:10 AM}
    I DON'T KNOW WHAT YOU ARE DOING IN YOUR LIFE
    BUT ONE THING I KNOW IS YOU ARE "very hardworking" THAT'S FOR SURE
    THANKS love and support from 19 yrs old boy (^_-)

  • @sivapalika6977
    @sivapalika6977 4 года назад +2

    good explaination madam..keep update more

  • @jongdonglu
    @jongdonglu Месяц назад

    Awesome video thank you so much for making it. Been using debian for years now but only ever used man to get the options for commands and sometimes theming info for the rc/config files.. only recently realized i could get code related info from man. This video has helped cement my understanding of using man for coding. Thanks again!

  • @saurabhsrivastav4789
    @saurabhsrivastav4789 4 года назад +4

    # awesome video with excellent explanation # can you make more lectures or linux device driver and kernal programming not in deep basic

  • @aishwaryakasthala97
    @aishwaryakasthala97 Год назад +1

    Very well explained. Thank you so much!

  • @giftchukwuemeka8324
    @giftchukwuemeka8324 Год назад +2

    Awesome video
    i found out the manual pages can be simple to read

  • @kunalvaidya8815
    @kunalvaidya8815 4 года назад +3

    Nicely explained...👍

  • @rohitpatil9375
    @rohitpatil9375 4 года назад +4

    Nice video

  • @mikekk5192
    @mikekk5192 4 года назад +5

    Wow. This is an amazing explanation. Thank you very much.

  • @shukrasalokhe8465
    @shukrasalokhe8465 4 года назад +3

    Keep it up!!

  • @sourabhsalvi08
    @sourabhsalvi08 4 года назад +3

    Nice Video..👌

  • @rohitpatil2354
    @rohitpatil2354 4 года назад +3

    It was useful for me..
    Thank you

  • @klynn669
    @klynn669 2 года назад +3

    Thank you so much! You broke down this subject very well!

  • @chevngko
    @chevngko 4 года назад +2

    Superb content :D

  • @urmadhu6367
    @urmadhu6367 3 года назад +2

    Simply saved my life

  • @memusirobi5031
    @memusirobi5031 Год назад

    Thank you for this!!! Plus l love how you simplified the concept!

  • @shubhamshinde203
    @shubhamshinde203 4 года назад +3

    Nice vedio👍

  • @davidajimati980
    @davidajimati980 Год назад +1

    You did a very great jo here. Thank you

  • @jatingupta4026
    @jatingupta4026 4 года назад +2

    very informative ma'am

  • @harjaspreetsingh4423
    @harjaspreetsingh4423 4 года назад +2

    Great video

  • @talharazzaq1719
    @talharazzaq1719 3 года назад

    Time saver, Thank you so much

  • @Rajkumar1010
    @Rajkumar1010 Год назад

    Excellent explanation madam, thank you

  • @arioriabdulrafiu8773
    @arioriabdulrafiu8773 6 месяцев назад

    I love this video. Very interesting 🎉🎉🎉

  • @nobody_40432
    @nobody_40432 Год назад

    Excellent video.thank you

  • @sarfarazalam6077
    @sarfarazalam6077 4 года назад +2

    Thanks for video :)

  • @arunjithr5984
    @arunjithr5984 9 месяцев назад +1

    Very well explained ...keep going ❤

  • @navneetpatel6193
    @navneetpatel6193 2 года назад +2

    It was very helpfull mam. Thank you

  • @berg.worldNow
    @berg.worldNow 2 года назад

    CONGRATULATIONS ON THE VIDEO

  • @nravikiran4661
    @nravikiran4661 2 года назад

    Thank you so much, very clear

  • @sanmeetwakchaure8530
    @sanmeetwakchaure8530 2 года назад

    Well explained!!! Thanks...

  • @abhijeetdas2919
    @abhijeetdas2919 2 года назад +1

    I did it exactly the same way but after writing, when reads again and prints the value written, it returns the value twice
    eg
    if "Hello" was written
    it prints, HelloHello was printed in the file☹️
    can someone explain
    btw explaination was good👍🏻
    understood the concept in one go

  • @kanthipriya740
    @kanthipriya740 3 года назад +2

    I want explanation for
    Write a c program that makes a copy of file using standard I/O and system calls

  • @kushalvadher2423
    @kushalvadher2423 3 года назад +1

    thanks mam it helps a lot ..

  • @mohammedazharuddin3707
    @mohammedazharuddin3707 2 года назад

    Thanks mam , nice explained

  • @abhimanyuattrish
    @abhimanyuattrish 4 года назад

    I have a question: when I compile on Mac OSX on gcc-9.2 I get a compiler warning stating that I have implicitly declared the syscall functions and suggests I use fread(), fwrit(),fseek(),pclose(); what does this mean?

    • @xrafter
      @xrafter 4 года назад +1

      I think this doesn't work in mac use the f version
      The syscalls in this video are linux specific thing .
      Yeah this syscalls in all unix-like OS
      But they use different numbers different code different registers

  • @amerbiro5411
    @amerbiro5411 3 года назад +1

    I loved this video and I got a lot of help. I would love to support the channel. How can I support it?

  • @syedhabeebuddin101
    @syedhabeebuddin101 3 года назад

    Thankyou soooo much!

  • @chipmonk603
    @chipmonk603 2 года назад

    excellent! Clear and logical

  • @ankitsingh6384
    @ankitsingh6384 3 года назад +2

    thanks a lot mam

  • @rahemaghazi5178
    @rahemaghazi5178 3 года назад

    where(in which directory) was check.txt created in this of your Linux....before u used it in code....

  • @fartzy
    @fartzy 3 года назад

    Would the file descriptor be the same across all applications? Like if I am using a .NET application, and a java application. Is the FD global between all of those? Or does the language keep its own version of what the Operating System would return as a FD?

    • @shobhitverma7303
      @shobhitverma7303 2 года назад

      They might be different or they might be same, the OS assigns the first unassigned fd.

    • @fartzy
      @fartzy 2 года назад

      So are you saying the language have its own version of the FD. Because if only the OS can assign a FD, then would be the same.

  • @immortalbotyt1428
    @immortalbotyt1428 2 года назад

    Pretty useful video cool bro I used this lesson and functions to write a custom FILE I/O that is not similar to FILE *fp in C
    Still some works are left there is some offset issues and null character reading issues I will fix them soon enough in future
    Make sure u atleast gimme a heart :)

  • @anithaperis4328
    @anithaperis4328 3 года назад +2

    thanks a lot ma'am. Can you explain ln command using system calls

    • @iFocusInstitute
      @iFocusInstitute  3 года назад +1

      Will upload soon!!

    • @anithaperis4328
      @anithaperis4328 3 года назад

      @@iFocusInstitute thank you so much. And also sort command.

    • @revanvonheaven8270
      @revanvonheaven8270 2 года назад

      @@iFocusInstitute Hello can I ask you something do you know how to crack a closed operating system using Linux I want to see the code of Windows Linux and MacOS purpose building my own OS with a super smart AI and features like holograms and much more anyway now in 2022 with the tech we have and M2 and multiple VMs this is very much possible so it is the time for me to get to work it is a project of mine none will be used in any malevolent matter towards any company or individual I just need to see some things and then it wont even be cloning those programs just learning about the features and how I might install similiar things but instead of Safar or Microsoft per say Brave or my own version of a browser I need to know this without this I can not complete my research!.

  • @kpvlogsuk0771
    @kpvlogsuk0771 4 года назад

    He'll ma'am how can I open my function total option please help me

  • @ratnakararao4792
    @ratnakararao4792 4 года назад +3

    Can you explain.. Why you are using "lseek"

    • @iFocusInstitute
      @iFocusInstitute  4 года назад +7

      Hi,
      After the writing operation has been performed the pointer will be at the last position, but the reading of that message should be done from the starting location. So i have used the lseek system call to set the pointer to starting location.

  • @arunaagt8229
    @arunaagt8229 4 года назад

    What is file discripter?

  • @haroonrasheed7992
    @haroonrasheed7992 4 года назад +1

    Hi
    Can you tell whats difference between
    this
    if(childpid==0)
    {
    printf("I am a child process and my process id is %ld",(long)getpid());
    }
    else
    printf("I am parent process and my process id is %ld", (long)getpid());
    wait(&status);
    return 0;
    }
    and this code
    if(childpid==0)
    {
    printf("I am a child process and my process id is %ld",(long)getpid());
    }
    else
    {wait(&status);
    printf("I am parent process and my process id is %ld", (long)getpid());}
    return 0;
    }
    As you can in first code wait is used after the print and in second before the parent??

    • @iFocusInstitute
      @iFocusInstitute  4 года назад +2

      Hi,
      In the first case when we use wait() after the printf() statement, the parent process is executed first and then the child process.
      Whereas in the second case when we use wait() before printf() statement, the child process is executed first and then the parent process.

  • @wegi9621
    @wegi9621 Год назад

    And where is example read/write to DEVICE?

  • @Hintinfo
    @Hintinfo Год назад

    Terminal mein program manual open kaise karte hau

  • @joserodellastudela7265
    @joserodellastudela7265 2 года назад

    Know little makefile, please talk of makefile and opengl.

  • @arunaagt8229
    @arunaagt8229 4 года назад

    Mam how to learn to write a code like this?

    • @xrafter
      @xrafter 4 года назад

      Practice

  • @zoomzoom4055
    @zoomzoom4055 3 года назад

    Mam please help me in programming

  • @xrafter
    @xrafter 4 года назад +2

    How to do that in asm?

    • @iFocusInstitute
      @iFocusInstitute  4 года назад

      Hello, Greetings from iFocus Institute!
      In case of ASM you have to get the system call number, use registers to save it and then call the interrupt! So there are steps to perform it in ASM.
      Thank You!

    • @xrafter
      @xrafter 4 года назад

      @@iFocusInstitute
      Thanks

  • @joserodellastudela7265
    @joserodellastudela7265 2 года назад

    Repairs computers easy

  • @hangthanh8318
    @hangthanh8318 2 года назад

    the sound is not good I am quite disappointed

  • @JohnDoe-fw3lw
    @JohnDoe-fw3lw 4 года назад +2

    Everything is nice except indentation

  • @sirnawaz
    @sirnawaz Год назад

    Learn to use your editor and indent the code properly! Badly formatted code is such a turn off.

  • @shaffty5980
    @shaffty5980 2 года назад

    The way your pronouncing the “r’s” makes me really aggressiv

  • @SaifAli-tz7zz
    @SaifAli-tz7zz 3 года назад

    It's nothing but........ Everything here is nothing but... 🙄

  • @0xblack666
    @0xblack666 2 года назад

    your English is disturbing