Command Line - CS50 Shorts

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 มิ.ย. 2024
  • ***
    This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.
    ***
    HOW TO SUBSCRIBE
    th-cam.com/users/subscription_c...
    HOW TO TAKE CS50
    edX: cs50.edx.org/
    Harvard Extension School: cs50.harvard.edu/extension
    Harvard Summer School: cs50.harvard.edu/summer
    OpenCourseWare: cs50.harvard.edu/x
    HOW TO JOIN CS50 COMMUNITIES
    Discord: / discord
    Ed: cs50.harvard.edu/x/ed
    Facebook Group: / cs50
    Faceboook Page: / cs50
    GitHub: github.com/cs50
    Gitter: gitter.im/cs50/x
    Instagram: / cs50
    LinkedIn Group: / 7437240
    LinkedIn Page: / cs50
    Reddit: / cs50
    Quora: www.quora.com/topic/CS50
    Slack: cs50.edx.org/slack
    Snapchat: / cs50
    Twitter: / cs50
    TH-cam: / cs50
    HOW TO FOLLOW DAVID J. MALAN
    Facebook: / dmalan
    GitHub: github.com/dmalan
    Instagram: / davidjmalan
    LinkedIn: / malan
    Quora: www.quora.com/profile/David-J...
    Twitter: / davidjmalan
    ***
    CS50 SHOP
    cs50.harvardshop.com/
    ***
    LICENSE
    CC BY-NC-SA 4.0
    Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
    creativecommons.org/licenses/...
    David J. Malan
    cs.harvard.edu/malan
    malan@harvard.edu

