Windows Command Line Tutorial - 8 - Deleting and Appending to Files

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

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

  • @dannyjr4529
    @dannyjr4529 7 лет назад +187

    If only school could teach us class like this guy teaches command prompt

  • @aas_shortforsmthin
    @aas_shortforsmthin 4 года назад +72

    This guy posted these tutorials 5 years ago. And there so good. I really wish he did RUclips today. Bcz his last updated was 3 years ago. I don't think he continues anymore...I really hope he does. Love these videos

  • @RamentooSpicy
    @RamentooSpicy 4 года назад +19

    Dude... this command line tutorial playlist taught me more information than my professor in our online class for 3 hrs. Thanks a lot

  • @rabehjebo652
    @rabehjebo652 5 лет назад +20

    This course was released like 5 years ago and yet I find it very useful today, so thank you very much

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

    If you're looking for a longer tutorial, check out: ruclips.net/p/PL9uWcD-0hF-DPVqogXIcSSRh3ndx5ODvL

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

    From 7 years ago and still relevant today. Great job man

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

    thankyou i am watching u your lessons on this cmd over and over as i got such a bad memory which makes it harder for me to learn but you teaching is very good and understandable to a absoloute begginer like me so thanx again xx

  • @dogbyte7875
    @dogbyte7875 3 года назад +5

    Welcome back Bucky!
    This series is awesome because you help break the fear of "oh shit, what if I make a mistake".
    Used the >> with an absolute path.
    Thanks Bucky!

  • @zetaamorta4683
    @zetaamorta4683 5 лет назад +32

    you did not include echo command in your previous videos, i think it is a command to create files "echo [content of file] >[filename.filetype]

  • @machaah
    @machaah 8 лет назад +3

    i just like this man.. in how he is teaching and explaining the points.. may God bless you

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

    Bucky, sending my appreciation your way. I hope you continue to add more lessons to your Windows Command line. May I had I would like to see Git tutorials by you. You are fun to listen to even though I get distracted when you burb... Hope you keep this channel alive for a long time, my friend!

    • @comoyun
      @comoyun 7 месяцев назад

      Hey! Did you learn git?

    • @pagecurie5512
      @pagecurie5512 7 месяцев назад +1

      @comoyun later I did and found it helped me learn the command line.

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

      @@pagecurie5512 Awesome, good luck!

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

    Bucky won the powerball. that's why he's been so quiet for 5 years

  • @NANA-f2v3b
    @NANA-f2v3b Месяц назад

    Thanks for the intro. If the new videos stop coming, we all know what happened now.

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

    These tutorials are great 7yrs later

  • @middleclassseabass7178
    @middleclassseabass7178 8 лет назад +10

    Why do I enjoy this so much? I'm probably rarely going to use it.

  • @beebourie1585
    @beebourie1585 8 лет назад +9

    hello! I'm wondering if you could do a LUA tutorial you're a great teacher and I would love to learn more programming softwares

  • @TechieWAVEs
    @TechieWAVEs 8 лет назад +68

    Did you teach Echoo before? because i dont think soo .

    • @DarthMessias
      @DarthMessias 8 лет назад +2

      I thought the same

    • @jaisamdariya4307
      @jaisamdariya4307 8 лет назад +2

      check previous video

    • @TechieWAVEs
      @TechieWAVEs 8 лет назад +18

      Jai Samdariya I didn't saw it in the previous video that is why I comment about it.

    • @aniketsharma8977
      @aniketsharma8977 7 лет назад +1

      G4merIrOnicTV I don't think so.....But i guess it is one of the commands related to .BAT files usually for printing and stuff.

    • @luiscastro6204
      @luiscastro6204 7 лет назад +4

      you can always try echo /?

  • @ryanforgo7028
    @ryanforgo7028 6 лет назад +7

    Man, you are cool I kind of wish if I understand everything you say though lol.
    I mean I am beginning to learn stuff from the absolute zero and so somethings seem to be "common knowledge" to everyone when you say them and I go like ooh wtf was that ?
    anyway your videos are cool, useful, easy and funny. especially how you jumped in your train of thoughts from lala land to boston and then to tunafish lol.

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

    man your videos really helped me big time, tysm

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

    Thank you. Video is still relevant dear

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

    wow the intro was dhope. i love these videos mehn

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

    Thank you very much for this video :) I found it very fun and educational

  • @cigdemylmaz1532
    @cigdemylmaz1532 4 месяца назад

    Thank you so much. I have learned how to use my computer. That sounds weird but it's true.

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

    love your clases....

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

    i think bucky really loves bacon

  • @tutorsurrey
    @tutorsurrey 2 месяца назад

    great fun banter😊

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

    Correct me if I'm wrong here, but if you delete a file through the cmd, it does NOT place that file in the recycle bin for later recovery.

  • @Sal-bm4mw
    @Sal-bm4mw 5 лет назад +2

    Most deserving guy for lottery. :-)

  • @aniketsharma8977
    @aniketsharma8977 7 лет назад +3

    Hey buck I want to ask if there is a way to store trees in text files the way you stored the directory results?

    • @johnlestermercado20
      @johnlestermercado20 7 лет назад +1

      I tried tree > bacon.txt. It worked. But the characters is not the same when viewed on a notepad. But it is the same when viewed using cmd with type bacon.txt command.

  • @emadharazi5044
    @emadharazi5044 5 лет назад

    Hey man. Love the lack of structure in the videos. Its fun not knowing what you are going to learn next. I do have a question though... echo command works when creating txt or doc files but not docx. Why is that?

  • @yawarabbas2621
    @yawarabbas2621 5 лет назад +4

    when i try to delete my old windows folder in other drive after some some proccessing it says access denied can get some help please

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

      If you made the other lesson, you probably made it read only. Try attrib -r bacon.txt (or whatever your file name)

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

    What is the difference between using “echo” to create a file, folder and using “mkdir” to create a file? Or they are the same in functioning the same results?

    • @cigdemylmaz1532
      @cigdemylmaz1532 4 месяца назад

      I tried to create a text file using mkdir but it created a folder. I don't think you can create files with mkdir, you can create directories only

  • @jingranduan8378
    @jingranduan8378 8 лет назад +4

    Did you win your 1.5B powerball :)

  • @BluedoesMusic
    @BluedoesMusic 5 лет назад +1

    this guy is probably the best
    may you teach us how to make programs?

  • @faizanarif4295
    @faizanarif4295 7 лет назад +2

    hello sir , i'm having problem when using this command as ACCESS DENIED .
    please help me how do I overcome this error.

    • @markalsa6922
      @markalsa6922 7 лет назад +1

      just remove the read-only attribute (check last video) and try deleting the file again !

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

    did he ever mention echo and >> in his previous videos?? Feels like first time im seeing them.

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

    I tried deleting a file, but it says "Access Denied" how do I get rid of that?- it also denies access in typing something in the txt file

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

      I think you're not the administrator user in your computer. And the administrator locked it or something.

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

    hey man where are you I just went through your channel where are you!!??????

  • @MovieNarco
    @MovieNarco 5 лет назад

    whAT is the difference between remiove directory and del directory

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

    did i miss the " echo" part ? I'm assuming its a command to write in text

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

    What if someone wanted to remove a specific word from that file, how could you do that?

  • @codergirl1518
    @codergirl1518 5 лет назад

    Bacon, tunafish, someone was hungry.

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

    Just a doubt.. Can we append and delete only text files???

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

    Any videos on how to run a command line program?

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

    thank you is not enough

  • @debosmitabanerjee1232
    @debosmitabanerjee1232 11 месяцев назад

    hi! could you explain the significance of echo?

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

    Why are there always 2 directories as . & .. shown? What are they

  • @AnneZag
    @AnneZag 8 лет назад

    4:00 tried it with other commands. it works with "path" but don't work with "tree". with "tree", came out some weird characters.

  • @learnwithdavid4539
    @learnwithdavid4539 7 лет назад

    very useful!

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

    when i either try del or echo > it tells me access is denied

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

    Hey, I've been following your tutorial up to the point where you overwrite and append txt to the bacon.txt file.
    It give me access denied where I try those commands even though I'm using cmd as admin.
    I also tried the following change permissions command: CACLS bacon.txt /G User:F

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

      It's probably in readonly.

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

      @@ZSd4cT does it have to be hidden for it to work? Because I've been getting access denied too

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

    same time I am taking this course 1:45am

  • @llamajtv3535
    @llamajtv3535 5 лет назад +1

    What echo stands for??

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

    sir i have tried the delete bacon.txt command but its giving me reply that the access is denied pls can u help me with me that

  • @idkmace805
    @idkmace805 8 лет назад +5

    When I tried to delete the file, it said access denied. Any help with that?

    • @joshwirth2891
      @joshwirth2891 8 лет назад +1

      youd need to be an administrator

    • @juicewater1642
      @juicewater1642 8 лет назад +2

      What if I am administrator? Nvm I just removed the read-only attribute 5 seconds after writing this comment.

    • @joshwirth2891
      @joshwirth2891 8 лет назад

      +JuiceWater then your computer is broken, that shouldnt happen. make sure youre not just logged in as admin, make sure you hit Run Command Prompt as Admin

    • @juicewater1642
      @juicewater1642 8 лет назад +2

      Josh Wirth
      Did you read my edit? Lmao and my computer would be fine just my OS would be messed defective.

    • @ivanyosifov2629
      @ivanyosifov2629 7 лет назад +4

      from last video Bucky made bacon.txt read-only. In order to delete it you need to remove the read-only flag
      *attrib -r bacon.txt*

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

    5:18 how did he get normal text on notepad ++, I get garbage text instead of | and - characters? Anyone knows?

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

    What if you want to append a result

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

    can you remove the first 40 seconds of this video then reupload it?

  • @entertainmentondemandnow3062
    @entertainmentondemandnow3062 5 лет назад

    If i type in echo Shit > mytext.txt
    it says access is denied

  • @soulnickos2245
    @soulnickos2245 5 лет назад +1

    How to compare 2 files?

  • @khalidfarah5804
    @khalidfarah5804 3 месяца назад

    it didn’t let me delete the file it said access denied

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

    How do I append to the same line?

  • @amber-jb2qi
    @amber-jb2qi 6 лет назад

    When I type ".txt" to a new mkdir, it creates a folder not a text..

  • @aestheticcriminal680
    @aestheticcriminal680 6 лет назад

    You can save it to your clipboard by typing dir | clip

  • @budhachandrayumkhaibam6079
    @budhachandrayumkhaibam6079 6 лет назад

    why am i getting access denied every time i try to echo something to this bacon.txt
    It worked the first time and i echo hey just like the tutorial but after that i have been following the same and suddenly erroe

  • @permanentlypatriotic
    @permanentlypatriotic 8 лет назад

    when you delete a file in cmd promt, it doesnt show up in thew trash bin, where does it go?

    • @OriginalUnknown2
      @OriginalUnknown2 8 лет назад +2

      it gets deleted permanently. it can be restored using third party softwares, but only a shortly after deletion and if its a small file, because as soon as you "delete" a file, your OS marks that space on your hard drive as empty space, and allows other files to be written over it. So the longer you wait, the more likely it is that something will write over it and make the file unrecoverable. Also, the larger it is, the higher the chance of it being overwritten in the same span of time.

  • @edwardwhite8253
    @edwardwhite8253 8 лет назад +1

    what's the difference between rmdir and del?

    • @tilberin
      @tilberin 8 лет назад +4

      one removes a directory the other removes a file

    • @edwardwhite8253
      @edwardwhite8253 8 лет назад

      isnt directory and folder are the same?

    • @tilberin
      @tilberin 8 лет назад

      LazyVFXGuy indeed but a directory and a file are not the same look it up

    • @edwardwhite8253
      @edwardwhite8253 8 лет назад

      www.computerhope.com/issues/ch001320.htm (i've checked)

    • @tilberin
      @tilberin 8 лет назад +1

      goddamit i said FILE not FOLDER

  • @subhojitpramanik882
    @subhojitpramanik882 8 лет назад

    why 2 Dir are shown alaways after all files are deleted in any folder

    • @hanzo2001
      @hanzo2001 8 лет назад

      +Subhojit Pramanik
      . (one dot) means the current dir
      .. (two dots) means the parent dir
      every dir has these 2 members

  • @lucienvl
    @lucienvl 9 месяцев назад

    there also copy con sample.txt and add add more text for end- ctrl c

  • @tehpson
    @tehpson 8 лет назад

    what if I wanna add text betwen 2 lines?

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

    What's the different between rmdir and del?

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

      rmdir is for removing a directory and del is for deleting a file. Files and directories are not the same thing.

  • @swarnabchoudhury9452
    @swarnabchoudhury9452 7 лет назад +2

    what is echo?

    • @iamjm_rishav7894
      @iamjm_rishav7894 5 лет назад

      its basically a command to add files in the directory..

    • @iamjm_rishav7894
      @iamjm_rishav7894 5 лет назад

      thats what i know nopt sure about it-

    • @ayush_shaz
      @ayush_shaz 5 лет назад

      if you type "echo ayush " in the cmd -> ayush will be displayed in the cmd ................ that means after echo anything will be displayed on the cmd ..................

  • @fxbazu
    @fxbazu 6 лет назад

    I tried deleting a file and I was given a response: Access denied plz help

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

      3 years ago but... Probably it was your readonly file. Try to remove the r attribute from it, and then you'll be able to delete it.

  • @nickolasevanovich
    @nickolasevanovich 6 лет назад

    Bacon... tunafish... porky... are you hungry by any chance? haha

  • @amateur6585
    @amateur6585 5 лет назад

    Make an video on opening applications...ms office and browser from cmd

  • @revaldayn
    @revaldayn 8 лет назад

    One question tho... Why always bacon?

    • @DallinCoons
      @DallinCoons 8 лет назад +10

      +Nobel Dahal It's not always bacon...sometimes it's tuna

    • @revaldayn
      @revaldayn 8 лет назад

      PRECISELY! Too much bacon causes cholesterol. Tuna gives Omega 5! ^_^

    • @jingranduan8378
      @jingranduan8378 8 лет назад

      +Nobel Dahal bacon, tuna, pizza, etc..

    • @abhijeetagnihotri655
      @abhijeetagnihotri655 6 лет назад

      Yeah whether he teaches html css javascript java or whatever bacon tuna are like his keywords

  • @prabhak6163
    @prabhak6163 8 лет назад

    how to read the exsiting file?

    • @elderofzion
      @elderofzion 8 лет назад

      same. cd to file location and do type on it

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

    little did he know that 4 yrs later Agressive vegans may not approve of his .txt names lol

  • @thilinishanika3847
    @thilinishanika3847 7 лет назад

    how to show the contents of the usb drive

    • @rhymezxCode
      @rhymezxCode 7 лет назад

      diskpart

    • @Ashmanakatheman
      @Ashmanakatheman 6 лет назад

      you can change the current drive to the USB drive
      by typing D:
      assuming that ur USB drive is D
      then type dir or tree

  • @davidolaboye5549
    @davidolaboye5549 7 лет назад

    pls wats the difference btw rmdir and del

    • @3bbodd
      @3bbodd 7 лет назад +1

      David Olaboye rmdir is use when we want to delete the directory(folder) and del is use when we want to delete any program or picture or anything else

    • @NadeemTito
      @NadeemTito 7 лет назад +1

      rmdir = to remove/delete a folder/directory , del = to delete any single file

  • @CharlesCraft50
    @CharlesCraft50 8 лет назад +2

    First #1

    • @gorgolyt
      @gorgolyt 8 лет назад

      Not only is it redundant, it's also completely superfluous.

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

    Adamaste

  • @alvarobyrne
    @alvarobyrne 8 лет назад +1

    type and echo

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

    using >> instead of > also apends the information from prompt to the file in : (command) >> (filename)

  • @whale8767
    @whale8767 5 лет назад

    I am... *Russian Hacker Man*

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

    its linux

  • @funway7300
    @funway7300 7 лет назад

    lalallalaa

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

    Fuji

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

    Floppy

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

    what a brain far never taught how to create a file (echo). Its like going out and forget to wear shoes .

  • @reloader9114
    @reloader9114 2 месяца назад

    I have a question I'm trying to fix this problem maybe you can help problem (2 Unlimited - Get ready for this FD.mp3.i1tyz2) as you can see I have a file with 2 ,exts I need to remove the last one lucky. If I'm in the folder I can do it manually but I have thousands of them to fix in subfolders I've tried ren *.i1tyz2 *. and it works if I'm in the folder but I need it to work in all folders and sub. any help would be so appreciated

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

    But after this delete, I cannot find the deleted file in my Recycle Bin, what command should I take if I just want to throw them into Recycle Bin.

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

    0.56, it says access denied, damn my own laptop denied me, anyway how do i fix it?

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

      nvm i just removed read only then tried that comand again, its deleted now, guess it doesnt like deleting read only text

  • @jonchikponchik1717
    @jonchikponchik1717 5 лет назад

    I could not delete it even though I'm the admin. It asks me yes or no and I type Y but it does not delete. Help

    • @iamjm_rishav7894
      @iamjm_rishav7894 5 лет назад

      check for the rights you have given to the file (like:- read only or something else)
      i had the same prrblm but i sorted it out

    • @jonchikponchik1717
      @jonchikponchik1717 5 лет назад

      @@iamjm_rishav7894 thanks it worked