Linux Tutorial - Basic Command Line

แชร์
ฝัง

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

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

    Brad I love your tutorials! Im working on a BS degree in software dev and your channel is honestly a better resource than most of my professors . Thank you for all that you do!

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

      @Rationalistic I was brand new and you're a troll... move along child.

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

      @@karlahnorris3262 Did you get your bachelors

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

    I found a 38 video series on Linux Command Line and I thought Brad must have a concise and to the point tutorial ... and ... here it is. Awesome!

  • @ishmeet6
    @ishmeet6 6 ปีที่แล้ว +4

    you are the best brad. there are not enough words to describe how good you are at teaching at such simplicity and precision in a short duration.
    THANK YOU so much.

  • @nitishkhanna9368
    @nitishkhanna9368 3 ปีที่แล้ว +7

    Noted down the commands that he went through in this video. Just sharing it here
    pwd ==> path
    ls ==> listing
    ls -a ==> lists all files including hidden file
    ls -l ==> lists files with info
    mkdir ==> create directory
    cd ==> change path
    cd / ==> goto root
    cd ~ ==> goto home
    touch file.txt ==> creates file
    nano file.txt ==> edit file on cmd line
    cat file.txt ==> shows what's in file
    less file.txt ==> show whats in file in new tab (for big files)
    mv file1 file2 ==> renames file (replaces)
    cp file1 file2 ==> copies from 1 file to another
    rm file ==> delete file
    rmdir dirname ==> delete directory (only umempty dirs)
    which mongo ==> finds the path of mongo
    history ==> shows last 500 commands
    ifconfig ==> shows info (like ipconfig)
    iwconfig ==> shows wireless info
    ping google.com ==> pings server
    uname -a ==> system info
    blkid ==> hard drive info
    top ==> process and memory info (like task manager)
    df ==> disk space info
    lsusb ==> usb devices
    sudo apt-get install packagename ==> installs package
    sudo apt-get remove packagename ==> removes package
    sudo apt-get update packagename ==> updates package
    sudo shutdown -h now ==> shut down

  • @marthacarson-stevens9888
    @marthacarson-stevens9888 3 ปีที่แล้ว +5

    Thanks Brad I’m new to Linux and this really helped me grasp the basics.

  • @lorenzvader7918
    @lorenzvader7918 7 ปีที่แล้ว +103

    5:07 The d stands for directory and not delete. If you can write to a file you can delete it.

    • @TraversyMedia
      @TraversyMedia  7 ปีที่แล้ว +44

      Right, brain fart :(

    • @TheGryphon14
      @TheGryphon14 6 ปีที่แล้ว +10

      "If you can write to a file you can delete it"
      No you must have *write* and *execute* permissions on its parent folder. The file permissions don't matter.

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

    very useful tutorial. your voice is unmistakably clear and the instructions were very straightforward!

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

    Wow, just starting to learn Linux CLI while on furlough and taking a free class through our public library online. The instructor barely digs into Linux CLI and spends most the sessions on Windows CLI, this was leaving me frustrated. The first TH-cam video that popped up in my search is this one and what a Gem! Thank you!!!

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

    I watched your html/css series, looked for a linux command line video, clicked on this one without knowing and BOOM. Traversy Media. Dope. Haha thanks for the great content!

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

    This was so well laid out and perfect for any newcomer to the Linux distributions. Very informative and a great stepping stone if you want a no BS, straight to the point tutorial. Great video and I have subscribed. Clearly a well-educated gentleman with perfect delivery of this content. I cannot bitch about anything!! A+ and I look forward to future video's

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

      Coke Esto estaba muy bien diseñado y era perfecto para cualquier recién llegado a las distribuciones de Linux. Muy informativo y un gran trampolín si no quieres un BS, tutorial directo al grano. Gran video y me suscribí. Claramente, un caballero bien educado con una entrega perfecta de este contenido. ¡¡No puedo quejarme de nada !! A + y espero con ansias futuros videos

  • @riaznapa
    @riaznapa 3 ปีที่แล้ว +2

    Always love your tutorial; precise and useful.

  • @Leonid_P
    @Leonid_P 7 ปีที่แล้ว +30

    Thanks Brad! We need a new crash course - Linux Crash Course :) Please, more about Linux, Vim, VM, SSH on Linux and etc.

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

      Yep, vim is very missed command. Or at least vi...

  • @isunaslabs4733
    @isunaslabs4733 7 ปีที่แล้ว +4

    Dude,ur videos are amazing.Thank you so much.Greetings from China😜

  • @faresgeek-dz5692
    @faresgeek-dz5692 7 ปีที่แล้ว +10

    you are the best instructur in youtube🤗👏👏

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

    Dude I just came across your video it is so helpful... I just put Kelly legs on my laptop a half an hour ago this has been so helpful

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

    Brad, just getting into AWS Solutions Architect - your tutorial on Linux basic commands is very helpful.

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

    You got the permissions part for ls -l wrong I think. It's not delineated by the dashes like you indicated, its divided in to letter groups of size 1+3+3+3. The first digit indicates file (-) or directory (d). And the next 3 tuples of rwx indicate what permissions are granted to the user, group, and all. For example -rwxrwxr-x would indicate a file that grants read, write and execute to the user and group, but only read and execute to others.

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

    Great video my doode. Currently taking Linux 1 through Netcad and now I feel confident to work ahead

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

    My first time on linux and you made it look easy

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

    Brad this was an enormous help. Thanks

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

    hey im french and i was pretty scared to watch an english tutorial and finally yours is 10 times better than french ones

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

    Thanks a million for your invaluable content.. it's just wonderful

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

    having 0 knowledge of tech and completing all of these commands was somehow the most satisfying/rewarding thing ever

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

    Following you since 2017 👍👍

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

    Best linux basic video, Thanks !

  • @aviipatel8760
    @aviipatel8760 8 หลายเดือนก่อน

    Great,,. Today i learned alot of Basic Things about CLI

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

    Very amazing 😍 thanks a lot for basic info 😉 thumbs up for you 👍😊

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

    Your videos are awesome! Keep up the good work! I guess I work in a similar way. I got a Macbook Pro and It's very annoying to program on it. Linux is far better! So I use all the "normal and mundane" stuff like logic and final cut pro. Everything else goes to my VM with xubuntu.
    Your videos are helping me to accelerate the process to use ONLY Linux for all. I'm a Brazilian dude. And I can be held back hostage because of apple hardware prices.

  • @Chickennugget-vq6lw
    @Chickennugget-vq6lw ปีที่แล้ว

    omg thank u so much i was learning this in school today but i was so confused i thought it was so hard but u made it so easy for me to understand thank u so much ... heart heart

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

    very useful information for beginners...tysm

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

    Thanks so much! This is super helpful.

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

    perfect vedio for begineers, loved it

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

    Really helpful thanks Brad, earned a sub

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

    Actually "d" in ls -al command stands for Directory.

  • @Lana-rx6qe
    @Lana-rx6qe 3 ปีที่แล้ว

    very good video. good explanation! Thank you

  • @rajendrawagle1854
    @rajendrawagle1854 7 ปีที่แล้ว +3

    In Windows 10 build 1607 i.e Anniversary Update, Microsoft listened to developers and added support for 'Bash' which runs on Ubuntu and its not a VM or any virtual box, it's the similar concept to WINE but doesn't run GUI based applications and they called it WSL i.e Windows Subsystem for Linux. So you'll probably don't need to install a separate OS for normal development tasks. By the way Windows 'Bash' is created in collaboration with Canonical i.e Ubuntu Developers which uses Ubuntu 14.04. It will be helpful for new developers as well :). Kindly cover it in your next video.

  • @jonnjordan4420
    @jonnjordan4420 7 ปีที่แล้ว

    Another great tutorial Brad, could you make a tutorial about MERN Stack? It would be great

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

    good content Brad. thanks

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

    thanks. that was very useful.

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

    Awesome man great video.

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

    Thanks alot its just awesome

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

    Great one Brad!

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

    Awesome tutoiral !

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

    This guy is so cool and awesome!!!

  • @sagar-gavhane
    @sagar-gavhane 6 ปีที่แล้ว

    Great tutorial...

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

    Respect from Pakistan. Thanks 🙏

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

    Brad i love you, thanks.

  • @RB-cx3ce
    @RB-cx3ce ปีที่แล้ว

    Thank you thank you thank you thank you thank you thank you thank you. a million times thank you. 🙂

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

    13:17 actually the which command is not gonna search for any file or directory. It actually only shows the full path for a specific binary executable file that is listed in the PATH environment variable. You can search for multiple of these binaries but it just does that. It only shows what's already inside of the PATH environment variable. It doesn't search for any file in the system

  • @TheXiaoCi
    @TheXiaoCi 6 ปีที่แล้ว +11

    Let's do a in-depth one!

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

      Was there ever an in depth guide? Please post a link if so. Loved this.

  • @zzRider
    @zzRider 6 ปีที่แล้ว

    Great job!

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

    A wonderful to the point Video, Sir. One thing, Does not "which" command shows only the path of Executable Files? Thank you.

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

    Thank you Sir!

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

    this one is very useful! will this work on CentOS?

  • @astratow
    @astratow 3 ปีที่แล้ว +2

    Missed commands: vim emacs and keys tab and up arrow key to reuse input or get hints/autocomplete

  • @aeid101
    @aeid101 6 ปีที่แล้ว

    Brad, can you share why you prefer web development on a linux machine? What are the advantages over OSX?

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

    Thank you ! 🧚🏽‍♀️

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

    Awesome tutorial! I have Debian 11 on a chromebook in Linux Beta, and I have basically no idea how to use any of it but I'm trying to learn. The nano command was not found when I tried it, is there an alternative? Or a reason that this wasn't working?

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

    Sir very nice video

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

    Thanks brad!

  • @suyashgupta4019
    @suyashgupta4019 7 ปีที่แล้ว

    Is there any way to play around with non-.txt files using terminal? I mean, what output can we expect if we use the cat command? Brilliant tutorial,though.

  • @Jel.Awesh.M
    @Jel.Awesh.M 6 ปีที่แล้ว

    What do you think about Arch Linux (or similar like Antergos / Manjaro)?

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

    Thank you

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

    Thanks dude.

  • @RameshKumar-mv3jd
    @RameshKumar-mv3jd 2 ปีที่แล้ว

    Awesome primer, thank you! I think "which" only searches for executable files, please correct me if I'm wrong.

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

    Thanks, Like + Comment!

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

    Finally clear English!!

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

    Awesome :)

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

    The best Linux distro is the one that works with your hardware. If you want a solid Linux machine for developing, I'd suggest a Thinkpad. Generally, Thinkpads seem to be very compatible with just about any version of Linux. Just my 2 cents.

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

    I like you brad, thanks

  • @prajwalm.s7976
    @prajwalm.s7976 ปีที่แล้ว

    Amazing

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

    THANK YOU BRAD

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

    AMAZING!

  • @adeltahenti1330
    @adeltahenti1330 7 ปีที่แล้ว

    Thanks :)

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

    i love it so much bro. u just saved my ass. but one question what passcode did u use in sudo

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

    Thanks

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

    Great❤️

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

    Hey. Just started using ubuntu for python development. Using vscode, have been digging around internet, but can not find.
    When project directory is open in vscode and I run in terminal touch .gitignore
    What the next command to open this newly created file would be?

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

    Great

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

    Thanks dawg

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

    helpful!

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

    Good Man, :)

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

    do you recomand download any application for Mac to learn Basic Terminal

  • @balli5824
    @balli5824 7 ปีที่แล้ว

    sir pls make tutorial on electron.
    thanks.

  • @oOcitizenOo
    @oOcitizenOo 7 ปีที่แล้ว

    Sadly, i have never used Linux in my life even regarding the fact i worked as a system administrator :) But willing it improve my skills i decided to take a Linux course on Udacity, and here is your video. Coincidence? Don't think so.

    • @TraversyMedia
      @TraversyMedia  7 ปีที่แล้ว

      Hey some people just do not get around to certain technologies. Like for me, I am a web developer and I have only used a mac a handful of times. That is also kind of weird. Ive always been interested in building powerful gaming PCs and that whole world so I never had a mac. I built all my machines

    • @oOcitizenOo
      @oOcitizenOo 7 ปีที่แล้ว

      I see your point :)
      Speaking about Mac - for an average citizen it's not affordable in my country since it costs as hell, but i know people working with virtual Mac machines in order to have a bit of understanding it. All i wanna i say is that even though we have our main jobs it's ok to learn something new - so i'm a junior web developer but still wanna grow in networking engineering field (in case the whole dev community ruins :D)
      Thnx for all your videos, they're really helpful!

    • @mayaali55
      @mayaali55 7 ปีที่แล้ว

      oOcitizenOo

  • @don23817
    @don23817 7 ปีที่แล้ว

    Please show us how to make application with electron.

  • @cochemas
    @cochemas 7 ปีที่แล้ว

    At the beginning of the video, you are talking about a Linux based recording solution as an alternative for Windows based Camtasia. What kind of software is that? Sorry, if I missed smth. And if that's not a secret))

    • @TraversyMedia
      @TraversyMedia  7 ปีที่แล้ว +2

      Screen recording and video processing. I have tried Kazam, OBS, Screenrecorder and some others but they were either buggy, slow or couldn't do what I need

    • @cochemas
      @cochemas 7 ปีที่แล้ว

      +Traversy Media Oh, I got it. I'll have those onto my blacklist in order not to waste time messing around with them. Your opinion based on experience is very welcome. Thnx

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

    The command "ifconfig" does not work on my windows subsystem for Linux. what is the problem?

  • @JC-wv9ss
    @JC-wv9ss 4 ปีที่แล้ว

    Hey brad! Near the end of the video you show how to get an update. When you do it it doesn't allow you to do it without using 'sudo' and when you use 'sudo' it asks for your password. For me, when I use 'sudo apt-get update' it goes through without requesting a password. What does that mean? Am I already the root user? Should I be?

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

      Did you log in as the root user? if you had created an user with root privileges, it should have requested you the password normally

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

    Thanks for this have a test on Linux cmd tomorrow morning and my virtual machine chose yesterday to somehow lose its files needed to run or something even if I uninstall and reinstall idk what's wrong but even using other apps Ubuntu crashes

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

      Did you pass?

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

    I have folders named exp1, exp2, ......exp99. I need to remove "exp" from those names. The encypted scripts work only when the folders are "1, 2, 3 .....99: . Can someone please help me with that?
    Thanks in advance!

  • @100salonichoudhary
    @100salonichoudhary 4 ปีที่แล้ว

    What is the command of a text file having 100 lines, you need to display line number 40 to 60 in linux?

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

      sed -n '40,60p'

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

    @5:13 d is not delete it's directory. Also you have the grouping wrong. The group can read and execute, and also "everyone else" can read and execute. it's owner=rwx, group=r-x everyone else=r-x

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

    Starts at 02:52

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

    first d is for directories no?

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

    will all these work if i use Ubuntu on Windows 10 as subsystem?

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

      you can download it into virtual box, Ubuntu or centos

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

    Thanks. Thumbs up, but the 3 minutes of intro describing reasons for linux vs windows seemed to be a bit of a digression...

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

    on following

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

    Great 😃😃😃!!!

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

    getting deeper into the Matrix....