this post was submitted on 30 Apr 2025
1006 points (97.6% liked)

linuxmemes

24785 readers
2344 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    I thought it'd be a pain but installing programs through the terminal is actually so nice, I never would have expected it

    top 50 comments
    sorted by: hot top controversial new old
    [–] Charlxmagne@lemmy.world 1 points 22 hours ago

    Realistically the simplest way to think about it is a text based file manager that can run programs, you could literally ignore it and use it to just install and update, if GUI's your thing.

    [–] finitebanjo@lemmy.world 1 points 1 day ago

    I kind of like install wizards and black and white command console, but that's just me.

    [–] kibiz0r@midwest.social 107 points 4 days ago (14 children)
    • tab completion works in more places than you might expect
    • ctrl-a/ctrl-e for start/end of line
    • ctrl-u to clear the command you’ve typed so far but store it into a temporary pastebuffer
    • ctrl-y to paste the ctrl-u’d command
    • ctrl-w to delete by word (I prefer binding to alt-backspace though)
    • ctrl-r to search your command history
    • alt-b/alt-f to move cursor back/forwards by word
    • !! is shorthand for the previous run command; handy for sudo !!
    • !$ is the last argument of the previous command; useful more often than you’d think
    • which foo tells you where the foo program is located
    • ls -la
    • cd without any args takes you to your home dir
    • cd - takes you to your previous dir
    • ~ is a shorthand for your home dir
    [–] hamsda@lemm.ee 8 points 3 days ago* (last edited 3 days ago) (3 children)

    Saved! Thank you so much.

    I've used Linux full-time since late 2020 and I never knew about ctrl+y and ctrl+u.

    I'd also like to contribute some knowledge.

    aliases

    You can put these into your ~/.bashrc or ~/.zshrc or whatever shell you use.

    ###
    ### ls aliases
    ###
    # ls = colors
    alias ls='ls --color=auto'
    
    # ll = ls + human readable file sizes
    alias ll='ls -lh --color=auto'
    
    # lla = ll + show hidden files and folders
    alias lla='ls -lah --color=auto'
    
    ###
    ### other aliases
    ###
    # set color for different commands
    alias diff='diff --color=auto'
    alias grep='grep --color=auto'
    alias ip='ip --color=auto'
    
    # my favourite way of navigating to a far-off folder
    # this scans my home folder and presents me with a list of
    #    fuzzy-searchable folders
    #    you need fzf and fd installed for this alias to work
    alias cdd='cd "$(sudo fd -t d . ${HOME} | fzf)"'
    

    recommendations

    ncdu - a shell-based tool to analyze disk usage, think GNOME's baobab or KDE's filelight but in the terminal

    zellij - tmux but easy and with nice colors

    atuin - shell history but good, fuzzy-searchable. If you still have the basic shell history (when pressing ctrl+r), I cannot recommend this enough.

    ranger - a terminal file-browser (does everything I need and way more)

    [–] FauxLiving@lemmy.world 3 points 3 days ago (1 children)

    Also, Terminal User Interfaces are a nice middle ground between learning terminal commands and having a GUI.

    Example:

    btop - process manager TUI

    ncmpcpp - TUI media player, used mpd on the backend

    Here's a big list: https://github.com/rothgar/awesome-tuis

    [–] hamsda@lemm.ee 2 points 2 days ago

    Also, Terminal User Interfaces are a nice middle ground between learning terminal commands and having a GUI.

    Yes, TUIs definitely help reduce possible stress and fear of complexity for new users.

    Thanks for the git link, didn't know that, just starred it :)

    load more comments (2 replies)
    [–] exocortex@discuss.tchncs.de 14 points 4 days ago* (last edited 4 days ago)

    I've been using the commandline for so long but was always too lazy to look up the rest of these commands after ctrl+a/e and ctrl+r THANK YOU!!!

    post this commend again and again! There's always lazy idiots like me who will be helped that way!

    [–] MonkeMischief@lemmy.today 6 points 4 days ago

    Saving this! Absolutely gold, thanks for writing it up. You're what makes the Linux community cool. ❀️

    tab completion works in more places than you might expect

    I've found tab to be such a nice "please give me a hint" button.

    • Bonus tip : Sometimes you won't get auto complete because there's too many possibilities and the computer can't be certain which one you want. Hitting tab multiple times will show the possibilities, so you can type in enough characters to remove ambiguity, hit tab again, and boom auto complete!

    ...That was a terribly convoluted explanation I'm sorry. Just try hitting tab multiple times for fun if you're stuck it's kinda handy. Lol

    load more comments (11 replies)
    [–] it_depends_man@lemmy.world 164 points 5 days ago (19 children)

    Also, updates.

    "hey computer! Update!"

    "Sure thing, here is a list of 57 packages I will update, y/n?"

    "y"

    "ok... done!"

    πŸ‘Œ

    [–] pennomi@lemmy.world 132 points 5 days ago (6 children)

    But how do Linux users handle the crippling loneliness of their operating system not pestering them with ads on every update? How else can you know if your computer loves you? Where is the warmth of the corporate embrace?

    [–] grue@lemmy.world 28 points 5 days ago* (last edited 5 days ago) (10 children)

    We shitpost on Lemmy and start flame wars about vi vs. emacs, X11 vs Wayland, sysvinit vs systemd, snaps vs flatpak, etc.

    load more comments (10 replies)
    load more comments (4 replies)
    [–] umbrella@lemmy.ml 18 points 4 days ago (1 children)

    plus it makes you feel like a hacker for a few seconds

    load more comments (1 replies)
    load more comments (17 replies)
    [–] yesman@lemmy.world 110 points 5 days ago (6 children)

    The Windows terminal has some very good commands. 'ssh username@server' can log you right into a Linux machine!

    load more comments (6 replies)
    [–] mlg@lemmy.world 6 points 3 days ago (2 children)

    Wait till you try fish or zsh loaded with all the fancy plugins lol

    [–] FauxLiving@lemmy.world 2 points 3 days ago

    Oh-My-Zsh (https://ohmyz.sh/) is good if you want to try a nice suite of plugins and dotfiles.

    load more comments (1 replies)
    [–] hansolo@lemm.ee 72 points 5 days ago (4 children)

    I once installed HP shitbox printer drivers from the command line in 30 seconds, and the shitbox printer just...worked.

    My heart soared higher than the eagle. I touched the face of the one true FOSS God, and felt that thing when astronauts have epiphanies about the Earth. 10/10, would recommend.

    [–] wise_pancake@lemmy.ca 34 points 5 days ago (2 children)

    The moment I loved the FOSS community was when I went on an Linux IRC channel, complained about my wifi not working, and some stranger messaged me detailed instructions with a patch in 20 minutes that completely fixed my issue.

    load more comments (2 replies)
    [–] 30p87@feddit.org 18 points 5 days ago* (last edited 5 days ago) (3 children)

    I once plugged my linux laptop into the scanner and it just worked

    I spent days tinkering with proprietary, outdated (seriously, win XP as target) programs that provide sort-of drivers, and nothing worked, on windows.

    load more comments (3 replies)
    load more comments (2 replies)
    [–] ArchmageAzor@lemmy.world 4 points 3 days ago (3 children)

    I'm on the other side of the coin, I really don't know how I'm supposed to learn to use the terminal. I can do sudo apt get to get some programs and updates, as well as mv and cp, but that's where it stops for me.

    [–] lightnsfw@reddthat.com 4 points 3 days ago

    You need a purpose. For instance I needed to copy and edit config files for a bunch terminals my company has deployed last week. Instead of manually copying the template directory 80 times and editing the 2 lines that needed to be changed in the parameter file for each one I used powershell to extract the name and id for each terminal from the log files and create copy of the template directory for each one, then replace the terminal name and id in the parameter file of the new directory with the ones extracted from the logs. This would have taken me all day to do manually and it only took about 45 minutes to write up the script and run it. I did have some prior experience with doing this kind of thing but hadn't tied them all together lile that before so i learned some stuff.

    [–] fibojoly@sh.itjust.works 3 points 3 days ago

    Maybe you need to have some sort of objective before you get started, otherwise yeah, you don't have much to do in the console :) In my case I only use linux for work, so I'm ssh-ing away and running commands to compile this, apply that, show me the logs for this, grep that, etc.

    load more comments (1 replies)
    [–] LovableSidekick@lemmy.world 4 points 3 days ago* (last edited 3 days ago)

    Could you 'splain it to me? Cuz I installed Mint 3 months ago, totally happy, and I don't get it.

    [–] DmMacniel@feddit.org 36 points 5 days ago (4 children)

    When the GUI fails, Terminal will have your back; can I get an Amen?

    [–] Flax_vert@feddit.uk 21 points 5 days ago (2 children)

    When my computer starts to run out of ram and I immediately try and switch into the CLI so I can launch htop and kill the offender

    load more comments (2 replies)
    load more comments (3 replies)
    [–] Hawke@lemmy.world 15 points 4 days ago (2 children)

    If you or someone you know wants a taste of that experience on Windows, try out winget or chocolatey.

    [–] Trainguyrom@reddthat.com 8 points 4 days ago (2 children)

    As an administrator, powershell is an essential tool these days. There are tunables that Microsoft simply only exposes via powershell even in their cloud Microsoft 365 environments. Just last month I had to rely on Powershell to trim previous versions on SharePoint, and 2 weeks ago I had to use Powershell to adjust a parameter on Exchange.

    But also being able to pop a Powershell session and quickly apply a registry fix or run a diagnostic command or even just install a piece of software without disrupting a user's work is absolutely brilliant (plus saves a call when I can just email back and say "I've pushed it remotely, reboot and it should be sorted now")

    [–] eodur@lemmy.world 11 points 4 days ago (8 children)

    Every time I use Powershell it makes me love bash even more

    load more comments (8 replies)
    load more comments (1 replies)
    load more comments (1 replies)
    [–] some_guy@lemmy.sdf.org 25 points 4 days ago

    Welcome in from the cold. We have hot cocoa and blankets.

    [–] kittenzrulz123@lemmy.blahaj.zone 18 points 4 days ago (5 children)

    Just wait until you find the fun TUI utilities, ill share a few:

    • Shell: Fish (has powerful auto-complete, very fast, written in rust)
    • Montior: Btop (monitors all system resources and processes)
    • Fetch: Fastfetch (perfect for showing off on !unixporn@lemmy.world, for !unixsocks@lemmy.blahaj.zone Hyfetch is reccomnded)
    • Brower: BrowSH (its a browser in your terminal)
    • Text Editor: Vim (the best text editor, remeber to use esc + : + q to close or wq to write close vim. However when you open vim you can never quit)
    • File manager: Ranger (if cd + ls is too inconvenient)
    • Games (yes you can even play games in the terminal): 2048, Chess-TUI, NSnake, and Micro Tetris

    More cool TUI tools

    load more comments (5 replies)
    [–] amotio@lemmy.world 26 points 5 days ago (2 children)

    Just wait when you try AUR on arch systems. I was long time ubuntu based user but once I tasted rolling release and AUR I don't want to go back.

    [–] BuboScandiacus@mander.xyz 23 points 5 days ago (4 children)

    It is going to make to want to go back

    Someday

    When you least expect it, and have a deadline

    load more comments (4 replies)
    load more comments (1 replies)
    [–] BackgrndNoize@lemmy.world 2 points 3 days ago

    I'd use the terminal more if it had better auto suggestions, and allowed me to treat the text like any normal text editor, instead of having to learn keyboard shortcuts just to basic text manipulation. So far Warp terminal is the best option I've found

    load more comments
    view more: next β€Ί