">" is not the pipe operator. it is the redirect operator. ">>" is redirect and append. "|" is the pipe and it means take STDOUT of the previous program and give it to STDIN of the next program.
Thank you. It would be great to mention the abbreviations meaning as well. Easier to remember the commands. pwd = Print Working Director, ls = List, sudo = Super User Do etc. PS: Touch command refers to a Michelangelo’s Creation of Adam painting I guess.
I think touch's original intended meaning was just to change the modification/access time of a file, but then, as programmers do, they ask what is the most useful behaviour when touch is given a non-existent file: either 'file not found' or 'create a zero-length file', and the latter won out.
One thing where the CLI shines is your ability to define your own shorthands. These could be aliases, or functions, or indeed other scripts written in either bash or python or perl or whatever.
Command line can be confusing, but just remember, all it is doing is running an executable with the name that you put for. The computer keeps an internal list of accepted commands, this is based on you environment variables which are automatically included during installation. Because the executable can only accept text through the command line you just seperate your parameters in a predefined way after the executable name.
A great summary of the basic commands for the command line! On windows10 in gitbash the man command is not found and cd or cd ~ always change to the home directory not to the one visited previously.
Please make a video explaining the types of pixels (maybe there are 3 types) and how media queries work on small phones with high screen resolutions like 2k and 4k and how to make responsive sites for smartphones with such high resolutions
If you accidentally forgot to add sudo before running the command, then you can type "sudo !!" to add it to the beginning of the previous command. Also "|" is the pipe command.
Well i've been using Linux (Archlinux with AwesomeWM) for almost a year now, and i don't want to go back to windows. I use linux+zsh so it's pretty easy to set it up your liking, and fzf could really come in handy if you want to make custom script and z can take your anywhere you've been, just type "z Project" and it will take you to your last "Project" folder no matter how long the path is, you don't even need to type "Project" just type "Proj" "ject" or any it will take you to the last directory with that keyword. Seriously if you haven't tried doing web development in linux TRY IT, it could save you a lot of time, though the time to master it might not be short, though some distro like Mint, Zorin, Pop OS give a Windows like experience so it's a good way to start. If you're already using linux then try switching to Window Managers instead of Desktop Environment (Gnome/KDE), make your own workflow and keybinding since it's gonna be easier to remember them if you're the one who make them.
Well, > is redirect, >> is append and | is the pipe operator but you got the functionality right. Apt is the package manager used by Debian distors, distros like Arch, Fedora, OpenSUSE have their own package managers.
@@aammssaamm I feel like I would be more likely to burn out if I *didn't* use bash. It's just so much quicker and easier to just type in a few characters than to have to spend ages clicking through menus and submenus just to do one thing imo, but I guess everyone's different
apt-get is deprecated apt install is the preferred way. And apt only works on Debian derived systems! Yum is the RedHat/Centos one and SuSe uses zypper
Liked even before viewing, coz this is an underrated but really useful topic. And I have full faith that this video will be much beyond my expectations! :)
@@092_deepak_kumar3 True, POSIX is the standard. The POSIX implementation in a Bourne Again Shell is complete, but not everything BASH is portable and compatible with other POSIX compliant systems. I guess Linux distros are pretty much compliant, but not certified.
Also you can specify a relarive path on ls and it shows the content it that path instead of the current path Just sayin so ppl don do cd folder, ls, cd.., and instead just do ls folder
Ubuntu's ~/.bashrc comes with aliases for ls -al alias ll='ls -alF' Typing the ll alias is easier. I create many aliases, such as booting rails with ssl certs, ssh connections, etc.
Thanks this is really helpful. One query I have in npm you can change the registry URL for package installation. Like an artifactory URL Can we do it in Linux too ?
I mean, using WSL (Windows Subsystem for Linux), instead of Git Bash that mentions Kyle at the beginning. I am starting to learn Node.js after HTML/CSS/JS (using Visual Studio Code) and I would like to know if I should install WSL as a prefered environment to continue my learning. Any comment is greatly appreciated
@@betoje I've used Windows + Git Bash, Linux (directly) and now I'm using WSL2 and for me, it was a gamechanger to have everything I wanted in one place. It was the same with Windows Terminal
@@betoje nice! You can have Powershell 5, 7, Command Prompt, GitBash, WSL and any other terminals you want available to you with Windows Terminal. Just click the arrow and select the terminal you want. - You might need to edit the profiles file to add more terminals. Do a check online for a guide on this
At the biggest web site here in the Netherlands, I was an Irix admin (silicon graphics Unix) and I had solved a software issue with the teletext grabber and the nsapi plugin. It was all running and store in svn so time to clean up the dev rm -rf ~/rdoetjes /opt/trial/ * and I press enter and I’m like... why is /etc listed?! FUUUUCK! A space had slipped in between the / and * CTRL-C “guys, don’t stop anything or it won’t start, I’m gonna fetch last nights tape and restore my Fucking blunder!” The great thing with Unix is, as long as it’s running it keeps running without /etc Configs. Yeah being root back in the latter half of the 90s was normal especially coding Netscape API shizzel that started as root and then chuid. Now I don’t even know my root password.
It's interesting how almost no one mentions having deprecated commands. This indicates that people are looking without the desire to reproduce the code; I would forbid commenting for such individuals.
You are probably using PowerShell on Windows? It knows the "ls" command ( sort of ), but not the same options as the Linux equivalent. Just typing "ls" gives a similar output as "ls al" on the Linux command line.
@Sean V coz he doesnt know the difference between redirect and pipe operators. this is something that's taught in 1st or 2nd year of CS curriculum in intro to linux/unix course.
@@vladislavglad6596 Fish has syntax highlighting, genuinely good auto completion and helpful suggestions and it is a far nicer language to do scripting in (the syntax is much nicer).
@@jamest5014 fish is not posix compliant, and all those fancy features are easy to add to something like bash or zsh (which are posix compliant) Fish doesn’t just add features, it removes them as well.
I've seen maybe hundreds of Linux tutorials, and in some cases they use "apt" and in others "apt-get" for package management. From a technical standpoint, what's the difference?
Assuming that you know some JS (if you don't, then obviously, JavaScript, with some more useful "recent" additions included), look into learning the most frequently asked for framework in job offers, some basics of Node. Other than that, Typescript seems to be the hot thing now, and knowledge of testing tools should let you stand out more.
@@092_deepak_kumar3 yup, but on a mac, and bsd, type nano and it won't work. Pico will get you a functionally similar environment so you can follow along
@@alphaseinor I know but you said nano is pico, which is incorrect. So yeah. I don't use a Mac but I can guess they don't spend in the terminal and would rather use something like vsc to do simple edits. And someone who haven't used a unix-like system wouldn't go with BSDs as their first system for sure.
There is a better version of cat which I use and its called bat command. You will have to install it though. Its very good and it has syntax highlighting and such. on macos - brew install bat
">" is not the pipe operator. it is the redirect operator. ">>" is redirect and append. "|" is the pipe and it means take STDOUT of the previous program and give it to STDIN of the next program.
Kyle to the rescue I see
Yup indeed!
He’s just got functional js on the brain 😂
He's a Windows user.
@@daniellindegren1182 and even on windows piping and redirecting is a thing :)
Instead of typing "clear" you can just press Ctrl + L and it clears the terminal.
Wow you told a great command 😂😂😂😂😂
noo thats too easy. typing clear feels more hackery
@@SkuezTech yeah i feel you
Shortcut keys are not advisable when we having command for that
@@UdayaKumar-fg5in what are you talking about? Why would they not be advised?
Thank you. It would be great to mention the abbreviations meaning as well. Easier to remember the commands.
pwd = Print Working Director, ls = List, sudo = Super User Do etc.
PS: Touch command refers to a Michelangelo’s Creation of Adam painting I guess.
but then your insightful comment put the cherry on top! thank you!
I think touch's original intended meaning was just to change the modification/access time of a file, but then, as programmers do, they ask what is the most useful behaviour when touch is given a non-existent file: either 'file not found' or 'create a zero-length file', and the latter won out.
Doing a video about this topic was a great idea. 👍
Tip: to re-run the last command with sudo permissions, instead of typing it again, just type "sudo !!"
One thing where the CLI shines is your ability to define your own shorthands. These could be aliases, or functions, or indeed other scripts written in either bash or python or perl or whatever.
Command line can be confusing, but just remember, all it is doing is running an executable with the name that you put for. The computer keeps an internal list of accepted commands, this is based on you environment variables which are automatically included during installation. Because the executable can only accept text through the command line you just seperate your parameters in a predefined way after the executable name.
"history" is another great command to show a list of all previously typed commands.
Thank you so much Kyle for the very informative and helpful tutorial! God bless and good luck!
You are the only good developer on youtube who does not use mac. I actually like that you don't use mac.😃
Maybe because he's into web development and not mobile app
Is Mac Book that good for both Web Development and Mobile App Development?
@@marcscherzer If you want to build IOS apps you need a MacBook but otherwise no need
@@sokoyaadedolapo5321 Even if you see most of the youtubers who are into web development use macbook
@@marcscherzer you can develop for both iOS and android platform using mac, unlike windows
A great summary of the basic commands for the command line! On windows10 in gitbash the man command is not found and cd or cd ~ always change to the home directory not to the one visited previously.
Can't get enough of your videos kyle thank you 🙏🙏🙏
If you know these commands, you can also write bash scripts which is extremely useful for automating tasks
Please make a video explaining the types of pixels (maybe there are 3 types) and how media queries work on small phones with high screen resolutions like 2k and 4k and how to make responsive sites for smartphones with such high resolutions
If you accidentally forgot to add sudo before running the command, then you can type "sudo !!" to add it to the beginning of the previous command. Also "|" is the pipe command.
17:40 not inside of Linux, but inside of debian/ubuntu/mint repos. There are completely different package managers for other distros.
Well i've been using Linux (Archlinux with AwesomeWM) for almost a year now, and i don't want to go back to windows. I use linux+zsh so it's pretty easy to set it up your liking, and fzf could really come in handy if you want to make custom script and z can take your anywhere you've been, just type "z Project" and it will take you to your last "Project" folder no matter how long the path is, you don't even need to type "Project" just type "Proj" "ject" or any it will take you to the last directory with that keyword.
Seriously if you haven't tried doing web development in linux TRY IT, it could save you a lot of time, though the time to master it might not be short, though some distro like Mint, Zorin, Pop OS give a Windows like experience so it's a good way to start. If you're already using linux then try switching to Window Managers instead of Desktop Environment (Gnome/KDE), make your own workflow and keybinding since it's gonna be easier to remember them if you're the one who make them.
Well, > is redirect, >> is append and | is the pipe operator but you got the functionality right. Apt is the package manager used by Debian distors, distros like Arch, Fedora, OpenSUSE have their own package managers.
AppImage gang!
@@092_deepak_kumar3 same bro
I did not know the "cd -" command, pretty useful!
07:35 touch is named touch because it modifies the datetime for existing file
The amount of valuable content you upload is unbelievable
I know right? he really knows great topics to make tutorials for. Definitely underrated!
Right in time. Thanks.
Amazing content. Thank you👍🏽👍🏽
When you learn bash / command line you will be able to code and use your computer so much quicker!
+1
What is the benefit? A quicker burn out?
@@aammssaamm I feel like I would be more likely to burn out if I *didn't* use bash. It's just so much quicker and easier to just type in a few characters than to have to spend ages clicking through menus and submenus just to do one thing imo, but I guess everyone's different
4:37 have been using cd command for like 10 years. Never realized it means "change directory" 😂
what were you thinking, something like the "compact disk" ? :D
@@6500s1 just thought it was a command 😂
@web Dev simplified thank you Kyle. I understood a lot of JS and React concepts from your videos.
Thanks a lot.
@@madhousenetwork Dude, this commenter isn't Kyle. It's a spam bot.
@@mykalimba oh yeah... Kyle should get verified soon
I always learn something new, even when it’s a topic I think I already know.
Kyle, do you see the spam happening here? 🤦♂️🤦♂️🤦♂️
@@dave6012 That account is trying to impersonate him.
apt-get is deprecated apt install is the preferred way. And apt only works on Debian derived systems! Yum is the RedHat/Centos one and SuSe uses zypper
It's important and useful to know how to invokes commands in your programs(C or node.js or CommonLisp)
Timely one, just installed ubuntu
Good luck!
Nicely done... goon.. respectfully said Kyle
Liked even before viewing, coz this is an underrated but really useful topic. And I have full faith that this video will be much beyond my expectations! :)
Thanks bro, I love your videos!
To create a file on Windows Powershell, just use the ni command and separate file names with comma
wow thats amazing, they don't teach this kind of stuff in school
you can use cmd+k to clear the terminal instead of writing clear
Also you can install exa if you're in mac or linux and you'll have much better ls command
VSCode's in-built terminal is soo good!
Another useful command to learn is awk. Also, learn about pipes.
Thank you!
The other day I saw my senior dev using find and I didn't even know that existed.
pwd should be part of your prompt ;)
It’s the first thing I set, when it isn’t.
Also learn these ones:
tmux
htop
ranger
watch
lsof vmstat iostat and mpstat
Loved this❤️
thanks dude
Linux terminal is power. I can't live without it.
I think you mean POSIX, it's not a Linux exclusive thing
@@092_deepak_kumar3 True, POSIX is the standard. The POSIX implementation in a Bourne Again Shell is complete, but not everything BASH is portable and compatible with other POSIX compliant systems. I guess Linux distros are pretty much compliant, but not certified.
@@noozzoo5152 they're partially certified as I remember.
apt-get is not completely for Linux, it's for Debian/Ubuntu-based distros specifically. also, `apt` is preferred over `apt-get`.
Thanks a lot !
Also you can specify a relarive path on ls and it shows the content it that path instead of the current path
Just sayin so ppl don do cd folder, ls, cd.., and instead just do ls folder
Ubuntu's ~/.bashrc comes with aliases for ls -al
alias ll='ls -alF'
Typing the ll alias is easier.
I create many aliases, such as booting rails with ssl certs, ssh connections, etc.
Correct. That's what i use.
i mean.. indeed i AM noob. but.. but.. i find this video so helpful.
Also, I would use micro instead of nano, it is better but just as easy to use
Pico is better, and under Apache 2.0 now.
I would rather use vi than micro.
vim is better
Use: ls -lh human readable format of sizes
Keep rocking
Thanks this is really helpful.
One query I have in npm you can change the registry URL for package installation. Like an artifactory URL
Can we do it in Linux too ?
@web Dev simplified thanks. I reported you.
sudo !! to run the last command with sudo without having to enter the whole command again.
How about a video on Homebrew?
i think you misspelled "vim", looks like you wrote "nano" 🤣️
Nobody:
Me: opening vscode just to use the command line
Me, have vi with a terminal :) I programmed whole TCP servers in C++, through telnet on SCO machine in vi. That’s how we GenXers rock!
@@CallousCoder don't tell them about vi, they will use it in excitement and will stuck there forever.
@@092_deepak_kumar3 esc:wq! People 🤪
17:30 This works with Ubuntu and Debian Linux
Doesn't work with Redhat, OpenSuSe
Me on Alpine using apk :)
@@092_deepak_kumar3 LOL
@web Dev simplified For real? Your a scammer, not the real Web Dev Simplified
Need a video on git commands.
Kyle, what do you think on using WSL in Windows?
I mean, using WSL (Windows Subsystem for Linux), instead of Git Bash that mentions Kyle at the beginning. I am starting to learn Node.js after HTML/CSS/JS (using Visual Studio Code) and I would like to know if I should install WSL as a prefered environment to continue my learning. Any comment is greatly appreciated
@@betoje I've used Windows + Git Bash, Linux (directly) and now I'm using WSL2 and for me, it was a gamechanger to have everything I wanted in one place. It was the same with Windows Terminal
@@nocentii Thanks. I am now using WSL2 and I like it very much. I will also try Windows Terminal 😀
@@betoje nice! You can have Powershell 5, 7, Command Prompt, GitBash, WSL and any other terminals you want available to you with Windows Terminal. Just click the arrow and select the terminal you want. - You might need to edit the profiles file to add more terminals. Do a check online for a guide on this
You forgot "sudo rm -r /"
lol
At the biggest web site here in the Netherlands, I was an Irix admin (silicon graphics Unix) and I had solved a software issue with the teletext grabber and the nsapi plugin. It was all running and store in svn so time to clean up the dev
rm -rf ~/rdoetjes /opt/trial/ * and I press enter and I’m like... why is /etc listed?! FUUUUCK! A space had slipped in between the / and *
CTRL-C “guys, don’t stop anything or it won’t start, I’m gonna fetch last nights tape and restore my Fucking blunder!”
The great thing with Unix is, as long as it’s running it keeps running without /etc Configs.
Yeah being root back in the latter half of the 90s was normal especially coding Netscape API shizzel that started as root and then chuid. Now I don’t even know my root password.
I've said this and I'll say this again.
webDevSimplified = Awesomely Useful + promoted to Gold level
ls is written by stallman? Nice
Kyle I hope you make a viddo on vim too 🙂😅
It's interesting how almost no one mentions having deprecated commands. This indicates that people are looking without the desire to reproduce the code; I would forbid commenting for such individuals.
helpful
I use this command to create new file:
"> file.txt"
and on zsh, you can do `< file` to see the contents of it :) quite useful
@@devhypercoder2522 Thanks man
It says `bash: man: command not found` after I entered `man ls`
ls -al
Get-ChildItem : A parameter cannot be found that matches parameter name 'al'.
At line:1 char:4
You are probably using PowerShell on Windows? It knows the "ls" command ( sort of ), but not the same options as the Linux equivalent. Just
typing "ls" gives a similar output as "ls al" on the Linux command line.
PowerShell is the cancer of programming languages! JavaScript is the herpes.
Super.
How much time did you take to achieve perfection in web development??
You don't and he is clearly a beginner to intermediate.
@@sacredgeometry so atleast I want to know the time taken by him to reach that level.
@Sean V coz he doesnt know the difference between redirect and pipe operators. this is something that's taught in 1st or 2nd year of CS curriculum in intro to linux/unix course.
If on Linux you should defiantly look at using Fish instead of bash
Why? I have no problem using bash.
@@vladislavglad6596 Bash is not bad but fish is just better
@@jamest5014 if you could please explain the "better" part a bit more
@@vladislavglad6596 Fish has syntax highlighting, genuinely good auto completion and helpful suggestions and it is a far nicer language to do scripting in (the syntax is much nicer).
@@jamest5014 fish is not posix compliant, and all those fancy features are easy to add to something like bash or zsh (which are posix compliant)
Fish doesn’t just add features, it removes them as well.
I've seen maybe hundreds of Linux tutorials, and in some cases they use "apt" and in others "apt-get" for package management. From a technical standpoint, what's the difference?
apt is just an alias for apt-get in modern Linux distributions :)
Assuming that I have 0 experience in web developing apart from HTML and CSS, what should learn today to get a job?
I will go with Javascript & React
Assuming that you know some JS (if you don't, then obviously, JavaScript, with some more useful "recent" additions included), look into learning the most frequently asked for framework in job offers, some basics of Node. Other than that, Typescript seems to be the hot thing now, and knowledge of testing tools should let you stand out more.
@@janpawedwa4590 thanks!!
sudo stands for superuser do
hey KYLE thanks but you should have concluded with the history command
nano is pico on unix-based systems, like bsd or Mac... just fyi
Nano isn't Pico, Nano aka GNU Nano is a replacement for Pico because of the licensing issues back in the day.
@@092_deepak_kumar3 yup, but on a mac, and bsd, type nano and it won't work. Pico will get you a functionally similar environment so you can follow along
@@alphaseinor I know but you said nano is pico, which is incorrect. So yeah.
I don't use a Mac but I can guess they don't spend in the terminal and would rather use something like vsc to do simple edits.
And someone who haven't used a unix-like system wouldn't go with BSDs as their first system for sure.
@@092_deepak_kumar3 Congratulations, you win. Mac people will never watch this, and all bsd people are 1337.
>. redirect to output
ngl, cd is the only command i ever found useful inside vs code lol
Good video. Now make a how to get amazing hairline.
Arrows Up & Down?
don't forget 'man'
set cls='clear'
kyle why dont you try linux? its great for programmers
And now I can hack The Pentagon
Hi ! I from Russia. Have it chanal a content on the Russian? Sorry for my English
Has anyone actually used pwd in their daily use? I've only ever used it in scripts. It's always a part of my prompt.
yeah, sometimes I `pwd | pbcopy` when I just want to throw the path to the current wd into my clipboard, but otherwise I don't use it
So rm is the new del *.*? XDDD
"ls" doesn't work in windows
Have you installed git? And no I don't mean GitHub. If yes then right click and select "Git bash"
@@092_deepak_kumar3 yes
Still "LS" doesn't work
@@shahedtheboss what error you get?
@@092_deepak_kumar3 ls is not recognized as an internal keyword
@@shahedtheboss then it's not in the path variable
First
50th comment
Crtl + l will also clear
Crtl + r will search your command history
There is a better version of cat which I use and its called bat command. You will have to install it though.
Its very good and it has syntax highlighting and such.
on macos -
brew install bat
On first viewing the presentation was too fast for me to follow; I did much better putting playback speed at 75%
ls -alh is better
First comment 😍
wanted to watch this video but i'm only 14 :(
You can thank the UA-cam gods for that
hey, it's only a recommendation, not a requirement in the title. :D
NOT FOR ME. Speak too fast and explain too fast.
Its too lame lvl, should have told a bit about grep or something.