ความคิดเห็น • 54

  • @blblbl2750
    @blblbl2750 ปีที่แล้ว +25

    Timestamps
    00:00 - Intro
    01:25 - ls
    03:18 - cd and pwd
    07:44 - mkdir
    09:01 - cp
    12:02 - rm
    15:44 - mv
    17:38 - Other commands
    Summary
    ls List content of the current directory
    cd Change current directory
    pwd Print current working directory
    mkdir Create directory
    cp Copy file, use -r to copy a directory
    rm Delete file, use -r to delete a directory, -f to skip confirmation /!\ NO UNDO /!\ be careful !!
    mv Move (rename) file or directory
    Ctrl + L Clear screen

  • @sonicfreak9473
    @sonicfreak9473 4 ปีที่แล้ว +66

    "Linux operating system is favored by programmers, because it's just... cooler, right?"
    I love this guy

    • @The_Nova_Glow
      @The_Nova_Glow 3 ปีที่แล้ว +4

      he's not wrong lol

    • @ElderBard00
      @ElderBard00 3 ปีที่แล้ว +4

      totally love him... I wanna go back to linux now. XD

    • @ElderBard00
      @ElderBard00 3 ปีที่แล้ว

      @@amalldekan1432 kinda back at it. Using two HDD s now one win10 other ubuntu 😂

    • @ElderBard00
      @ElderBard00 3 ปีที่แล้ว

      @@amalldekan1432 Linux be in their clouds tho 😂

    • @SerhatAtes
      @SerhatAtes 3 ปีที่แล้ว

      @@ElderBard00 use virtual machines or containers like docker ;)

  • @Hamserto
    @Hamserto 4 ปีที่แล้ว +17

    After you've started typing an existing file or folder name you can press the "tab-key" to autocomplete. If there is more than one possible file or folder double pressing "tab-key" will show you a list.

  • @vijaynyaya6603
    @vijaynyaya6603 3 ปีที่แล้ว +4

    The video should have timestamps. I just wanted to review a few commands.

  • @sabrisume1311
    @sabrisume1311 4 ปีที่แล้ว

    thanks a lot for everything

  • @Jaygorian1
    @Jaygorian1 4 ปีที่แล้ว +3

    Idk why but every time he says tilde my brain whispers Swinton

  • @mattitalks6261
    @mattitalks6261 ปีที่แล้ว

    as a side note its only for the unix os's that use bash what is most of then but their is more shells then just bash

  • @manuxoxo6399
    @manuxoxo6399 3 ปีที่แล้ว

    Thank you so much!!! 🙏

  • @yongkailiu1448
    @yongkailiu1448 4 ปีที่แล้ว

    Nice video!

  • @numanbutt23
    @numanbutt23 5 ปีที่แล้ว +8

    hey! can you elaborate the difference between cs50 sand box and cs50 IDE?

    • @enisarik6002
      @enisarik6002 4 ปีที่แล้ว +2

      Agree. The detailed comparison is here cs50.readthedocs.io/sandbox/

    • @noman101
      @noman101 ปีที่แล้ว +1

      you destroyed my name

  • @BDL1013
    @BDL1013 ปีที่แล้ว

    Whenever I try to change directories to a folder it says "too many arguments"

  • @ThBlindElephant
    @ThBlindElephant 4 ปีที่แล้ว +1

    does the L in ctrl L stand for anything? i always think its ctrl c for clear... thinking about it now, is it possible that since ctrl c is for copy, that the L is the letter after C in clear?

    • @sonicfreak9473
      @sonicfreak9473 4 ปีที่แล้ว +1

      In the terminal, ctrl c is for stopping a program. ctrl shift c / ctrl shift v are for copying and pasting text respectively. don't know what the L stands for though

    • @uzumakiuchiha7678
      @uzumakiuchiha7678 3 ปีที่แล้ว

      ControL?

    • @nblsilent
      @nblsilent 2 ปีที่แล้ว

      Maybe it is about Ctrl+L --> C+L --> C+Lear --> Clear

  • @katya6680
    @katya6680 11 หลายเดือนก่อน

    I have Ubuntu 22.04.2 LTS as my OS, and it didn't ask me whether I want to delete a file or not, meaning there wasn't y/n question when deleting a file while working in the terminal. Does this y/n question before removal depend on the version of Ubuntu or something?

    • @davidjmalan
      @davidjmalan 11 หลายเดือนก่อน +1

      `rm -i FILE` will prompt you!

  • @nessakhahmed
    @nessakhahmed 10 หลายเดือนก่อน +1

    SLIDES:
    cdn.cs50.net/2017/fall/shorts/command_line/command_line.pdf

  • @ereaUA
    @ereaUA 2 ปีที่แล้ว

    but how to move with MW?

  • @yono4633
    @yono4633 5 ปีที่แล้ว

    THANK YOU

  • @pavanganeshpg
    @pavanganeshpg ปีที่แล้ว

    Rise your ✋ when you're in class 7, you use kail Linux to look cool, and then learn those basic commands, to showoff in front of your friends. Those days these commands are 😍🥰😘.

  • @jordanabarcelos3733
    @jordanabarcelos3733 3 ปีที่แล้ว +1

    I tried the rm command in MacOS and I wasn't asked if I was sured about that

    • @katya6680
      @katya6680 11 หลายเดือนก่อน

      same!!! but i'm on ubuntu

  • @uzumakiuchiha7678
    @uzumakiuchiha7678 3 ปีที่แล้ว +1

    1:25- ls

  • @joostvanderlinden135
    @joostvanderlinden135 4 ปีที่แล้ว

    CLI = command line interface GUI

    • @mr_noob5931
      @mr_noob5931 4 ปีที่แล้ว

      graphic user interface

    • @uzumakiuchiha7678
      @uzumakiuchiha7678 3 ปีที่แล้ว

      Not equals?

    • @nessakhahmed
      @nessakhahmed 10 หลายเดือนก่อน

      @@uzumakiuchiha7678 i think that CLI is where you write those comands, i mean the terminal, and GUI is where you use your mouse and click and double click and right click...

  • @eduarduskresnapurnama2113
    @eduarduskresnapurnama2113 5 ปีที่แล้ว +1

    Why we must used command line? Are windows UI more easy to used?

    • @sonicfreak9473
      @sonicfreak9473 4 ปีที่แล้ว +3

      you can also do so much more in the terminal, everything that's possible can be done from there. On the other hand, a lot of the possible things to do can't be done from GUI. besides CLI is way much cooler, oh yeah.

  • @mr_noob5931
    @mr_noob5931 4 ปีที่แล้ว

    time stamp anyone ???

  • @Kayzer606
    @Kayzer606 5 ปีที่แล้ว +5

    Just wondering whether pwd stands for "print working directory" rather for "present working directory"

  • @md.mashrafirahman7206
    @md.mashrafirahman7206 2 หลายเดือนก่อน

    Hey, Is there any way to remove all of the file inside my current directory at once?

    • @waffle6579
      @waffle6579 2 หลายเดือนก่อน

      try rmdir

  • @uzumakiuchiha7678
    @uzumakiuchiha7678 3 ปีที่แล้ว +1

    @6:34- pwd

  • @deathincarnatesplace
    @deathincarnatesplace 7 หลายเดือนก่อน

    hey Mr. Lloyd??? Would you consider making a class for operating system codes like just plain game maker studio 2 code gml code. i gaurantee I will pay full price on that one as soon as i learn enough about code as that is exactly why i am here in the first place and the roads from there (in google) lead directly to here and that is why i am here right now. so please make one for gml code a full class with both types of tutorial or maybe you Mr. david mallan can make one. please this is so there will be no jargon or inconsistencies in learning. It is really a lot like c and thank you very much for listening and remember the searches for find ways to learn gml code are ending up at harvard university and to make sure it happens just start a game maker studio 2 gml code course and the amount will double. It took six search's i found unsatisfactory to find you. just set one up for gml code and they will come.

  • @uzumakiuchiha7678
    @uzumakiuchiha7678 3 ปีที่แล้ว +1

    @3:19- cd

  • @marcooola
    @marcooola 4 ปีที่แล้ว +1

    marselo

  • @ultronbeatzmega3074
    @ultronbeatzmega3074 4 ปีที่แล้ว +1

    op in the chat spam

  • @error303
    @error303 2 ปีที่แล้ว

    This is the first comment in one year

  • @coldfuzion4149
    @coldfuzion4149 4 ปีที่แล้ว +1

    There's something fishy about the last few seconds of the video. I think he might have meant to write 'mv greddy.c greedy.c'. He typed the file names in reverse, thereby retaining the faulty file name of greddy.c and not renaming to greedy.c. You can see the incorrect file name still there when he types 'ls' and greddy.c is still there. Anyone else notice that?