211
submitted 2 days ago by cybercitizen4@lemm.ee to c/asklemmy@lemmy.ml
top 50 comments
sorted by: hot top controversial new old
[-] ColdWater@lemmy.ca 1 points 36 minutes ago
[-] SorteKanin@feddit.dk 1 points 59 minutes ago

Zoxide, dust, fd, rg, btm, tokei. So many newer Rust tools that are way better than the old stuff.

[-] JackbyDev@programming.dev 1 points 1 hour ago
[-] drmoose@lemmy.world 2 points 1 hour ago* (last edited 1 hour ago)

I really like how nushell can parse output into it's native structures called tables using the detect command.

Unlike string outputs, tables allow for easy data manipulation through pipes like select foo will select foo key and you can filter and even reshape the datasets.

This is great if you need to work with large data pipes like kuberneters so you can do something like:

kubectl get pods --all-namespaces | detect columns | where $it.STATUS !~ "Running|Completed" | par-each { |it| kubectl -n $it.NAMESPACE delete pod $it.NAME }

This looks complex but it parses kubectl table string to table object -> filters rows only where status is not running or completed -> executes pod delete task for each row in parallel.

Nushell take a while to learn but having real data objects in your terminal pipes is incredible! Especially with the detect command.

There's are few more shells that do that though nu is the most mature one I've seen so far.

[-] nameisnotimportant@lemmy.ml 2 points 1 hour ago

I use atuin (link) all the time

[-] InSamsara@lemmy.world 1 points 2 hours ago

Neofetch

I just think it's neat.

[-] Hackerman_uwu@lemmy.world 1 points 2 hours ago

rsync

I use it to backup important work to an external drive.

[-] daggermoon@lemmy.world 1 points 3 hours ago
[-] unionagainstdhmo@aussie.zone 6 points 9 hours ago
[-] renzev@lemmy.world 32 points 14 hours ago

tldr is great. Basically a crowd-sourced alternative to man with much more concise entries. Example:

$ tldr dhcpcd

  DHCP client.
  More information: <https://roy.marples.name/projects/dhcpcd>.

  Release all address leases:

      sudo dhcpcd --release

  Request the DHCP server for new leases:

      sudo dhcpcd --rebind
[-] SturgiesYrFase@lemmy.ml 7 points 6 hours ago

Well....slap my ass and call me Mary.....
Thanks kind internet stranger!

[-] clay_pidgin@sh.itjust.works 3 points 6 hours ago

Woah, that's dope as heck. Thank you!

[-] lud@lemm.ee 17 points 13 hours ago* (last edited 13 hours ago)

As primarily a Windows admin (Yes, we exist on Lemmy ;) ) here are few I use often.

  • Enter-PSSesion
  • Get-ADUser (also group and computer)
  • CLS (aka the superior clear)
  • ii . (short for Invoke-Item . which runs the selected object using the default method. For paths (like .) the default is explorer, so ii . opens the current directory using explorer.)
  • ft (short for Format-Table formats piped input as a table.)
  • fl (short for format-like. Used like ft but for lists.)
  • Where-Object
  • Select-Object
[-] mexicancartel@lemmy.dbzer0.com 21 points 7 hours ago
[-] lud@lemm.ee 4 points 6 hours ago

Fucking hell Lol ๐Ÿ˜‚

[-] hactar42@lemmy.world 7 points 11 hours ago

There are dozens of us.

Also, I'll add:

  • Get-Help
  • Get-Command
  • Get-Member
[-] unionagainstdhmo@aussie.zone 3 points 9 hours ago
[-] jbk@discuss.tchncs.de 1 points 2 hours ago

Control + D

[-] Cruxil@aussie.zone 5 points 11 hours ago

I've recently started using tmux when starting a new SSH session to try to build the habit.

https://github.com/tmux/tmux/wiki

[-] NauticalNoodle@lemmy.ml 7 points 17 hours ago* (last edited 16 hours ago)

For Debian based/descended distros:

sudo apt-get update && sudo apt-get upgrade

And technically I also regularly use

redshift -O 3000

all of the blue light filter programs try to align themselves with a user's geographic location and time, but I don't keep normal hours

[-] igorette@lemmy.ml 2 points 9 hours ago

topgrade does this and and a lot more

[-] sirico@feddit.uk 8 points 17 hours ago

Chuck the -y in there for extra lazy mode

[-] NauticalNoodle@lemmy.ml 6 points 16 hours ago

I would but much like somebody else's recent post I have in the past nuked my install by blindly agreeing to some recommended software removals before. These days I like to double check what packages are being updated and replaced.

[-] spittingimage@lemmy.world 2 points 13 hours ago* (last edited 13 hours ago)

I often play an old DOS game in DOSBox, and when I exit it doesn't reset the screen resolution. So I reset it manually by typing

xrandr -output e-DP1 -auto

[-] olafurp@lemmy.world 5 points 17 hours ago

g-push which is alias for

git push origin `git branch --show`

Which I'm writing on my phone without testing or looking

[-] JackbyDev@programming.dev 1 points 1 hour ago

git config --global alias.pusho 'push --set-upstream origin HEAD'

You're welcome.

[-] Cruxil@aussie.zone 2 points 11 hours ago

git push origin HEAD is a slightly shorter way of doing the same thing, even though you have an alias anyway lol

[-] seth@lemmy.world 5 points 17 hours ago

In my ~/.bashprofile: alias resource="source ~/.bashprofile"

In my terminal: resource

Anything to save a few characters

[-] JackbyDev@programming.dev 1 points 1 hour ago

exec $SHELL -l

[-] worsedoughnut@lemdro.id 5 points 13 hours ago

I have cd && clear aliased as home

Lazy aliases unite!

load more comments (1 replies)
load more comments
view more: next โ€บ
this post was submitted on 21 Sep 2024
211 points (97.3% liked)

Asklemmy

43417 readers
1406 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS