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
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
Thank you!
"Linux operating system is favored by programmers, because it's just... cooler, right?"
I love this guy
he's not wrong lol
totally love him... I wanna go back to linux now. XD
@@amalldekan1432 kinda back at it. Using two HDD s now one win10 other ubuntu 😂
@@amalldekan1432 Linux be in their clouds tho 😂
@@ElderBard00 use virtual machines or containers like docker ;)
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.
The video should have timestamps. I just wanted to review a few commands.
thanks a lot for everything
Idk why but every time he says tilde my brain whispers Swinton
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
Thank you so much!!! 🙏
Nice video!
hey! can you elaborate the difference between cs50 sand box and cs50 IDE?
Agree. The detailed comparison is here cs50.readthedocs.io/sandbox/
you destroyed my name
Whenever I try to change directories to a folder it says "too many arguments"
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?
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
ControL?
Maybe it is about Ctrl+L --> C+L --> C+Lear --> Clear
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?
`rm -i FILE` will prompt you!
SLIDES:
cdn.cs50.net/2017/fall/shorts/command_line/command_line.pdf
but how to move with MW?
THANK YOU
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 😍🥰😘.
I tried the rm command in MacOS and I wasn't asked if I was sured about that
same!!! but i'm on ubuntu
1:25- ls
CLI = command line interface GUI
graphic user interface
Not equals?
@@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...
Why we must used command line? Are windows UI more easy to used?
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.
time stamp anyone ???
Just wondering whether pwd stands for "print working directory" rather for "present working directory"
It actually is "print"!
It is print
Hey, Is there any way to remove all of the file inside my current directory at once?
try rmdir
@6:34- pwd
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.
@3:19- cd
marselo
op in the chat spam
This is the first comment in one year
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?