">" 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.
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.
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.
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, > 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.
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.
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! :)
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
@@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
So touch is not a weird command, the purpose of touch is to update the date of a file with current time you can see in the modified property. People use touch to create files as a trick cause if there is no such file to update the time is creating a new one. Always ask the whys don't just do it cause everybody does it without knowing why.
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.
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.
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
@@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.
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.
@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.
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 ?
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.
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.
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?
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
@@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.
@@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.
Tip: to re-run the last command with sudo permissions, instead of typing it again, just type "sudo !!"
Doing a video about this topic was a great idea. 👍
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.
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
"history" is another great command to show a list of all previously typed commands.
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.
Thank you so much Kyle for the very informative and helpful tutorial! God bless and good luck!
Can't get enough of your videos kyle thank you 🙏🙏🙏
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.
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
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
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.
17:40 not inside of Linux, but inside of debian/ubuntu/mint repos. There are completely different package managers for other distros.
Timely one, just installed ubuntu
Good luck!
you can use cmd+k to clear the terminal instead of writing clear
Nicely done... goon.. respectfully said Kyle
The amount of valuable content you upload is unbelievable
I know right? he really knows great topics to make tutorials for. Definitely underrated!
Amazing content. Thank you👍🏽👍🏽
Right in time. Thanks.
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! :)
I did not know the "cd -" command, pretty useful!
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.
07:35 touch is named touch because it modifies the datetime for existing file
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
If you know these commands, you can also write bash scripts which is extremely useful for automating tasks
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
Thanks bro, I love your videos!
thanks dude
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❤️
Another useful command to learn is awk. Also, learn about pipes.
The other day I saw my senior dev using find and I didn't even know that existed.
It's important and useful to know how to invokes commands in your programs(C or node.js or CommonLisp)
apt-get is not completely for Linux, it's for Debian/Ubuntu-based distros specifically. also, `apt` is preferred over `apt-get`.
VSCode's in-built terminal is soo good!
Thanks a lot !
To create a file on Windows Powershell, just use the ni command and separate file names with comma
Use: ls -lh human readable format of sizes
So touch is not a weird command, the purpose of touch is to update the date of a file with current time you can see in the modified property. People use touch to create files as a trick cause if there is no such file to update the time is creating a new one. Always ask the whys don't just do it cause everybody does it without knowing why.
Keep rocking
Also you can install exa if you're in mac or linux and you'll have much better ls command
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.
wow thats amazing, they don't teach this kind of stuff in school
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
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.
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
helpful
sudo !! to run the last command with sudo without having to enter the whole command again.
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.
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.
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
Need a video on git commands.
ls is written by stallman? Nice
i think you misspelled "vim", looks like you wrote "nano" 🤣️
>. redirect to output
Super.
How about a video on Homebrew?
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 🤪
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.
Arrows Up & Down?
sudo stands for superuser do
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.
hey KYLE thanks but you should have concluded with the history command
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.
It says `bash: man: command not found` after I entered `man ls`
don't forget 'man'
Good video. Now make a how to get amazing hairline.
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!!
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 :)
Kyle I hope you make a viddo on vim too 🙂😅
set cls='clear'
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
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
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.
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.
ngl, cd is the only command i ever found useful inside vs code lol
First
kyle why dont you try linux? its great for programmers
50th comment
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
Crtl + l will also clear
Crtl + r will search your command history
So rm is the new del *.*? XDDD
First comment 😍
On first viewing the presentation was too fast for me to follow; I did much better putting playback speed at 75%
And now I can hack The Pentagon
ls -alh is better
"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
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
I dont have the money to buy your JS course kylle what should i do i want to learn javascript 😔😔😔
wanted to watch this video but i'm only 14 :(
You can thank the RUclips 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.