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've used 'cat /dev/null > filetoempty')<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'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'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` -> the 102 command from the history would run again <br> <br>9.HISTTIMEFORMAT="%Y-%m-%d %T" <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 -> 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 -> `ls -l; echo "hello" ` <br>or -> `ls -l && echo "hello" ` <br>&& - 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 <size_of_file> <name_of_file>` == 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. 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's a real issue either way. 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. I'm 75 and grew up with UNIX while working with Bell Labs and developing software using C. I've been to a number of Unix Administration schools while working at Western Electric including Unix Internals. Back then there was no GUI and it was all command line interface on the terminal. I still have vi highly ingrained in me and today only use Ubuntu Linux. I really enjoyed your video and picked up a lot of new tips and some that shucked the old cobwebs into remembering. 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 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 "ctrl+u" will ((at least on my "Pop-OS 21-04")) indeed work as You demonstrated.<br>How ever what it "really does" is "deletes" all the entered text to the left of the cursor. <br>So if the cursor is "at the end" of the line it will indeed "delete the full line", but if the cursor instead is at the start it will do nothing. And of course if You have the cursor "somewhere in the middle" it will just "delete" the text to the left of the cursor<br>Just thought I'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

How to use Multiple SSH Keys | Managing Different SSH Keys on your System
Akamai Developers · 103K views

The Sun Is Weirder Than You Think
Cleo Abram · 1.3M views

Linux Command Line for Beginners
Keep On Coding · 376K views

Mind Blowing Super Cool Linux Commands
Joe Collins (EzeeLinux) · 55K views

Linux: 35 years in 35 facts in 35 minutes
Jono Bacon · 372K views

The Insane Real Engineering of the Nazi Enigma Machine
Veritasium · 14M views

Is Russia Really Preparing to Attack NATO?
Paul Warburg · 222K views

10 Things I Wish I Learned First About Linux
Learn Linux TV · 625K views

20% of Linux Commands You'll Use 80% of the Time (Real-World Example)
TechWorld with Nana · 611K views

54 Essential Linux Commands You Need To Know
Josean Martinez · 21K views

My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
tutoriaLinux · 657K views

The Linux Filesystem Explained | How Each Directory is Used
Akamai Developers · 262K views

'Taxpayers' dollars have been spent on this...' | Simon Marks
LBC and LBC America · 525K views

My Dream Power Hammer Restoration! Part 10
Alec Steele · 1.6M views

Learn the LINUX COMMAND LINE: 40 commands in 15 minutes !
The Linux Experiment · 35K views

5 Linux Commands Every Beginner Should Know
Michael Tunnell · 37K views

5 Steps to Secure Linux (protect from hackers)
NetworkChuck · 890K views

10 Linux Terminal Tips and Tricks to Enhance Your Workflow
Learn Linux TV · 118K views

60 Linux Commands you NEED to know (in 10 minutes)
NetworkChuck · 2.5M views

Complete DARK WEB Explained: Crime, Cybersecurity & the Hidden Internet
Ismail · 465K views