10 Linux Terminal Tips and Tricks to Enhance Your Workflow

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Are you a Linux user and/or administrator? These 10 terminal tricks will show you some new and exciting ways you can enhance your workflow, shorten longer tasks, and even have a little fun along the way.
    Thanks to Linode for sponsoring this video. Check them out and spin up your very own Linux server ➜ learnlinux.link/akamai
    Brand LPI Linux Essentials Course Available
    Now just $44.99 for a limited time! ➜ learnlinux.link/lpi-course
    ➜ learnlinux.link/lpi-course
    Check out the Linux Shop
    In the official shop, you'll find Shirts, hats, stickers, bags and more!
    ➜ merch.learnlinux.tv
    5% discount on LPI exam vouchers
    After you finish Jay's new course, get 5% off an LPI exam voucher here:
    ➜ learnlinux.link/lpi-voucher
    Become a Patron
    Show your support for Learn Linux TV on Patreon and get access to exclusive perks!
    ➜ learnlinux.link/patron
    Become a Channel Member
    Show your support for Learn Linux TV here on RUclips and get access to exclusive perks!
    ➜ learnlinux.link/member
    Mastering Ubuntu Server: 4th Edition
    Jay's latest book covers everything you need to know in order to master Ubuntu Server. It's available here:
    ➜ ubuntuserverbook.com
    Linux Gear and Kits
    Check out Jay's choice of hardware products, audio/video equipment, and more.
    ➜ learnlinux.link/amazon
    Grab an awesome Pi-powered KVM
    Support Learn Linux TV and grab yourself a TinyPilot KVM here:
    ➜ learnlinux.link/tinypilot
    Note: Royalties and/or commission is earned from each of the above links
    Time Codes
    00:00 - Intro
    00:56 - Spin up your very own Linux server with Linode (Sponsor)
    02:25 - Terminal Trick 1: Simplify package installation
    05:18 - Creating an alias for your text editor as well
    06:08 - Retaining aliases like these for future use
    07:59 - Terminal Trick 2: Checking your weather forecast
    10:21 - Terminal Trick 3: Resetting your terminal session (without closing the window)
    11:28 - Terminal Trick 4: Run a Internet speed test from within your terminal
    14:07 - Terminal Trick 5: Use neofetch to show a system summary when you log in
    16:48 - Terminal Trick 6: My own personal custom bash prompt
    21:00 - Explanation on how my terminal prompt functions
    26:49 - Terminal Trick 7: View terminal cheat sheets with cheat.sh
    29:33 - Terminal Trick 8: Get your fortune told (use at your own risk!)
    32:18 - Terminal Trick 9: How tmux can enhance your workflow
    36:29 - Terminal Trick 10: Opening files and launching desktop apps from the terminal
    Video Specific Links
    - Official blog post for this video ➜ learnlinux.link/terminal-tips
    Full Courses from Learn Linux TV
    • Linux Essentials Certification Workshop ➜ learnlinux.link/lpi-course
    • Linux Crash Course series ➜ linux.video/cc
    • Learn how to use tmux ➜ linux.video/tmux
    • Learn how to use vim ➜ linux.video/vim
    • Bash Scripting Series ➜ linux.video/bash
    • Proxmox VE Cluster Full Course ➜ linux.video/pve
    • Learn Ansible ➜ linux.video/ansible
    Linux-related Podcasts
    • Enterprise Linux Security ➜ enterpriselinuxsecurity.show
    • The Homelab Show ➜ thehomelab.show
    Learn Linux TV on the Web
    • Main site ➜ www.learnlinux.tv
    • Community ➜ community.learnlinux.tv
    • Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
    • The Homelab Show Podcast ➜ thehomelab.show
    • Content Ethics ➜ www.learnlinux.tv/content-ethics
    • Request Assistance ➜ www.learnlinux.tv/request-ass...
    Disclaimer
    Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
    #linux #linuxterminal #commandline
  • НаукаНаука

