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

Sdílet
Vložit
  • čas přidán 8. 09. 2024
  • 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...

Komentáře • 75

  • @amanahmed6057
    @amanahmed6057 Před 4 lety +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 (^_-)

  • @xrafter
    @xrafter Před 4 lety +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 Před 4 lety +9

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

  • @rohitpatil9375
    @rohitpatil9375 Před 4 lety +4

    Nice video

  • @giftchukwuemeka8324
    @giftchukwuemeka8324 Před rokem +2

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

  • @shubhamshinde203
    @shubhamshinde203 Před 4 lety +3

    Nice vedio👍

  • @sourabhsalvi08
    @sourabhsalvi08 Před 4 lety +3

    Nice Video..👌

  • @jongdonglu
    @jongdonglu Před 4 měsíci

    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!

  • @arunjithr5984
    @arunjithr5984 Před rokem +1

    Very well explained ...keep going ❤

  • @navneetpatel6193
    @navneetpatel6193 Před 2 lety +2

    It was very helpfull mam. Thank you

  • @sivapalika6977
    @sivapalika6977 Před 4 lety +2

    good explaination madam..keep update more

  • @saurabhsrivastav4789
    @saurabhsrivastav4789 Před 4 lety +4

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

  • @urmadhu6367
    @urmadhu6367 Před 3 lety +2

    Simply saved my life

  • @kunalvaidya8815
    @kunalvaidya8815 Před 4 lety +3

    Nicely explained...👍

  • @harjaspreetsingh4423
    @harjaspreetsingh4423 Před 4 lety +2

    Great video

  • @aishwaryakasthala97
    @aishwaryakasthala97 Před rokem +1

    Very well explained. Thank you so much!

  • @davidajimati980
    @davidajimati980 Před rokem +1

    You did a very great jo here. Thank you

  • @arioriabdulrafiu8773
    @arioriabdulrafiu8773 Před 9 měsíci

    I love this video. Very interesting 🎉🎉🎉

  • @jatingupta4026
    @jatingupta4026 Před 4 lety +2

    very informative ma'am

  • @ankitsingh6384
    @ankitsingh6384 Před 3 lety +2

    thanks a lot mam

  • @shukrasalokhe8465
    @shukrasalokhe8465 Před 4 lety +3

    Keep it up!!

  • @rohitpatil2354
    @rohitpatil2354 Před 4 lety +3

    It was useful for me..
    Thank you

  • @sarfarazalam6077
    @sarfarazalam6077 Před 4 lety +2

    Thanks for video :)

  • @Rajkumar1010
    @Rajkumar1010 Před 2 lety

    Excellent explanation madam, thank you

  • @ሰውመሆን
    @ሰውመሆን Před rokem

    Excellent video.thank you

  • @berg.worldNow
    @berg.worldNow Před 2 lety

    CONGRATULATIONS ON THE VIDEO

  • @klynn669
    @klynn669 Před 2 lety +3

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

  • @kushalvadher2423
    @kushalvadher2423 Před 3 lety +1

    thanks mam it helps a lot ..

  • @mikekk5192
    @mikekk5192 Před 4 lety +5

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

  • @amerbiro5411
    @amerbiro5411 Před 4 lety +1

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

  • @sanmeetwakchaure8530
    @sanmeetwakchaure8530 Před 2 lety

    Well explained!!! Thanks...

  • @memusirobi5031
    @memusirobi5031 Před rokem

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

  • @mohammedazharuddin3707

    Thanks mam , nice explained

  • @kanthipriya740
    @kanthipriya740 Před 3 lety +2

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

  • @abhijeetdas2919
    @abhijeetdas2919 Před 2 lety +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

  • @anithaperis4328
    @anithaperis4328 Před 3 lety +2

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

    • @iFocusInstitute
      @iFocusInstitute  Před 3 lety +1

      Will upload soon!!

    • @anithaperis4328
      @anithaperis4328 Před 3 lety

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

    • @revanvonheaven8270
      @revanvonheaven8270 Před 2 lety

      @@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!.

  • @nravikiran4661
    @nravikiran4661 Před 2 lety

    Thank you so much, very clear

  • @chevngko
    @chevngko Před 4 lety +2

    Superb content :D

  • @talharazzaq1719
    @talharazzaq1719 Před 3 lety

    Time saver, Thank you so much

  • @ratnakararao4792
    @ratnakararao4792 Před 4 lety +3

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

    • @iFocusInstitute
      @iFocusInstitute  Před 4 lety +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.

  • @haroonrasheed7992
    @haroonrasheed7992 Před 4 lety +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  Před 4 lety +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.

  • @syedhabeebuddin101
    @syedhabeebuddin101 Před 3 lety

    Thankyou soooo much!

  • @wegi9621
    @wegi9621 Před rokem

    And where is example read/write to DEVICE?

  • @rahemaghazi5178
    @rahemaghazi5178 Před 3 lety

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

  • @immortalbotyt1428
    @immortalbotyt1428 Před 2 lety

    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 :)

  • @joserodellastudela7265

    Know little makefile, please talk of makefile and opengl.

  • @xrafter
    @xrafter Před 4 lety +2

    How to do that in asm?

    • @iFocusInstitute
      @iFocusInstitute  Před 4 lety

      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 Před 4 lety

      @@iFocusInstitute
      Thanks

  • @abhimanyuattrish
    @abhimanyuattrish Před 4 lety

    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 Před 4 lety +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

  • @chipmonk603
    @chipmonk603 Před 3 lety

    excellent! Clear and logical

  • @Hintinfo
    @Hintinfo Před 2 lety

    Terminal mein program manual open kaise karte hau

  • @fartzy
    @fartzy Před 3 lety

    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 Před 3 lety

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

    • @fartzy
      @fartzy Před 3 lety

      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.

  • @kpvlogsuk0771
    @kpvlogsuk0771 Před 4 lety

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

  • @arunaagt8229
    @arunaagt8229 Před 4 lety

    What is file discripter?

  • @arunaagt8229
    @arunaagt8229 Před 4 lety

    Mam how to learn to write a code like this?

  • @zoomzoom4055
    @zoomzoom4055 Před 3 lety

    Mam please help me in programming

  • @joserodellastudela7265

    Repairs computers easy

  • @hangthanh8318
    @hangthanh8318 Před 3 lety

    the sound is not good I am quite disappointed

  • @JohnDoe-fw3lw
    @JohnDoe-fw3lw Před 4 lety +2

    Everything is nice except indentation

  • @shaffty5980
    @shaffty5980 Před 2 lety

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

  • @sirnawaz
    @sirnawaz Před 2 lety

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

  • @SaifAli-tz7zz
    @SaifAli-tz7zz Před 4 lety

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

  • @0xblack666
    @0xblack666 Před 2 lety

    your English is disturbing