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

39 points
  • 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
permalink
report
reply
2 points

Nice list, TIL about Ctrl+U and Ctrl+Y.

If I may add, Ctrl+X into Ctrl+E opens $EDITOR to edit the current line.

permalink
report
parent
reply
5 points
  • 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)
permalink
report
parent
reply
4 points

Makes me realize just how illogical and bad these shortcuts are

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
2 points

Explains why they are so illogical! Unfortunately i think its better to just learn the defaults since i remote into lots of servers where i dont carry my config

permalink
report
parent
reply
1 point
*

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!

permalink
report
parent
reply
8 points

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

permalink
report
reply
3 points

I installed mint yesterday and am having a PAIN installing anything not in the software manager. Currently stuck on teamspeak as my first thing to try. Got a tar.gz and can’t find anything well explained online (as of yet, it was already 3 hours just to get mint to dual boot and I was exhausted)

permalink
report
reply
3 points

With .tar.gz software usually the steps are:

  1. Extract the archive
  2. Find a file with the .sh extention - that’s the shell script. It will most likely be named something like install.sh
  3. Make it executable - by right clicking and enabling it in the properties or by opening a terminal in this folder and using a command:
chmod +x install.sh
  1. Run the installer in the terminal:
./install.sh

It might ask you to run it as root and quit. In that case put a sudo before the command above and it will ask you for your password

sudo ./install.sh

And tbat’s it, installation should begin. Follow the instructions in your terminal.

permalink
report
parent
reply
1 point

https://flathub.org/ is a great way to manage linux apps/programmes. Very easy and several other benefits

permalink
report
parent
reply
2 points

Can’t say for TeamSpeak, but will say for Linux: setting everything up and figuring out your steps in edge cases is the hardest part. Once you figure it out, it gets so much easier.

permalink
report
parent
reply
1 point

Honestly, it’s a pain in the ass. The shortcuts are different from the browser, so you forget and hit Ctrl+V. Then you remember and hit Ctrl+Shift+V and get some scribbles around what you were typing

permalink
report
reply
1 point

They were there long before the browser. The problem is that they should work in the browser but they don’t.

permalink
report
parent
reply
6 points

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.

permalink
report
reply
3 points

I’m thinking of making Linux my daily driver apart for some software I need for work. People are super positive about it on here, but isn’t it still the case that some peripherals won’t work? Or that I’ll spend a ton of time making the system work instead of actually using the system?

It would be for gaming that I’d use the Linux installation mostly.

permalink
report
parent
reply
1 point
*

Speaking from personal experience but pretty universal one at that.

Once terminal kinda “clicks” you will get the urge to tweak stuff. It happens because there is bunch “demo apps” that are just cool to mess around with but simply don’t get known on co-orperate OS. Check this as example.

If games you play or tools you use can be fitted to linux, at some point you will port 80% of your workflow just messing around during the tweaking. Like when you do your first rice.

And after that you can confidently chose if you want to add on to that or continue dualboot.

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

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 figures

We 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.

Community stats

  • 9.6K

    Monthly active users

  • 1.4K

    Posts

  • 41K

    Comments