Комментарии • 165

  • @toweliethetowel8280
    @toweliethetowel8280 Год назад +12

    What helped me at the beginning was the discovery of "!!". If you forgot "sudo" in front your command you can type "sudo !!" and it adds the last command after the "sudo ".. Saved a lot of nerves :)

    • @evgen4681
      @evgen4681 Год назад

      alias fuck="sudo !!" 😂

  • @tralphstreet
    @tralphstreet Год назад +35

    Your solution to not see the verbose warning messages when opening audacity is just to drop them in another terminal session. What's better is to send the output to /dev/null
    audacity &> /dev/null &
    &> redirects both stdout and stderr, dev null is a special device where you can send stuff, it's basically a void. The last ampersand just puts the program in the background, it's optional.

  • @CDE.Hacker
    @CDE.Hacker Год назад +14

    Aliases are great. Been using them for a while. I would recommend a naming convention for aliases. I like to capitalize the first letter of each command to indicate it's an alias. I find that very helpful.

    • @AlazTetik
      @AlazTetik Год назад +1

      Yea, a nice convention, I will apply that, thank you 🙋🏻

    • @hootiebubbabuddhabelly
      @hootiebubbabuddhabelly Год назад +3

      good idea - I used "w" for a weather alias and lost the "who" details you get with it - IOW, check that you're not losing another function before you make it permanent. I'm going to make aliases for session settings specific to whatever tasks I'm focused on.

  • @mrklean0292
    @mrklean0292 Год назад +6

    Great video, I have been a RHEL, Sun Solaris, AIX Sys Admin off and on for about 17 years now, and I would have to say that I have learned more from your videos and the comments, both good and bad, in the past year (I think I just discovered your videos about five months ago). I have read tons of books and watched more videos on Linux systems admin than I can remember, but not all of it would stick. The way you demonstrate and put things just makes sense. Thank you. I really wasn't an Ubuntu user, mostly because I worked mainly with RHEL since 2005, but I recently started using Ubuntu Mate on one of my personal lab setups and really like it, I haven't bought a Linux admin book in years now because I just wasn't really learning from them. But, because of the way your videos are done, I am going to buy your book because I feel that it would be a far better reference than any of the previous books I have sitting on my shelves, well, with the exception of "Unix and Linux System Administration Handbook", there are so many good nuggets in those books.

    • @AlazTetik
      @AlazTetik Год назад

      Hello, I have a question for you based on your experience. Actually I have worked as a chemical engineer for over 7 years and now planning to change my career into software. What jobs can I look for in the Linux related job market? I have been using several Linux distros on my personal computers since 2006 (Ubuntu, Pardus, Mint, Manjaro, Fedora). I can build some projects with React (JS), Express (Node) and MongoDB + MySQL, and I know how to write some basic stuff with Golang, Java, Python.

    • @mrklean0292
      @mrklean0292 Год назад +2

      @@AlazTetik Even though I have been a systems admin, a lot of the work I have done has been more database related, creating reports for our company and maintaining our internal website which we built with PHP, I worked/work on the back end of the site. I have many other skill sets that were/are necessary to fulfill this position, but to really answer your question, it's really up to what you are looking to get into. I see DevOps as one direction you could go into. I started off in a small software dev company which had been bought out several times until it is now, or it was at least part of one of the largest companies in the world. While I was there I saw people move around constantly from one position to another. I moved from software QA testing to systems administration, where I mainly administered RHEL and Sun Solaris servers, and I performed Oracle database admin tasks. That was before DevOps, I don't know a lot about DevOps, but it seems to be where a person performs many of the things you have been working on along with other task including sever admin work.

  • @TheChadXperience909
    @TheChadXperience909 Год назад +7

    For your install alias, you could also add "-y".

  • @user-uc5qf4oz9x
    @user-uc5qf4oz9x 6 месяцев назад +1

    Thank you for sharing your knowledge. I'd like to see a entirely video about customize Bash prompt.

  • @mohcine2259
    @mohcine2259 Год назад +5

    the link for the official blog post for this video is not working

  • @SoniaChavez-je7hq
    @SoniaChavez-je7hq 4 месяца назад +1

    Very helpful, thank you!

  • @Astro_War
    @Astro_War Год назад

    Brilliant video, so many useful tips and I learnt some new stuff. I like your presenting style as well. Thank you :)

  • @SpiceMinesGaming
    @SpiceMinesGaming Год назад +5

    FYI: The link to the blog post in the description is not working.

    • @SpiceMinesGaming
      @SpiceMinesGaming Год назад

      I just checked today, and the link appears to be working.

  • @AlazTetik
    @AlazTetik Год назад

    My ultimate go-to place for Linux related stuff for the last 4 years. Thank you 🙋🏻

  • @assgex
    @assgex 8 месяцев назад

    Thank you for those tips, some were very useful!

  • @magusfire31
    @magusfire31 3 месяца назад

    The last tip I love. Launching apps from terminal looks a lot easier the going thru menus

  • @7K2LGO
    @7K2LGO Год назад

    Hello from Japan. Thank you for great educational videos. I love your Japanese writings on the wall and Daibutsu!

  • @llortaton2834
    @llortaton2834 Год назад +7

    The blog post is not online and we cannot copy from it at the moment :(

  • @chyldstudios
    @chyldstudios Год назад +27

    You don't need the space at the end of your alias. It works just fine with no space. Try it.

    • @llortaton2834
      @llortaton2834 Год назад +1

      because the space in included elsewhere in the command yes

    • @unbekannter_Nutzer
      @unbekannter_Nutzer Год назад +1

      @@llortaton2834 Because you have to separate the alias, i.e. "i" with a space from the program to install, i.e. "nano" like this: "i nano". So there is already the requiered space.
      In contrast "inano" would not work, whether the alias is defined with trailing space or not.

    • @shanent5793
      @shanent5793 Год назад +3

      Omitting the space would suppress alias expansion of the next word on the command line

    • @unbekannter_Nutzer
      @unbekannter_Nutzer Год назад +1

      @@shanent5793 I couldn't believe this, tried it out, and you're right, I stand corrected. Thanks.

    • @nathanmiddleton1478
      @nathanmiddleton1478 Год назад +1

      @@shanent5793 So then it's not *needed* it's just something you might prefer to have for some aliases, yeah?

  • @Nephv2
    @Nephv2 6 месяцев назад +1

    I know this video is old, but a really easy way to add aliases to you bashrc without actually going in in editing it is this command:
    echo 'alias newAlias="{command}" >> ~./bashrc
    this will append that alias to the end of your bashrc file stright from the terminal :)

  • @scottb4029
    @scottb4029 Год назад +1

    loved the video. Tmux is one of the best CLI applications bar none, and your series on it is awesome. One of the things that kept coming to me during the video was , why not use a CLI file manager, like ranger, lf, nnn or Midnight Commander. (maybe not the last one). ?

  • @rwashi
    @rwashi Год назад +1

    You are AWESOME! your tutorials are clear, and easy to follow. I love the weather curl command and the neofetch command too. Thank you very much!

  • @smhhoseinee
    @smhhoseinee Месяц назад

    Always Excellent

  • @vudu5vudu
    @vudu5vudu Год назад +2

    Nice list. Here's a tip for you. In Nano, CTRL + END takes you to the end of the file. =)

  • @DanCalloway
    @DanCalloway Год назад +1

    Jay, great video! I already had many of these, but there was one or two that I didn't. Thank you for all that you do. Sorry I couldn't make ATO 2022 this year. I was hoping to get you to sign my "Mastering Ubuntu Server, 3rd ed." book which I purchased a year or so ago. Maybe next year. Take care.

  • @phantom2k858
    @phantom2k858 4 месяца назад

    FORTUNE mod is a savage i love it
    The hair ball blocking the drain of the shower reminded Laura she would never
    see her little dog Pritzi again.
    -- Claudia Fields, runner-up

  • @arxaaron
    @arxaaron 4 месяца назад

    RE the bash prompt configuration at 17:10: Note that the Mac OSX Terminal doesn't follow conventions for .bashrc. Instead, opening a new terminal uses ~/.bash_profile for configuration. To make the prompt work on Mac, just create a ~/.bash_profile with the "source ~./bash_prompt" line in it (see video at ~19:20).

  • @TheChadXperience909
    @TheChadXperience909 Год назад +2

    For your speedtest alias, you could add "&& nslookup " to verify you don't have a DNS issue. Maybe even add a ping to veify you are able to reach the modem/firewall, etc.

  • @RandyHanley
    @RandyHanley Год назад +1

    2:25 - I like your slide transition sound. It sort of reminds me of the spawning sound in Quake 1 Original!

  • @yorkshireplumbing
    @yorkshireplumbing Год назад +1

    Just not ever had aliases really mentioned to me before, but in my case would be super useful for spinning up and down groups of Docker containers, "arr-up / arr-down". I've seen people use 'll' which translates to 'ls -al', so that's already added.
    I have the weather tip added also, as 'weather'... super super cool 😁

  • @dhall2420
    @dhall2420 Год назад +3

    " Official blog post for this video" reports page not found

  • @amortalbeing
    @amortalbeing 10 месяцев назад

    goodcstuff thanks jay

  • @LacerdaJPF
    @LacerdaJPF 4 месяца назад

    hi friend,
    Thank you for the info.
    You do have a great and useful channel.

  • @dreetjeh
    @dreetjeh Год назад +7

    Hi, i see you have if ~/.bash_aliases then...., can put them there, keeps .bashrc clean

    • @vanadium4167
      @vanadium4167 Год назад

      For sure! This is much neater practice, especially if you have quite a number of aliases. And it reduces the possibility that you introduce errors in .bashrc itself.

    • @unbekannter_Nutzer
      @unbekannter_Nutzer Год назад

      @@vanadium4167 What's the advantage of having errors in bash_aliases compared to .bashrc?

    • @vanadium4167
      @vanadium4167 Год назад +1

      @@unbekannter_Nutzer you are not messing up the main file. Not accidentally deleting something else, etc

    • @unbekannter_Nutzer
      @unbekannter_Nutzer Год назад

      @@vanadium4167 Well - how should defining an alias delete something else? Not plausible. And "messing up the main file" - depending on how many aliases I have and how they are organized. A weak reason, but at least something.

    • @kbbenton7792
      @kbbenton7792 4 месяца назад

      It also makes it easier to “alias >~/.bash_aliases” putting all your aliases in a single file all at once.

  • @dfurmans
    @dfurmans Год назад

    Yeah! You rock so hard !

  • @noweare1
    @noweare1 Месяц назад

    I just learned that every time you start a new shell ./bashrc is run. You could also put it higher up the food chain in /etc/profile which is executed whenever any user logs in.

  • @Last_day_events
    @Last_day_events Год назад +15

    - Official blog post for this video ➜ learnlinux.link/terminal-tips = 404

  • @ringoschubert4966
    @ringoschubert4966 Год назад +5

    A nice alternative / extension to using aliases is to define your own bash functions. U can also do this in your ~/.bashrc or ~/.bash_aliases file. It has it's advantages, if you not just want to substitute commands for something else, but do some slightly more complicated things. (Like putting our parameter in the middle of a command string...)
    An example would be a small command to insert a (configurable) horizontal rule into your terminal:
    function hr() {
    printf '%*s
    ' "$(tput cols)" ' ' | tr ' ' $(if [ -n "${1}" ] ; then echo -n ${1} ; else echo -n '-' ; fi )
    }
    try:
    hr
    hr '#'
    hr '='

  • @romancvijanovic7130
    @romancvijanovic7130 Год назад

    On my private device I use aliases to set up the backlight brightness of my laptop. My GUI of choice is Mate. Another one is "openssh ssl -showcerts -connect". In a project I used that one fairly often so I used an alias for it.
    Other than that if there are scripts I use often (for example at my job) I use aliases to access them quickly from anywhere with aliases.

  • @stevew270
    @stevew270 5 месяцев назад

    Type in a really short command, sl for steam locomotive in whatever distro you're using and just type sl after and a steam locomotive will travel across the screen, I think it works in most distros.

  • @stoneytech5434
    @stoneytech5434 Год назад

    Thanks for this great video. Just a quick question (it might be stupid) - Would running "source " be an alternative to "reset"?

    • @haxwithaxe
      @haxwithaxe Год назад +3

      Nope. It would only redo the things in the bashrc. reset does a lot more to get rid of terminal state.

  • @dogday92
    @dogday92 Год назад

    always educational content, quick question: how what command saves the files created?

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi Год назад +3

    Thank you, Jay.

  • @gitgosc7075
    @gitgosc7075 Год назад

    great!

  • @RickRomig
    @RickRomig Год назад +1

    Working from the code in the video I was able to put the PS1 prompt together and integrate it with my .bashrc and include a function to parse my git repositories.

  • @pachaas_tola
    @pachaas_tola Год назад +2

    FYI - The link to the blog post isn't working.

  • @jenselstner5527
    @jenselstner5527 Год назад

    Hi there, cool video.
    For detaching a process from bash better use setsid, like "setsid audacity 1>/dev/null 2>/dev/null", maybe a bash function -- or if you start always the same program -- an alias will suffice. ;o)
    A function would be like this:
    function x() { setsid $1 "$2" 2>/dev/null 1>/dev/null ; }
    An alias like this:
    alias audacity="setsid audacity 1>/dev/null 2>/dev/null"

  • @LordNaver
    @LordNaver Год назад

    thanks.. pls make video on customizing bash prompt

  • @thomulcahy
    @thomulcahy Год назад +4

    Blog link is broken

  • @seanrikard3163
    @seanrikard3163 Год назад +2

    Also, the blogpost link for this video is broken.

  • @chrismcdonaldracing
    @chrismcdonaldracing Год назад

    The tip on easyer chest sheets is great for everyday use.
    But on a side note if your studying for any certs such as RHSA like me you might not want to get into a habit of using anything but man pages as that's the only aid your allowed to use in the exam.

  • @knightone57
    @knightone57 Год назад

    I am from Michigan and now live in Mo and the weather here is just as crazy.

  • @PaxHominibusBonaeVoluntatis
    @PaxHominibusBonaeVoluntatis Год назад

    Nice Edifier bookshelf speakers - How about the sound reproduction ?

  • @dragonwood4562
    @dragonwood4562 2 месяца назад

    Just found this video. Been using the channel for a while for learning. Anyway, an alias I added and love is for running updates. I used:
    alias u="sudo apt update -y && sudo apt upgrade -y"
    This will (after I enter my password if prompted) run update and upgrade and not stop to ask me to enter the y.

  • @busdriver1261
    @busdriver1261 Год назад +2

    I store all my defined aliases in ~/.bash_aliases which searched for and loaded if present from the ~/.bashrc file (at least it is in Linux Mint). I find it a better way of doing it without cluttering up the .bashrc file. I do like the ~/.bash_prompt idea.

    • @jbucata
      @jbucata Год назад

      In fact it's from at least Ubuntu (and maybe underlying Debian). The code in .bashrc to source .bash_aliases was right there on the screen... I was hoping he would at least mention what it was for, and that you might consider using a file like that.

  • @inuinu902
    @inuinu902 Год назад +1

    can you make a video on fully optimize the bash prompt since is hard to change the colors + i like to see what can by added to the prompt. automatic bash prompt makers are not really that great

  • @rupehmuduli3826
    @rupehmuduli3826 Год назад

    I jus fell in Love with Linux Tv

  • @DJSammy69.
    @DJSammy69. Год назад +1

    What is that funky PC behind you that has massive RGB cable inside?

  • @haxwithaxe
    @haxwithaxe Год назад

    There are a bunch of mods (separate packages in debian at least) for fortune including some vulgar ones. It's fun every once in a while.

  • @jasonbaldini
    @jasonbaldini Год назад

    I actually use the files referred, you can see it’s right above where you entered aliases in .bashrc, (if exist) .bash_aliases just so I have a specific file, plus seems like they kind of planned it that way, and I forget what federa uses but I do that same thing there.

  • @dbaldock9
    @dbaldock9 Год назад

    Currently at work, where I have Cygwin running on a Windows 10 Enterprise PC. When trying to use your custom bash prompt, I see two error lines, both saying "-bash: $'
    ': command not found" followed by a line with a closing square bracket "]" and the name of the machine. Not sure where to start troubleshooting, but I believe that Cygwin may require slightly different character escaping, than a terminal on "real" Linux (at least that's what I seem to remember from some previous awk scripting that I've done).

    • @dbaldock9
      @dbaldock9 Год назад

      Found the issue - Notepad++ was set to use Windows EOL (in order to save some text files to import into a label printer), but once I set it to Linux EOL for the .bash_prompt file, the new prompt is working just fine in Cygwin.

  • @luciaocananieto1643
    @luciaocananieto1643 Год назад +1

    (Spain) Hello, very good job. The weather has been very curious to me. The fact is that I am from Spain but not from Madrid but from Almería. Is there any way to configure it so that it appears in Almería and in Spanish? Thanks.

    • @rkolibri96
      @rkolibri96 Год назад

      Append this at the end of your link /Almeria?lang=es

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 Год назад

    33:10 Is there any point in preferring tmux over GNU screen?

    • @kbbenton7792
      @kbbenton7792 4 месяца назад

      I used to be a very heavy screen user. Since I tried mix seriously, I seriously doubt that I would ever go back. Having horizontal and vertical screen splits, the way to interact with windows and much more are why I personally prefer tmux over screen. Try it for a week and see if it doesn’t win you over.

  •  Год назад

    Second time I ear about your Ansible videos, Network Chuck

  • @divelix2666
    @divelix2666 Год назад

    42:00 - I use Ctrl+Z, in this case you dont need & while launch. How is it differ? If there is no difference nder the hood, Ctrl+Z is more convenient, imho.

  • @yaroslav7328
    @yaroslav7328 Год назад

    Don't you use nohup before starting the desktop application to avoid junk outputs?

  • @afrokai
    @afrokai 2 месяца назад

    comcast is always the culprit >_>

  • @TamilSelvan-sk9gy
    @TamilSelvan-sk9gy 9 месяцев назад

    Please do git series for LInux

  • @PS_Tube
    @PS_Tube Год назад +2

    Creation of aliases in a separate file is better practice!

    • @unbekannter_Nutzer
      @unbekannter_Nutzer Год назад

      Why?

    • @PS_Tube
      @PS_Tube Год назад

      @@unbekannter_Nutzer As fast my go plan is In this case you don't have any slightest of chance of accidentally messing up .bashrc.

    • @brandon_wallace
      @brandon_wallace Год назад +1

      @@PS_Tube You can put all your changes at the bottom of the bashrc file to override anything above. No need to have a separate file.

  • @LOLZpersonok
    @LOLZpersonok Год назад

    I must say that I am now a big fan of the alias command (as well as adding it to your Bash config) and wish I knew about it sooner. I always like to update my system by going “sudo apt update && sudo apt upgrade -y && flatpak update -y” and typing that out so often is rather tedious, now all I do is “update” and away it goes!

    • @Pshock13y
      @Pshock13y 6 месяцев назад

      I also added ""&& paplay " to the end of my update command so that I get a little notification when it is done.

  • @voiceoftreason1760
    @voiceoftreason1760 Год назад

    Can you share your tmux config you are using here?

  • @TheStevenWhiting
    @TheStevenWhiting Год назад

    1:42 Does it last 60 days IF you don't spend it or does it just last 60 days so if you choose a cheap package, you only get 2 months free then the $100 is used even if you're cheap package is only like $5 a month package? Because $5 / 100 would be 1 year 8 months. But sounds like you really only get 2 months free is that right?

  • @SirFancyPantsMcee
    @SirFancyPantsMcee Год назад

    Can you make aliases turn on with a command? So anytime you log in you type ua or something.

    • @SuprousOxide
      @SuprousOxide Год назад +1

      you could write a function to do that. in .bashrc, the same place he added the aliases, you could enter
      ua()
      {
      alias e="nano"
      alias d="ls"
      }
      then when you type ua in the prompt it would enable the aliases.
      You could include a second function to remove the aliases with
      ra()
      {
      unalias e
      unalias d
      }

    • @SirFancyPantsMcee
      @SirFancyPantsMcee Год назад

      @@SuprousOxide You are awsome thank you so much

  • @Mr3X7R3M3
    @Mr3X7R3M3 Год назад

    First I’ve heard you also living in Michigan. Not many people I’ve met in the mitten that actually daily Linux

  • @thomascorbin5371
    @thomascorbin5371 Год назад

    I like wthrr for weather. very pretty

    • @LearnLinuxTV
      @LearnLinuxTV  Год назад

      I wasn't aware of that one, thank you for sharing that.

  • @wuggyfoot
    @wuggyfoot Год назад

    i fee l like i enhanced my workflow by watching this 45 minute video

  • @kellingc
    @kellingc Год назад +2

    I always put in syllog
    alias syslog="journalctl -f"
    on systemd systems, that will follow the journal in real time. Great for troubleshooting or trying to figure out what /dev devices are being assigned where.
    Often times I'll start a tmux session and do a horizontal split. I'll do a syllog on top, and a open command line on bottom. That way I can run commands on the open command line and see what's going on the system on the top. Sort of like a operator console.
    WARNING! Do not change runlevels in tmux. Exit tmux before changing run levels. II don't know if the same.problem exists Wirth screen, but if it spawns processes like tmux, I suspect you may get the same corruption and.possiablr kernel panic.

  • @chillnacho
    @chillnacho Год назад +1

    I'm getting a "page not found" for the blog post :(

  • @CMB696
    @CMB696 10 месяцев назад

    Where is his custom terminal link ?

  • @johnvardy9559
    @johnvardy9559 Год назад

    Do you know why don't find camera?no device found

  • @BohdanShept
    @BohdanShept Год назад

    Hello
    How to know in your prompt if I am a root user "#" or not "$" ?

  • @spiffyh
    @spiffyh Год назад +2

    Seems to me your "i" alias should have given a password challenge unless you had already established sudo privilege on the terminal you were using.
    I like to add "set -o vi" in my .bashrc to give myself vi commands in the terminal to scroll through previous commands, edit/change commands before running again, etc.

    • @GaryCameron780
      @GaryCameron780 Год назад

      Password not requested likely because he had already established sudo privilege and the timer for that hadn't run out. I noticed that as well

    • @meiowalot7570
      @meiowalot7570 Год назад +1

      @@GaryCameron780 Or sudo was configured with NOPASSWD

  • @githaigagitonga3856
    @githaigagitonga3856 Год назад

    what is the terminal you're using?

  • @benmcwhirter4566
    @benmcwhirter4566 Год назад +2

    alias . ="cd ../"

  • @Zmit
    @Zmit Год назад +1

    Save yourself the hassle of going back and forth from desktop app to terminal window by appending your terminal command for the desktop app by "disown":
    ~$ audacity & disown
    This will break the parent link to the terminal window process.

  • @dilanparadis741
    @dilanparadis741 Год назад

    Your speedtest example show you Comcast IP ... might want tu blir it 🤷‍♂️

  • @pberto
    @pberto Год назад

    You didn't explain how to use sudo without entering a password, even if I suppose you edited you /etc/sudoers file.

    • @GaryCameron780
      @GaryCameron780 Год назад

      Likely because he had used sudo within the previous 15 minutes or whatever the timeout value is for his account.

  • @NVArun-cn9ld
    @NVArun-cn9ld Год назад

    How to run a Tcl Byte Code (.tbc) encrypted file

  • @denisdubochevalier2829
    @denisdubochevalier2829 Месяц назад

    1. You don't need the space at the end of your aliases
    2. NEVER EVER RUN A SCRIPT DIRECTLY FROM THE INTERNET (the speed test thing), this giving direct access to your computer to anybody for remote code execution. And don't run scripts, even downloaded, unless you are sure to understand what they do.

  • @mikejones7990
    @mikejones7990 Год назад +1

    My prompt actually tests the outcome of the previous command--if it is successful, my prompt is green, if it fails, my prompt turns red. I put it in my .bashrc file.
    GREEN='\[\033[32m\]'
    RED='\[\033[31m\]'
    NC='\[\033[37m\]'
    PS1="\u@\w \`if [ \$? = 0 ]; then echo ${GREEN}:\\\)${NC}; else echo ${RED}:\\\(${NC}; fi\`"

  • @seanrikard3163
    @seanrikard3163 Год назад

    The proper place to put aliases is in the .bash_aliases file.

    • @helloimatapir
      @helloimatapir Год назад

      I disagree. How many aliases do you have that require their own file? Put them at the bottom of your bash or denote a section for them with comments.

    • @jokinboken
      @jokinboken Год назад

      @@helloimatapir I have 53 aliases in my .bash_aliases

    • @vicmac3513
      @vicmac3513 Год назад

      I have a separate alias file and alias 'aliasrc' opens my alias list in vim.

  • @pilliozoltan6918
    @pilliozoltan6918 6 месяцев назад

    nohup should be here too

    • @LearnLinuxTV
      @LearnLinuxTV  6 месяцев назад

      I agree and I’ll consider that for the future

  • @NVArun-cn9ld
    @NVArun-cn9ld Год назад

    how to run a tbc encrypted file

  • @blackfaithdoom9018
    @blackfaithdoom9018 Год назад

    alias ls="date; ls"

  • @Carlos-tw6uc
    @Carlos-tw6uc Год назад +1

    Official blog post is 404 ...

    • @LearnLinuxTV
      @LearnLinuxTV  Год назад +1

      Fixed, sorry. I'm at a convention currently.

  • @nathanmiddleton1478
    @nathanmiddleton1478 Год назад

    I use aliases all the time and never put a space at the end. Why are you?
    At least for bash, "help alias", there isn't any requirement for it. In the late 90s was this a thing? I don't remember it's been so long ago but certainly now it isn't needed.

  • @b00m3rh4nd_sol
    @b00m3rh4nd_sol Год назад

    zsh?

  • @BeeRich33
    @BeeRich33 Год назад

    tldr
    Check that out.

  • @sergiodeplata
    @sergiodeplata Год назад +2

    Shortening commands to one character is very dangerous, as any typo can lead to potentially destructive behavior. Autocompletion with tab key is much safer.

    • @brandon_wallace
      @brandon_wallace Год назад

      I cannot think of any commands that would be dangerous as a shortcut other than the "rm" command. What is very dangerous for you?

  • @terrorpup
    @terrorpup Год назад

    It seem you like read a few pages that people did pass for or a master linux book. Nothing new.

  • @williamfletcher5146
    @williamfletcher5146 Год назад

    I feel like this is teaching people bad things

  • @d00dEEE
    @d00dEEE Год назад +3

    'fortune' should never be run alone. 'fortune | cowsay | lolcat' is the proper use. 😂

  • @evgen4681
    @evgen4681 Год назад +2

    To launch GUI programs from terminal way simpler will be using nohup command.
    To avoid creating file nohup.out just redirect streams "nohup command >/dev/null 2>&1 &"
    That function will help:
    n () { nohup "$1" >/dev/null 2>&1 & }