999

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
[-] obsidianfoxxy7870 1 points 12 hours ago

I had the exact same experience when I first tried Linux. But now when I am evily forced into using Windows and HATE it any other way. Also I despise the windows terminal now (PowerShell & CMD).

[-] Charlxmagne@lemmy.world 2 points 2 days 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.

[-] kibiz0r@midwest.social 105 points 6 days ago
  • 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 5 days ago* (last edited 5 days ago)

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)

load more comments (2 replies)
[-] exocortex@discuss.tchncs.de 15 points 6 days ago* (last edited 6 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!

[-] apelsin12@lemm.ee 13 points 6 days ago

Makes me realize just how illogical and bad these shortcuts are

[-] Dumhuvud@programming.dev 10 points 6 days ago

I believe, these are Emacs shortcuts. There's also set -o vi in bash, but I've never used it, so can't vouch for it.

load more comments (3 replies)
[-] myotheraccount@lemmy.world 11 points 6 days ago
  • alt-. also pastes the last argument of the previous command (useful if you need to modify it a bit)
  • instead of any shortcuts starting with "alt" you can also press "esc" followed by the second key, e.g. pressing "esc", releasing it and then "a" is the same as pressing "alt-a" (useful if you have only one hand available, or if alt is not availalble)
  • if you put a space before a command, it will not be saved in history (useful sometimes, e.g. if you pass a password directly as an argument)
[-] ayyy@sh.itjust.works 7 points 5 days ago

If you’re looking for a full list of these kind of navigation shortcuts, they all come from readline so read the man page for that. Or just look up the basic navigation of emacs which is what readline is mimicking.

[-] kattfisk@lemmy.dbzer0.com 5 points 5 days ago* (last edited 5 days ago)

A neat thing is that a lot of command line programs use readline. So learning and configuring it will also be useful in for example the Python REPL and calc.

Here are some neat configuration options you can put in ~/.inputrc

set completion-ignore-case on
set show-all-if-ambiguous on
set completion-prefix-display-length 9
set blink-matching-paren on
set mark-symlinked-directories on

And if you are a sensible person who is used to vim

set editing-mode vi
set show-mode-in-prompt on
load more comments (3 replies)
[-] it_depends_man@lemmy.world 159 points 6 days ago

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 124 points 6 days ago

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 25 points 6 days ago* (last edited 6 days ago)

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

[-] superkret@feddit.org 16 points 6 days ago

All of those wars have long since ended.
Neovim, Wayland, Systemd and Flatpak have won.

[-] KurtVonnegut@mander.xyz 19 points 6 days ago

In Emacs I can annotate pdfs.

load more comments (4 replies)
load more comments (4 replies)
load more comments (3 replies)
[-] umbrella@lemmy.ml 18 points 6 days ago

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

load more comments (1 replies)
[-] wise_pancake@lemmy.ca 15 points 6 days ago

“Hey computer, I don’t like when you ask for that confirmation, just do it”

“Oh, -y, I got you”

load more comments (6 replies)
[-] yesman@lemmy.world 106 points 6 days ago

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

load more comments (1 replies)
[-] hansolo@lemm.ee 69 points 6 days ago

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 31 points 6 days ago

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.

[-] 30p87@feddit.org 18 points 6 days ago* (last edited 6 days ago)

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.

[-] TunaLobster@lemmy.world 13 points 6 days ago

I think that is just wildly amazing that printer drivers in Linux so often just work. I plugged in a wireless printer the other day and the hardest part was connecting it to the network. Once that was done BOOM Ubuntu found it and I could print. Those driver maintainers are doing a great job!

[-] 30p87@feddit.org 15 points 6 days ago

Capitalism vs Communism on a small scale

One is "We're not making profit anymore, so not paying anyone to do this. Also not publishing the source because of IP.", the other one is "I have fun doing this, I think I'll adapt the driver to my printer. Open ofc, so others can benefit, while all others, including me, benefit from others achievements."

load more comments (1 replies)
load more comments (2 replies)
[-] DmMacniel@feddit.org 36 points 6 days ago

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

[-] drolex@sopuli.xyz 15 points 6 days ago

Amen. Hallelujah! AMEN! Ooh yeah brothers and sisters, AaaAAaAmen!

PS: this is not a cult BTW

load more comments (1 replies)
load more comments (1 replies)
[-] mlg@lemmy.world 6 points 5 days ago

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

load more comments (1 replies)
[-] Hawke@lemmy.world 16 points 6 days ago

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

[-] Trainguyrom@reddthat.com 8 points 6 days ago

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 6 days ago

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)
[-] amotio@lemmy.world 27 points 6 days ago

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.

load more comments (1 replies)
[-] some_guy@lemmy.sdf.org 23 points 6 days ago

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

[-] kittenzrulz123 18 points 6 days ago

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 (2 replies)
[-] ArchmageAzor@lemmy.world 4 points 5 days ago

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 4 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 4 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)
[-] sbv@sh.itjust.works 16 points 6 days ago

I really like having a hotkey bound to the terminal window, so I can pop open a terminal, check something, and return to what I was doing.

https://community.linuxmint.com/software/view/tilda

[-] palordrolap@fedia.io 16 points 6 days ago

FWIW, most Debians (which includes Ubuntu and Mint) have Ctrl+Alt+T set to open the default terminal program without needing to install anything else. This is usually reconfigurable in the system settings too if that's an awkward stretch.

But I get that people like the drop-down terminals too, for which see also Yakuake and Guake.

load more comments (1 replies)
load more comments (3 replies)
[-] applemao@lemmy.world 11 points 6 days ago

Isn't it fun? It's like owning your car and learning what everything actually does, and figuring out how to fix it. And having an amazing community to boot!. I enjoy it.

load more comments (3 replies)
load more comments
view more: next ›
this post was submitted on 30 Apr 2025
999 points (100.0% liked)

linuxmemes

24828 readers
679 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