sudo
doas
Zoxide, dust, fd, rg, btm, tokei. So many newer Rust tools that are way better than the old stuff.
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.
I use
atuin
(link) all the timeNeofetch
I just think it’s neat.
It’s been abandoned btw. People recommend to switch to alternatives. Fastfetch and hyfetch seem to be the best ones rn.
Though I can’t confirm as I wrote my own minimal fetch
exit
exit
Control + D
I’ve recently started using
tmux
when starting a new SSH session to try to build the habit.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
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 superiorclear
)ii .
(short forInvoke-Item .
which runs the selected object using the default method. For paths (like.
) the default is explorer, soii .
opens the current directory using explorer.)ft
(short forFormat-Table
formats piped input as a table.)fl
(short forformat-like
. Used likeft
but for lists.)Where-Object
Select-Object
Fucking hell Lol 😂
There are dozens of us.
Also, I’ll add:
- Get-Help
- Get-Command
- Get-Member
<Esc>[2J<Esc>[H
Is one of my favorites. Of course, most of you are too young to know what that means.
Is that easier than typing
clear
? Also, not sure why you’d say something like that about people’s age. Anyone using terminals today is often going to run into weird quirks of them being around for decades even if they’re young.In the days before *nx, “terminal” meant a VT terminal and “clear” wasn’t a thing.
tldr
is great. Basically a crowd-sourced alternative toman
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
Woah, that’s dope as heck. Thank you!
Well…slap my ass and call me Mary…
Thanks kind internet stranger!:O
$ z
A great cd alternative
Also $ sudo paru -Syu
I think you can run paru without sudo and it should still do privilege escalation no problem
g-push
which is alias forgit push origin `git branch --show`
Which I’m writing on my phone without testing or looking
git config --global alias.pusho 'push --set-upstream origin HEAD'
You’re welcome.
So that’s making
git push
always push to the current branch?
git push origin HEAD
is a slightly shorter way of doing the same thing, even though you have an alias anyway lol
sudo apt-get update && sudo apt-get upgrade
And technically
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
topgrade
does this and and a lot moreChuck the -y in there for extra lazy mode
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.