this post was submitted on 06 Jul 2023
15 points (100.0% liked)

Linux

48690 readers
1006 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 17 comments
sorted by: hot top controversial new old
[–] abraham_linksys 10 points 1 year ago

yes

It repeatedly spams y and a return so you can pipe it into just about any command.

I find it amusing because instead of me having to lean on the keyboard, the computer does it for me.

Usage: yes | scriptthatneedstoshutupandrun.sh

[–] karlthemailman 6 points 1 year ago (3 children)

Tmux is a great "terminal multiplexer". Let's you split your screen and have multiple sessions running at once. Also lets you detach from a running shell and reconnect later without losing anything.

Lots of good intros are available like: https://medium.com/hackernoon/a-gentle-introduction-to-tmux-8d784c404340

[–] 7ai 4 points 1 year ago (1 children)

Oh yea that's a good one. There's also Zellij which tries to be a modern replacement for tmux

https://github.com/zellij-org/zellij

[–] Glowworm6441 1 points 1 year ago

Interesting. I've been using BYOBU as a tmux wrapper for a while now. I'll have to check out Zellij as well

[–] med 3 points 1 year ago* (last edited 1 year ago)

This is my new build go to package. Right behind vim and netstat.

Before running updates or big installs, get in to a tmux session. If your ssh session drops, it won’t interrupt the process.

If you want to see multiple servers/network devices, run the same commands, see the same output, switch on pane synchronization and run identical commands in all of them. Even password inputs when you run in to a sudo.

You can design layouts by percentage of the screen - 30%, 60% I’ve got three sites with redundant ISPs, 6 panes showing mtr sessions for each link, which work on any terminal size.

You can have someone else log in to the server and connect to the same tmux session as you, and show them what you’re doing and typing real time. Then collect the log afterwards.

I found a tmux session on a CentOS box that had been running for 5 years in the lab environment when I joined my current company - the guy who spawned it left 4 years ago.

It’s incredibly powerful.

Also, mtr-tiny is great for diagnosing latency issues

[–] FeatherConstrictor 2 points 1 year ago

Learned and used Tmux for my free tier oracle cloud-hosted Minecraft server :) was great to get it to be constantly up without someone needing to SSH in and start the server every time or keep the SSH terminal open without confirmation while playing

[–] 9488fcea02a9 5 points 1 year ago* (last edited 1 year ago)

vrms - virtual richard m. stallman

Tells you if you have non-free software installed and and makes you feel bad

Edit: did not realize it was renamed to "check-dfsg-status"

[–] JadeEast 4 points 1 year ago

Tauon Music Box is a nice music player.

[–] wildbus8979 4 points 1 year ago

lsof, it can show you opened files, which process is holding a file, opened sockets, etc. Extremely useful!

[–] PCChipsM922U 2 points 1 year ago* (last edited 1 year ago) (2 children)

pipe-viewer and Tuner

https://github.com/trizen/pipe-viewer

https://github.com/louis77/tuner

I use pipe-viewer all the time to listen to tunes from YT on an old P4 rig.

[–] 7ai 1 points 1 year ago (1 children)

Tuner seems pretty cool. I use ytmdl to search and download download music from YouTube music.

https://github.com/deepjyoti30/ytmdl

[–] PCChipsM922U 2 points 1 year ago

Oh, this is cool, thanks for the share 😊.

[–] med 1 points 1 year ago (1 children)

pv is like magic for writing iso’s or other large files to slow media. Has it finished? Is there data left to transfer? Now you know.

[–] PCChipsM922U 1 points 1 year ago (1 children)

Ummm... I don't get the joke.

[–] med 1 points 1 year ago (1 children)

It wasn’t meant as one, I was thinking of a cli tool by the same name for viewing data in pipes!

[–] PCChipsM922U 2 points 1 year ago
[–] ChickenAndRice 2 points 1 year ago

Nala

It's an alternative to apt package manager that gives you cleaner log outputs, parallel downloads, and a history list of package actions that you've taken

I always install this on Ubuntu / Debian distros