Bash commands to not look dumb at the Interview...

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • In this second episode of my basic shell/bash/terminal guide, I show you some basic commands to get system, user, time and hard drive information so you don't look too clueless when you have to figure something out in the terminal.
    WEBSITE: lukesmith.xyz 🌐❓🔎
    DONATE: lukesmith.xyz/donate 💰😎👌💯
    OR affiliate links to things l use:
    www.epik.com/?affid=we2ro7sa6 Get a cheap and reliable domain name with Epik.
    www.vultr.com/?ref=8384069-6G Get a VPS and host a website or server for anything else.
    brave.com/luk005 Get the Brave browser.
    lbry.tv/$/invite/@Luke View my videos on LBRY.
    www.coinbase.com/join/smith_5to1 Get crypto-rich on Coinbase.
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @redd_cat
    @redd_cat 4 ปีที่แล้ว +763

    Woah dude, there's a ping command? That's just like in Minecraft

  • @mockingbird3809
    @mockingbird3809 4 ปีที่แล้ว +242

    LMFAO "I'm gonna DDOS 127.0.0.1 to hack Luke's machine man" Best part of the video.

    • @auronkardek
      @auronkardek 4 ปีที่แล้ว +18

      Anonymous profile pic add extra comedy

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

      @@auronkardek username too

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

      the best part cause it's the only one that u got?

  • @DrethPlusPlus
    @DrethPlusPlus 4 ปีที่แล้ว +285

    10:36
    "I use Linux as my operating system," I state proudly to the unkempt, bearded man. He swivels around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme precision. "Actually", he says with a grin, "Linux is just the kernel. You use GNU+Linux!' I don't miss a beat and reply with a smirk, "I use Alpine, a distro that doesn't include the GNU coreutils, or any other GNU code. It's Linux, but it's not GNU+Linux."
    The smile quickly drops from the man's face. His body begins convulsing and he foams at the mouth and drops to the floor with a sickly thud. As he writhes around he screams "I-IT WAS COMPILED WITH GCC! THAT MEANS IT'S STILL GNU!" Coolly, I reply "If windows was compiled with gcc, would that make it GNU?" I interrupt his response with "-and work is being made on the kernel to make it more compiler-agnostic. Even you were correct, you wont be for long."
    With a sickly wheeze, the last of the man's life is ejected from his body. He lies on the floor, cold and limp. I've womansplained him to death.

    • @_DT_
      @_DT_ 4 ปีที่แล้ว +10

      lol

    • @0000xFFFF
      @0000xFFFF 4 ปีที่แล้ว +15

      jesus
      you should write a book

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

      No one want to read this long comment

    • @sta1nless
      @sta1nless 4 ปีที่แล้ว +32

      That was really fun to read not gonna lie

    • @baldoggie
      @baldoggie 4 ปีที่แล้ว +10

      this comment was made into a video th-cam.com/video/5Wz9BkzU1zY/w-d-xo.html

  • @JuriDerCoole
    @JuriDerCoole 4 ปีที่แล้ว +274

    "I use Linux as my operating system," I state proudly to the unkempt, bearded man. He swivels around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme precision. "Actually," he says with a grin, "Linux is just the kernel. you use GNU+Linux." I don't miss a beat and reply with a smirk, "I use alpine, a distro that doesn't include the GNU coreutils, or any other GNU code. It's Linux, but it's not GNU+Linux."
    The smile quickly drops from the man's face. His body begins convulsing and he foams at the mouth as he drop to the floor with a sickly thud. As he writhes around he screams "I-IT WAS COMPILED WITH GCC! THAT MEANS IT'S STILL GNU!" Coolly, I reply "if windows was compiled with gcc, would that make it GNU?" I interrupt his response with "and work is being made on the kernel to make it more compiler-agnostic. Even if you were correct, you won't be for long."
    With a sickly wheeze, the last of the man's life is ejected from his body. he lies on the floor, cold and limp. I've womansplained him to death.

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

      gae

    • @DominicGo
      @DominicGo 4 ปีที่แล้ว +22

      i want this on a xkcd comic lmao

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

      lol cope seethe

    • @aliencreation8744
      @aliencreation8744 4 ปีที่แล้ว +8

      read half and couldnt stop laughing

  • @0ne87
    @0ne87 4 ปีที่แล้ว +143

    Just did a tracer t on your website. Your done kiddo.

    • @ivansakal1224
      @ivansakal1224 4 ปีที่แล้ว +34

      _typing noises_ I'm in.

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

      tong is in new york

  • @sw0434
    @sw0434 4 ปีที่แล้ว +60

    On Sundays we Kode.

  • @hmagellanlinux307
    @hmagellanlinux307 4 ปีที่แล้ว +98

    Thanks now I can ping PayPal and steal everyone's money

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

      Could have been a zero-day attack if you didn't tell everyone.

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

      Like in a Russian tvs?

  • @slmjkdbtl
    @slmjkdbtl 4 ปีที่แล้ว +21

    9:50 "we forget what operating system we're on" damn that happens to me every day

  • @owenjohns6301
    @owenjohns6301 4 ปีที่แล้ว +127

    Koding with Kaczynski

  • @LPFan33
    @LPFan33 4 ปีที่แล้ว +36

    can you do a one arm pull-up tutorial please

  • @serratedwarstep
    @serratedwarstep 4 ปีที่แล้ว +54

    Interviewer: "Says here your last job was deploying your own VPN service called IP Freely."
    Mike Oxlong: "Correct."

  • @arrtemfly
    @arrtemfly 4 ปีที่แล้ว +69

    how to get a job literally anywhere: fix vertical tearing in linux on a machine that runs nvidia
    p.s. looks like i ain't getting the mf job

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

      nvidia's driver has literally a checkbox for that

    • @arrtemfly
      @arrtemfly 4 ปีที่แล้ว +12

      @@qqqqqqqqqqqqqqq67 ikr, guess why i still made that comment

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

      compton

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

      @@arrtemfly uneducated scrub here, do you mean the pipeline thingy in nvidia-settings?

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

      installed arch today (i use arch btw) and was pleasantly surprised when i saw no tearing whatsoever (amd gpu) without installing anything at all

  • @MrArmand36
    @MrArmand36 4 ปีที่แล้ว +22

    We need to hire him for our start-up

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

    Thank you for the n00b friendly content recently. You have a great way of teaching and getting straight to the point. These vids are great!!

  • @bruderdasisteinschwerermangel
    @bruderdasisteinschwerermangel 4 ปีที่แล้ว +40

    The only date format we need is ISO 8601
    date -Is

  • @jamsky1558
    @jamsky1558 4 ปีที่แล้ว +18

    Someone somewhere watching this is probably like: "Whoa dude, why do you have my ip address. You hacking me? "

  • @arbazna
    @arbazna 4 ปีที่แล้ว +42

    3000+ ms of ping?!
    Do your packets travel to GEO before reaching the server?

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

      RFC2549 could be in play there haha

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

    Running a mount that's 99% filled? Absolute madman.
    Also, df -h < findmnt -D | sort -hk5

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

    No joke, these topics actually came up in an interview I did for a grad role. They wanted to test my Linux knowledge. I thought it was gonna be a breeze since I've been using Linux for years and was no stranger to shell-scripting, but then they asked me questions like "How would you get the remaining space on a hard drive?" (df) and "How do you get all the running processes for the current user?" (ps ax), things I never thought/needed to do in the command-line before.
    I def would have looked less dumb in that interview had I watched this video first; just goes to show how much I still have to learn about Linux.

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

    Thank you! These videos are always welcome because I always learn something.

  • @abdullahm..2303
    @abdullahm..2303 4 ปีที่แล้ว +3

    Thank you Luke, I enjoyed your video, appreciate your work

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

    That was quite helpful, sir. Thank you.

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

    This video is really useful
    Thanks Lukerino

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

    I think this was the first useful commands video that actually had useful commands

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

    I love the thumbnail, Kode with Klossy

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

    Oh, boy! That's awesome!

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

    I appreciate the Not Related teaser. I'm interested in the Hermeticism episode

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

    instead of doing "kill $(pidof mpv)" or something like that you can also just do "pkill mpv"

  • @Ace-hg3vx
    @Ace-hg3vx 4 ปีที่แล้ว +4

    I find your tutorials very easy to learn. Do you have any Linux 101 videos? Like I'm talking absolute beginners, even more beginner friendly than just commands. Possibly why people use linux, what you can do on it, and just anything you think people with zero knowledge should know.

  • @ethana.838
    @ethana.838 4 ปีที่แล้ว +17

    You showed your IP man. Get ready to be canceled.

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

    "I've used sixty-nine eight gigabytes" pardon

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

    Great & informational CLI video, as always.

  • @Vlad-1986
    @Vlad-1986 4 ปีที่แล้ว +2

    Actually I didn't knew about pidof, so thanks! faster to type than "top | grep"

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

    i pissed myself of laughter when I saw that thumbnail on my youtube homepage.

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

    you can just write "ip a"

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

      Thx, i didn't know this.

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

      ip addrers shovv is tru

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

    Thumbnail game on point.

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

    thank you luke

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

    I'm happy when people say properly GNU/Linux is OS they use.

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

    Ifconfig got me lolzing

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

    The last 2 minutes with the memes were so great 🤣🤣🤣

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

    >macos
    how the mighty have fallen

    • @computer-love
      @computer-love 4 ปีที่แล้ว

      i am Ozymandias, king of all kings, or something like that

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

      Macos is so delicious you need to try it

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

      @@xrafter used it for a couple of years. Package managers available for mac are at least not comfortable to use.

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

      Still better than Windows

  • @albertm.3081
    @albertm.3081 4 ปีที่แล้ว +1

    You are a good man

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

    Luke what advice would you give to a guy used to work with xfce and wanting to try out dwm, is there a way to make the transition to a tiling wm more smooth?

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

    Nobody:
    Luke: Let's say you forget what operating system you are using

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

    That ping though ...

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

    dmesg is another big one you'll get in interviews, at least I have

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

    he is gonna make a video on editing streams !! can't wait

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

    03:24 Luke: 698? Nah 69 - 8. 👍

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

    like the series

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

    What package do u have installed to use the "man" command? I have arch and kde (vanilla install) and "man" isn't a recognized command.

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

    oof, all this computer hacking is making me thirsty - i think i'll order a TAB :D

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

    Uname is actually made by the GNU foundation. They want you to think it's called GNU/Linux.

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

    >dat tumbnail
    lmaoooooo

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

    8:08 i felt that

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

    Ur the best teacher about Linux. Uhmm Gnu/Linux. Thanks for that video ♥️

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

    Dude, its the current century!

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

    for system info and all, try neofetch

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

    Came here from the Latex video, stayed for the Linux & BaSh

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

    Dat ping time doe

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

    How do I install Skyrim mods for Oblivion under Emacs 19.04 from iTunes?

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

    well you use pidof when you know exactly the process name while you use pgrep if you aren't sure

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

    Can you do video that goes more in depth on networking? Like the ip-command?

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

    i recognize that loopback address see you soon

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

    4:50 Bloat AFFFFFFF
    Didn't know you got into YUV12 videos, man

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

    Do a video on setting up a personal git server

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

    Interview? Is it possible to use Linux/UNIX all day everyday and get paid for doing so? What r those jobs?
    Now seriously, what positions can i use my bash scripting skills?
    Salute to my fellow Linux addict peers. Heres one of my fav commands:
    yt-dlp -F
    ^-F^-f 137+140^
    ---> repeats the prev command replacing desired segment with a different one, in this case after checking the available resolutions of the video i repeat that command with the desired res i chose to download. So useful.

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

    We need more vid!s🙂🙂🙂🙂

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

    This is great. But i'd like some intermediate commands and creating cool scripts and shit.

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

    >work/nr/herm
    Luke finally answering the trap question

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

    Hey thats funny, we have the same IP.

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

    11:16 Luke!

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

    ...still genuinely friendly and sincere even to noobs, what.. how.. Am I high?

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

    What do you use to get color in your manual pages?

    • @S0ra-
      @S0ra- 2 ปีที่แล้ว +2

      Hey, it's been a year, but are you still looking for it?
      If you do, just place the following in your shellrc
      If not, it will be useful to someone, probably
      export LESS_TERMCAP_mb=$'\e[1;32m'
      export LESS_TERMCAP_md=$'\e[1;32m'
      export LESS_TERMCAP_me=$'\e[0m'
      export LESS_TERMCAP_se=$'\e[0m'
      export LESS_TERMCAP_so=$'\e[01;33m'
      export LESS_TERMCAP_ue=$'\e[0m'
      export LESS_TERMCAP_us=$'\e[1;4;31m'

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

    you are funny pal-)

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

    Pls do one on how to do keybindings in bash / bourne sh.

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

    tanks now i cen hakc in too teh paentagon

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

    Gotop is not longer maintained and its development moved to ytop. :D

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

      Sam Branisa unfortunately ytop crashes on my machine.

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

      @@jessedarko I prefer bashtop over ytop.

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

    You got any info on how to get the crypto prices in the top bar?

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

    Damn where's you server located 3s ping :O

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

    do a video on optimizing bash scripts

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

    I am a devops engineer for a pretty cool company in Europe, I don't really know much more than that, I just use google.

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

    Can you do image previews in 'lf'?

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

      No, it's a non-feature, according to the devs: github.com/gokcehan/lf

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

    Damn, 3000 ms

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

    Gotop is actually unmaintained. The developer is now actively writing ytop, which is the same thing written in Rust

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

    10:40 Sudden urge to eat something off my foot....

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

    You can abbreviate even further `ip a`

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

    why are the files in his home directory in the wheel group?

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

    ip a does the same thing as ip addr and it's easier to write

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

    look at them pings.... OVER 3000!!!!!!!!!!!!

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

    Is there any simple way to: pwd to clipboard. I just wanna print my working directory and copy it quickly so I can paste it without having to use my mouse and scroll over it, also could be useful for scripts?
    Thanks papa Luke

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

      pwd | xclip -selection c
      You can put alias cpwd="pwd | xclip -selection c" in your .bashrc so you could just type cpwd and it will copy to clipboard.

    • @jasongoulet-lipman7308
      @jasongoulet-lipman7308 4 ปีที่แล้ว

      "pwd | xclip -selection c"

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

    Make a video about how to record with ffmpeg please

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

    8:12
    Rip camera

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

    Why dont you just run "ps aux | grep mpv" to get presses id too

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

    The comments are just the best part of the video

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

    Have you tried gstreamer instead of ffmpeg?
    I feel it's much more powerful and interesting tool for video stuff.

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

    How if you have ssh-key logon have disabled the passwd logon

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

      In /etc/ssh/sshd_config there’s the option ‘
      PasswordAuthentication yes

      Change it to ‘no’ and users can only login with their private key.

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

    07:39 *grep* = _general regular expression print_

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

    since this video is for noobs
    protip: if you wanna know your PUBLIC ip address, you have to ask an external web server who you are
    you can use any one of these four commands:
    curl -Ss ifconfig.co
    curl -Ss ifconfig.me
    curl -Ss ipecho.net/plain
    dig +short myip.opendns.com @resolver1.opendns.com
    the reason you have to ask a web server what your external public IP address is is because that's the exit point from your ISP to the outside world. Your computer doesn't know where your ISP is gonna pipe your internet signal out from, so you have to send a request out from that pipe and ask some other machine out in the world "who am i?" and they will tell you, because they can see where your request came from. that information is *always* visible to whatever web server or computer you interact with. and usually your ISP only gives you 1 external IP address, so you can get identified with it. If you want to hide your IP address, the only way is to bounce your requests through another server before it gets to the destination, which then sees the IP address of the middle-man, but not YOUR ip (but the middleman sees your IP). a VPN is such a middleman. but what's even better than a VPN (and free!) is Tor, which not only bounces your traffic around, but does it *three times, and also encrypts* your traffic every step of the way, so that practically nobody can tell where tf you are coming from.

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

    Me running Linux on Plan9 and BSD coreutils :
    SpAgHeTtI : MoMs
    GnU : ErAdIcAtEd
    HoTeL : TrIvAgO

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

    Are these coreutils commands and not bash?