Ads skipped

18 Commands That Will Change The Way You Use Linux Forever

1.4M views · Mar 2, 2022 · Science & Technology

Comments · 810

  • @ComicswithDrew · 4 years ago

    This just might be the single greatest video I've ever watched in YouTube.

    5

  • @gronblom · 4 years ago (edited)

    CTRL U does remove the text on the line, if you are at the end of the line. What it is actually doing is removing from your cursor to the BEGINNING of the line. If you are in the middle of the line, it will remove everything BEFORE the cursor. Also, if you are in the middle of the line and type CTRL K, it will remove everything from the cursor to the END of the line. If you do CTRL A CTRL K, it is the same as CTRL U as you are going to the beginning and removing text to the end of the line.<br>truncate was a new command for me (I&apos;ve used &apos;cat /dev/null &gt; filetoempty&apos;)<br>and I learned about column, too!<br>Cool video!

    14

  • @dorb1337 · 4 years ago

    summary of the commands:<br><br>1. `cd -` : back to the last directory we&apos;ve been to. <br>2. `ctrl+l`: clear screen <br>3. `reset`: clear on steroids - resets terminal session <br>4. `pushd /var` + few other `cd` commands + `popd`: commands that allow you to work with directory stack and change the current working directory <br>5. `vim /etc/ssh/sshd_config` + ctrl+fz : isn&apos;t closing, but minimizing the window to the back ground <br>`fg` : bring back the window to the front. <br>6. `apt update`: would fail - cuz we fogot sudo <br> `sudo !!` : would run the last command as sudo <br>7. <br>8. run command that already been run - `history`, choose a number of command <br>and run it `!102` -&gt; the 102 command from the history would run again <br> <br>9.HISTTIMEFORMAT=&quot;%Y-%m-%d %T&quot; <br>`history` would should the history commands by the format. <br>another way to add the format, is add it to the `~/.bashrc` file with `vim` or `nano` commands. <br> <br>10.cmatrix -&gt; let you look cool + ctrl c to escape <br> <br>11.adjust font `shift +` or `shift -`, `reset` command would reset the font size <br> <br>12. `ctrl a` - start of the line <br>`ctrl e` - end of the line <br> <br>13.chainning commands -&gt; `ls -l; echo &quot;hello&quot; ` <br>or -&gt; `ls -l &amp;&amp; echo &quot;hello&quot; ` <br>&amp;&amp; - would stop when meets an error <br>; - would pop up an error and keep on running the second/next command <br> <br>14. `tail` / `head` commands to see top or bottom of a file. <br> <br>15. truncate (be cautious while using this one - its risky) <br>it allows to change the size of a very large files (like log files) <br>for example `truncate -s &lt;size_of_file&gt; &lt;name_of_file&gt;` == truncate -s 0 hello.txt to empty the hello.txt file<br> <br> <br>16. `mount | column -t` : make sure all the output shows in columns <br>any verbose and messy command output would look better using `| column -t`

    295

  • @RamiroRela · 4 years ago

    25+ years of command line advanced usage but with your video I learned about column -t and the history time variable

    43

  • @dusty6193 · 2 months ago

    Man you are one of the best Linux tutorial guys on here. &nbsp;Always easy to learn from your videos

  • @CheapNLazyAdventures · 4 years ago

    I hate to say this but many of the tutorials out there, the folks talking are hard to understand. I know that sounds bad, but it&apos;s a real issue either way. &nbsp;I greatly appreciate that you are in depth and easy to listen/hear. Thank you very much.

    2

  • @cwmoser · 2 years ago

    Very good video on the command line. &nbsp;I&apos;m 75 and grew up with UNIX while working with Bell Labs and developing software using C. &nbsp;I&apos;ve been to a number of Unix Administration schools while working at Western Electric including Unix Internals. &nbsp;Back then there was no GUI and it was all command line interface on the terminal. &nbsp;I still have vi highly ingrained in me and today only use Ubuntu Linux. &nbsp;I really enjoyed your video and picked up a lot of new tips and some that shucked the old cobwebs into remembering. &nbsp;Thanks for the very well done video.

    3

  • @kenkkash · 4 years ago

    Thanks 🙏 for the video. I learned 3 Linux commands from it. <br>pushd / popd / truncate <br><br>Ctrl + w &nbsp;delete word by word.

    8

  • @mechwarrior83 · 3 years ago

    Great video! I have been using Linux for 3 years and come from a Windows admin background but this old dog still managed to learn some new tricks.

  • @GglSux · 4 years ago

    Thanks for another great video. <br>One small side note, the &quot;ctrl+u&quot; will ((at least on my &quot;Pop-OS 21-04&quot;)) indeed work as You demonstrated.<br>How ever what it &quot;really does&quot; is &quot;deletes&quot; all the entered text to the left of the cursor. <br>So if the cursor is &quot;at the end&quot; of the line it will indeed &quot;delete the full line&quot;, but if the cursor instead is at the start it will do nothing. And of course if You have the cursor &quot;somewhere in the middle&quot; it will just &quot;delete&quot; the text to the left of the cursor<br>Just thought I&apos;d mention that (possibly petty) detail :)<br>Best regards.

    11

  • @D_Ladybug · 3 years ago

    you simply have one of the most concise, eloquent and knowledge impacting channel. thank you, sir!

  • @Songfugel · 4 years ago

    Ok, one minute in, and already the first tip blew my mind and made the video worth a like

    1

Up next

LIVE

How to use Multiple SSH Keys | Managing Different SSH Keys on your System

Akamai Developers · 103K views

LIVE

The Sun Is Weirder Than You Think

Cleo Abram · 1.3M views

LIVE

Linux Command Line for Beginners

Keep On Coding · 376K views

LIVE

Mind Blowing Super Cool Linux Commands

Joe Collins (EzeeLinux) · 55K views

LIVE

Linux: 35 years in 35 facts in 35 minutes

Jono Bacon · 372K views

LIVE

The Insane Real Engineering of the Nazi Enigma Machine

Veritasium · 14M views

LIVE

Is Russia Really Preparing to Attack NATO?

Paul Warburg · 222K views

LIVE

10 Things I Wish I Learned First About Linux

Learn Linux TV · 625K views

LIVE

20% of Linux Commands You'll Use 80% of the Time (Real-World Example)

TechWorld with Nana · 611K views

LIVE

54 Essential Linux Commands You Need To Know

Josean Martinez · 21K views

LIVE

My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)

tutoriaLinux · 657K views

LIVE

The Linux Filesystem Explained | How Each Directory is Used

Akamai Developers · 262K views

LIVE

'Taxpayers' dollars have been spent on this...' | Simon Marks

LBC and LBC America · 525K views

LIVE

My Dream Power Hammer Restoration! Part 10

Alec Steele · 1.6M views

LIVE

Learn the LINUX COMMAND LINE: 40 commands in 15 minutes !

The Linux Experiment · 35K views

LIVE

5 Linux Commands Every Beginner Should Know

Michael Tunnell · 37K views

LIVE

5 Steps to Secure Linux (protect from hackers)

NetworkChuck · 890K views

LIVE

10 Linux Terminal Tips and Tricks to Enhance Your Workflow

Learn Linux TV · 118K views

LIVE

60 Linux Commands you NEED to know (in 10 minutes)

NetworkChuck · 2.5M views

LIVE

Complete DARK WEB Explained: Crime, Cybersecurity & the Hidden Internet

Ismail · 465K views

YouTube, with the door locked.

Aegis plays a clean stream instead of YouTube's player, so pre-roll ads, trackers, and fingerprinting never ride along. Drop Shields any time if you want the official player back.